JPEG 2000 Image (HEIF Container)
image/hej2k
Released 2019
· by ISO/IEC JTC 1 / ITU-T
HEJ2K (High Efficiency JPEG 2000) is a format that stores still images encoded with the JPEG 2000 codec (including HTJ2K) inside a High Efficiency Image File Format (HEIF) container. It combines the powerful wavelet-based compression of JPEG 2000 with the flexible, metadata-rich architecture of the ISOBMFF standard.
Technical Specifications
.hej2
JPEG 2000HTJ2K
image/heif
Magic Bytes & HTTP Headers
....ftypj2ki
Browser Support Matrix
| Browser | Status | Min Version |
|---|---|---|
|
|
Not Supported | — |
|
|
Not Supported | — |
|
|
Not Supported | — |
|
|
Not Supported | — |
|
|
Not Supported | Legacy |
Advantages & Limitations
- Brings the extensive capabilities of the HEIF container (like EXIF/XMP, thumbnails, and depth maps) to JPEG 2000
- Supports mathematically lossless compression via wavelet transformation
- High scalability and progressive decoding out of the box
- Extremely limited software support outside of niche industries
- Zero native compatibility with web browsers
- High computational complexity compared to simpler formats like JPEG or PNG
Developer Code Snippets
File Detection Steps
How to programmatically detect a image/hej2k
file by reading its raw bytes:
- 1 Check for ISOBMFF 'ftyp' box starting at byte offset 4
- 2 Verify 'j2ki' brand string starting at byte offset 8 to confirm HEIF encapsulation of JPEG 2000
Software Support
Conversion Tools
Share & Embed
[](https://freewebptojpg.com/mime/image/hej2k)
<iframe src="https://freewebptojpg.com/mime/image/hej2k/embed" width="100%" height="280" style="border:1px solid #cbd5e1;border-radius:8px;" title="HEJ2K Specs"></iframe>
JSON API
All data on this page is available as a free, open JSON API. Use it in your project, documentation, or tooling.
GET https://freewebptojpg.com/mime/image/hej2k.json
Open JSON
Frequently Asked Questions
What is the difference between image/jp2 and image/hej2k?
While both formats encode image data using the JPEG 2000 standard, image/jp2 uses the traditional JP2 file format. In contrast, image/hej2k encapsulates the JPEG 2000 codestream within the modern HEIF (ISOBMFF) container, allowing for richer metadata, auxiliary image items, and depth maps.
What is the magic byte for HEJ2K?
Like other HEIF files, HEJ2K uses the ISOBMFF structure. It begins with a 4-byte box size, followed by the 'ftyp' identifier and the brand 'j2ki'. In hex, this is commonly XX XX XX XX 66 74 79 70 6A 32 6B 69 (....ftypj2ki).
Are HEJ2K images supported in web browsers?
No. There is no native web browser support for JPEG 2000 images encapsulated in HEIF containers. These files are typically used in specialized archival, medical, or geospatial workflows.