DevKits

image/*

image/jxl

File extensions: .jxl

Next-gen image format — lossless JPEG recompression plus high-ratio lossy.

What is image/jxl?

image/jxl is the media type for JPEG XL, a modern format designed to replace legacy JPEG. It offers both high-quality lossy compression (smaller than JPEG and competitive with AVIF) and true lossless mode, plus a unique feature: it can losslessly recompress existing JPEG files ~20% smaller while being able to reconstruct the original byte-for-byte. It also supports wide gamut, HDR, animation, and progressive decoding.

Typical usage

Photography, web images where quality and file size both matter, and lossless archival of existing JPEGs.

Common gotchas

Browser support is still limited — Chrome removed its flag-gated support, while others vary — so always serve a JPEG/WebP/AVIF fallback via <picture> and content negotiation. JXL shines today in archival and native-app pipelines more than broad web delivery.

HTTP header example

Response header

Content-Type: image/jxl

Reference

ISO/IEC 18181

Frequently asked questions

What is the image/jxl MIME type?

image/jxl is the media type for JPEG XL, a modern format designed to replace legacy JPEG. It offers both high-quality lossy compression (smaller than JPEG and competitive with AVIF) and true lossless mode, plus a unique feature: it can losslessly recompress existing JPEG files ~20% smaller while being able to reconstruct the original byte-for-byte. It also supports wide gamut, HDR, animation, and progressive decoding.

What file extension does image/jxl use?

Files served as image/jxl typically use the extension .jxl. The most common is .jxl.

How do I set the Content-Type for image/jxl?

Send the HTTP response header Content-Type: image/jxl. Photography, web images where quality and file size both matter, and lossless archival of existing JPEGs.

Is image/jxl an official MIME type?

Yes. image/jxl is officially registered with IANA (ISO/IEC 18181), so standards-conformant clients recognize it.

What are common mistakes with image/jxl?

Browser support is still limited — Chrome removed its flag-gated support, while others vary — so always serve a JPEG/WebP/AVIF fallback via <picture> and content negotiation. JXL shines today in archival and native-app pipelines more than broad web delivery.

Related MIME types

Handle image/jxl with these tools