Image MIME Reference
HEJ2K
JPEG 2000 Image (HEIF Container)
image/hej2k
VS
JPEG XS Image
image/jxs
JPEG-XS
A complete technical comparison of JPEG 2000 Image (HEIF Container) and JPEG XS Image — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.
Equal browser support
Feature Support
| Feature | HEJ2K | JPEG-XS |
|---|---|---|
| Transparency (Alpha) | Yes | Yes |
| Animation Support | ✕ No | Yes |
| Progressive Loading | Yes | ✕ No |
| HDR Support | Yes | Yes |
| EXIF Metadata | Yes | Yes |
| ICC Color Profile | Yes | Yes |
JPEG 2000 Image (HEIF Container)
image/hej2k
Extension
.hej2
Container
HEIF / ISOBMFF (ISO/IEC 15444-16)
Compression
Lossy / Lossless
Algorithm
JPEG 2000HTJ2K
Color Depth
8-bit, 10-bit, 12-bit, 16-bit
Developed by
ISO/IEC JTC 1 / ITU-T
Released
2019
Magic Bytes
XX XX XX XX 66 74 79 70 6A 32 6B 69
JPEG XS Image
image/jxs
Extension
.jxs
Container
ISOBMFF (ISO/IEC 21122-3) or Raw Codestream
Compression
Lossy (Visually Lossless) / Mathematically Lossless
Algorithm
JPEG XS (Low-complexity wavelet transform)
Color Depth
8-bit, 10-bit, 12-bit, 14-bit, 16-bit
Developed by
Joint Photographic Experts Group (JPEG) / intoPIX
Released
2019
Magic Bytes
FF 10 (Codestream) / XX XX XX XX 66 74 79 70 6A 78 73 20 (ISOBMFF)
Browser Support Comparison
| Browser | HEJ2K | JPEG-XS |
|---|---|---|
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
HEJ2K
HEJ2K Strengths
- 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
Limitations
- 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
JPEG-XS
JPEG-XS Strengths
- Provides sub-millisecond encoding/decoding latency, essential for live production and gaming
- Extremely lightweight, requiring very little CPU, GPU, or FPGA memory to process
- Replaces uncompressed video links (like SDI or HDMI) over standard Ethernet networks with visually lossless quality
Limitations
- Compression ratios are typically much lower (between 2:1 and 10:1) compared to heavy codecs like HEVC or AV1
- Zero support in web browsers or standard consumer devices
- Primarily licensed to hardware manufacturers and professional software ecosystems
When to choose which format
HEJ2K
Use HEJ2K when…
- Medical Imaging
- Geospatial Data
- Scientific Archiving
JPEG-XS
Use JPEG-XS when…
- Live Video Broadcasting (SMPTE ST 2110)
- Video over IP Networks
- Virtual Reality / Augmented Reality (VR/AR)
- Automotive & Drone Cameras