Free webp to jpg
Image MIME Reference
HEJ2K

JPEG 2000 Image (HEIF Container)

image/hej2k
VS

JPEG Network Graphics

image/x-jng
JNG

A complete technical comparison of JPEG 2000 Image (HEIF Container) and JPEG Network Graphics — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.

Equal browser support

Feature Support

Feature HEJ2K JNG
Transparency (Alpha) Yes Yes
Animation Support ✕ No ✕ No
Progressive Loading Yes Yes
HDR Support Yes ✕ No
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
Full HEJ2K reference →
JPEG Network Graphics
image/x-jng
Extension
.jng
Container PNG-style Chunk Structure (JHDR, JDAT, IDAT, IEND)
Compression Lossy (JPEG/DCT for color) / Lossless (Deflate for alpha mask)
Algorithm
JPEG (Discrete Cosine Transform)Deflate (LZ77)
Color Depth 8-bit, 12-bit, 24-bit (RGB), 32-bit (RGBA)
Developed by MNG Development Group (Glenn Randers-Pehrson et al.)
Released 2001
Magic Bytes
8B 4A 4E 47 0D 0A 1A 0A
Full JNG reference →

Browser Support Comparison

Browser HEJ2K JNG
Chrome Chrome
Firefox Firefox
Safari Safari
Edge Edge
IE IE (Legacy)
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
JNG

JNG Strengths

  • Solved a massive technical hurdle in the early 2000s by combining high-compression lossy photographic data with crisp, 8-bit alpha transparency
  • Utilized the highly robust, extensible chunk-based architecture of the PNG format
  • Provided an excellent, bandwidth-saving alternative to massive 32-bit transparent PNGs for web design
Limitations
  • Failed to achieve critical mass; browser vendors largely abandoned the MNG/JNG standard due to implementation complexity
  • Completely obsolete today, having been superseded by natively supported, superior formats like WebP, AVIF, and HEIC
  • Decoding requires a hybrid engine that can parse PNG chunks while simultaneously decoding a JPEG stream and a Deflate stream, complicating software support

When to choose which format

HEJ2K
Use HEJ2K when…
  • Medical Imaging
  • Geospatial Data
  • Scientific Archiving
JNG
Use JNG when…
  • Embedded frames in MNG animations
  • Historical web graphics requiring lossy compression with transparency
Share this comparison