Format Guide 12 min read

JPEG XL: The Future Image Format (Adoption Guide)

Everything you need to know about JPEG XL - the next-generation image format offering superior compression, HDR support, and lossless JPEG transcoding. Track browser support and learn implementation strategies.

By ImageGuide Team · Published January 19, 2026 · Updated January 19, 2026
JPEG XLimage formatsnext-gencompressionHDR

JPEG XL (JXL) represents the most ambitious attempt to create a universal image format. With superior compression, HDR support, and the unique ability to losslessly transcode existing JPEGs, it promises to be the future of web images—once browser support catches up.

What is JPEG XL?

JPEG XL is a royalty-free image format developed by the Joint Photographic Experts Group (the same organization behind JPEG). It was standardized in 2022 with the goal of replacing both JPEG and PNG.

Key Features

FeatureJPEG XLAVIFWebPJPEG
Lossy compressionExcellentExcellentGoodGood
Lossless compressionExcellentGoodGoodNo
TransparencyYesYesYesNo
AnimationYesYesYesNo
HDR supportNativeYesNoNo
Progressive decodeExcellentLimitedNoYes
JPEG recompressionLosslessNoNoN/A
Max dimensions1 billion px65535 px16383 px65535 px

Compression Comparison

Testing with a typical photograph (24MP, 6000×4000):

FormatQualityFile Sizevs JPEG
JPEG80%2.4 MBbaseline
WebP80%1.8 MB-25%
AVIF65%1.2 MB-50%
JPEG XL80%1.0 MB-58%

Browser Support Status (2026)

Current Support

BrowserStatusNotes
SafariSupported17+ (iOS 17+, macOS Sonoma+)
FirefoxBehind flagEnable in about:config
ChromeRemovedWas behind flag, removed in v110
EdgeNo supportFollowing Chrome

The Chrome Situation

Google removed JPEG XL support from Chrome in February 2023, citing insufficient ecosystem interest. This decision remains controversial, with ongoing community advocacy for reinstatement.

Checking Support

async function supportsJxl() {
  const img = new Image();

  return new Promise((resolve) => {
    img.onload = () => resolve(true);
    img.onerror = () => resolve(false);
    img.src = 'data:image/jxl;base64,/woIELASCAgQAFwASxLFgkWAHL0xqnCBCV0qDp901Te/5QM=';
  });
}

Why JPEG XL Matters

1. Lossless JPEG Transcoding

JPEG XL can convert existing JPEGs with zero quality loss and ~20% size reduction. This is unique to JPEG XL and valuable for archiving existing photo libraries.

2. Superior Progressive Loading

JPEG XL’s progressive decoding provides a usable preview at just 10% loaded, with quality improving smoothly as more data arrives.

3. HDR and Wide Gamut

Native support for HDR10, HLG, PQ transfer functions and Display P3, Rec. 2020 color spaces.

Implementation Strategies

Progressive Enhancement

<picture>
  <source srcset="image.jxl" type="image/jxl">
  <source srcset="image.avif" type="image/avif">
  <source srcset="image.webp" type="image/webp">
  <img src="image.jpg" alt="Description" loading="lazy">
</picture>

Using Image CDNs

CDNs like Sirv handle format negotiation automatically:

<img src="https://your-site.sirv.com/photos/sunset.jpg?format=optimal">

When browsers support JPEG XL, CDNs can serve it automatically without code changes.

Creating JPEG XL Images

Command-Line Tools

Install libjxl and use cjxl for encoding:

cjxl input.png output.jxl -q 80
cjxl input.jpg output.jxl --lossless_jpeg=1

Quality Guidelines

Content TypeQualityNotes
Photographs75-85Good balance
Graphics85-95Preserve details
Screenshots90-100Near-lossless
Archival100Lossless

Migration Strategy

Phase 1: Preparation (Now)

Generate JXL alongside other formats in your build pipeline.

Phase 2: Conditional Serving (Now)

Use <picture> with JXL as first source for Safari users.

Phase 3: Primary Format (Future)

When Chrome adds support, consider making JXL the primary format.

Conclusion

JPEG XL is technically superior to current formats with 60% smaller files than JPEG, lossless JPEG transcoding, and native HDR support.

The main barrier is browser support. Safari’s adoption is promising, but Chrome’s removal remains a setback. For now:

  1. Generate JXL alongside other formats
  2. Serve conditionally using <picture>
  3. Monitor browser support for changes
  4. Use CDNs like Sirv that can add JXL support automatically

Related Resources

Format References

Ready to optimize your images?

Sirv automatically optimizes, resizes, and converts your images. Try it free.

Start Free Trial