Free webp to jpg
Image MIME Reference
HEJ2K

JPEG 2000 Image (HEIF Container)

image/hej2k
VS

T.38 Fax over IP (FoIP)

image/t38
T.38

A complete technical comparison of JPEG 2000 Image (HEIF Container) and T.38 Fax over IP (FoIP) — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.

Equal browser support

Feature Support

Feature HEJ2K T.38
Transparency (Alpha) Yes ✕ No
Animation Support ✕ No ✕ No
Progressive Loading Yes ✕ No
HDR Support Yes ✕ No
EXIF Metadata Yes ✕ No
ICC Color Profile Yes ✕ No
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 →
T.38 Fax over IP (FoIP)
image/t38
Extension
.t38
Container UDPTL or TCP (Network Transport)
Compression Lossless (MH, MR, MMR / T.4, T.6)
Algorithm
MH (Modified Huffman)MR (Modified Read)MMR (Modified Modified Read)
Color Depth 1-bit (Monochrome B&W)
Developed by ITU-T (International Telecommunication Union)
Released 1998
Magic Bytes
None (Network Stream)
Full T.38 reference →

Browser Support Comparison

Browser HEJ2K T.38
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
T.38

T.38 Strengths

  • Designed specifically to overcome the timing and packet-loss issues that plague traditional fax over standard VoIP audio codecs (like G.711)
  • Reduces bandwidth requirements by transmitting fax protocol data rather than uncompressed audio tones
  • Universally supported by enterprise SIP trunks and Session Border Controllers (SBCs) for FoIP
Limitations
  • Not an actual image file format, causing confusion due to its 'image/' MIME classification
  • Extremely complex to implement correctly over lossy UDP networks (relies on UDPTL redundancy mechanisms)
  • Zero support in web browsers or standard image viewing software

When to choose which format

HEJ2K
Use HEJ2K when…
  • Medical Imaging
  • Geospatial Data
  • Scientific Archiving
T.38
Use T.38 when…
  • Fax over IP (FoIP) Transmissions
  • SIP/SDP Media Negotiation
  • VoIP Gateways and PBX Systems
  • Enterprise Fax Servers
Share this comparison