iLoveConverter
Categories 11 categories

JXL, Explained

iLoveConverter Team 2 min read

On this page

JPEG XL (JXL) is the next generation of image compression — designed by Google and Cloudflare engineers, standardized by ISO/IEC in 2021. It beats JPEG, WebP, AVIF, and HEIC on almost every benchmark while remaining royalty-free. Best of all: it’s backward compatible with JPEG — you can transcode a JPEG to JXL and get ~30% smaller files with zero quality loss.

Technical details

JXL uses a dual algorithm: VarDCT (Variable DCT) for lossy compression (similar to JPEG but with better entropy coding), and a modular mode for lossless compression with progressive decoding. It supports color spaces including CMYK and HSL, up to 32-bit floating point per channel, animation, EXIF, XMP, and full resolution up to 2^35 pixels. The JPEG compatibility mode lets you wrap an existing JPEG inside a JXL file — decode is byte-identical to the original JPEG.

FeatureJXLWebPAVIFJPEG
Lossy qualityBestVery goodGoodGood
Lossless sizeSmallest30% larger20% larger2x+ larger
ProgressiveYesPartialYesYes
AnimationYesYesNoNo
JPEG compatibilityYesNoNoNative
PatentsRoyalty-freeMinimalAOMediaMPEG LA (Free)

Conversion

JXL ↔ JPEG conversion preserves visual quality at ~30% smaller size (lossless transcodement via cjxl -j). JXL to PNG is lossless. Converting WebP or AVIF to JXL often reduces file size further. The cjxl/djxl tools from libjxl handle all conversions — ffmpeg and ImageMagick have JXL support too.

Common problems

  • Browser support is still rolling out. Chrome and Firefox support JXL; Safari dropped it in favor of AVIF. Edge supports it on Chromium.
  • Encoding slowness. JXL encoding is significantly slower than JPEG, WebP, or AVIF decoding. Decoding is fast.
  • Tooling gap. Many image processors still don’t support JXL natively.

FAQ

Why hasn’t JXL replaced JPEG yet?

Browser support is the bottleneck. Safari 17.4 added JXL briefly then removed it. Google is investing heavily, but Apple prioritized AVIF for Safari. Meanwhile JXL dominates offline archives — Cloudflare, Facebook, and Squoosh offer JXL conversion tools.

Is JXL royalty-free?

Yes — the JPEG XL Working Group and Google have committed all relevant patents to royalty-free licensing. You can use it in any product without paying fees.

What’s better: JXL or AVIF?

For progressive decoding and photographic images at high bitrate savings, JXL often wins. For simpler images and where AVIF is universally supported, AVIF is the safer choice. Both are excellent — JXL has the edge on technical quality, AVIF has the edge on browser support (Safari).

Can I convert a whole photo library to JXL?

Yes — use cjxl with batch processing. The -j flag transcodes existing JPEGs losslessly (byte-identical on decode) with ~30% file size savings. Perfect for archival.

Does JXL support transparent images?

Yes — full alpha channel support in both lossy and lossless modes. Better than JPEG (no alpha), comparable to WebP and AVIF.

Try it yourself — free, right in your browser

Everything mentioned in this guide runs locally on this site: no upload, no watermark, no sign-up.

Format deep-dives: JXL (.jxl) , WebP (.webp)