Article
Nov 29, 2026
Understanding JPEG XL: Modern Compression, Image Fidelity, and File Capabilities
JPEG XL (.jxl) is a modern image format standardized as ISO/IEC 18181. It offers strong lossy and lossless compression, high-quality HDR and wide color, alpha, animation, and progressive decoding, and it can losslessly recompress existing JPG files into smaller JXL files that convert back to the identical original. Browser support has been changing, so check current tables before using it on the web.
The JPEG committee designed JPEG XL as a general successor to JPEG, combining ideas from Google's PIK project and Cloudinary's FUIF. It aims to serve websites and professional workflows alike. Its history, however, has been unusual: strong technical results, then uneven browser decisions. This guide explains how the format works, what its distinctive features mean in practice, and how to think about adopting it at a time when the support picture keeps moving.
Key Points
- JPEG XL has two coding modes: VarDCT for lossy images and Modular for lossless and graphics.
- Lossless JPEG recompression typically saves around a fifth of the file size and can be reversed bit for bit.
- It supports up to 32 bits per channel, HDR, wide gamut, alpha, layers, animation, and progressive decoding.
- Decoding is designed to be fast and parallel.
- Browser support has varied, with some support behind flags, so verify before relying on it.
- Serve a fallback such as AVIF, WebP, or JPG on public websites.
KEY TAKEAWAY
“JPEG XL's strongest idea is not a new picture look but an upgrade path: shrink the JPG archive you already have without losing a single bit of it.”
How JPEG XL Compresses Images
The lossy mode, VarDCT, uses variable-sized discrete cosine transforms, from small blocks for detailed areas up to large blocks for smooth ones, and adaptive quantization that spends more bits where the eye is sensitive. It works in a perceptual color space called XYB, which models how human vision responds to light, so errors are placed where they are least visible. Tools to reduce banding and ringing, and a deblocking filter, help keep smooth areas clean.
The Modular mode is used for lossless coding and for graphics with sharp edges. It predicts pixel values from neighbours with several predictors and codes the residuals with context modeling, with transforms such as palettes and squeeze, a form of progressive wavelet-like splitting. The format also includes patches, which reuse repeated elements such as letters in screenshots, and noise synthesis, which re-creates grain at decode time. The codestream can be bare or inside a container carrying metadata such as EXIF and XMP.
Mode | Used for | Key ideas |
| VarDCT | Photographs, lossy compression | Variable-size DCT, XYB color, adaptive quantization |
| Modular | Lossless images, graphics, screenshots | Prediction, context modeling, palettes, squeeze |
| JPEG reconstruction | Recompressing existing JPGs | Reuses coefficients, stores data to rebuild the original |
| Patches and noise | Repeated elements and grain | Saves bytes on text-like repeats and grainy images |
Lossless JPEG Recompression
A JPG stores quantized block coefficients compressed with a fairly simple entropy coder. JPEG XL can read those coefficients, code them with a more efficient method, and store a small amount of extra data to rebuild the original file byte for byte. Typical savings are around 20 percent, depending on the image and the original encoder. No pixel is re-quantized, so there is no new quality loss, and converting back yields a file identical to the original JPG. For photographers and organizations with large JPG libraries, this is a rare, risk-free way to save storage.
Action | Is it lossless? | Result |
| JPG to JXL via reconstruction | Yes, fully reversible | Smaller file, identical JPG available on demand |
| JPG decoded and re-encoded as lossy JXL | No | A new lossy generation, possibly smaller still |
| JXL back to the original JPG | Yes, if made by reconstruction | Byte-identical original |
Image Quality Features
- Bit depth: up to 32 bits per channel, which suits scientific and HDR content.
- HDR and wide gamut: supports PQ and HLG transfer functions and wide color spaces.
- Alpha and layers: transparency and layered frames.
- Animation: frame sequences with timing.
- Progressive decoding: an image can refine as data arrives, including a responsive mode that shows a good preview early.
- Large images: very high dimension limits suited to panoramas and scientific images.
Compression Compared Fairly
Published comparisons often show JPEG XL beating JPEG substantially at the same perceptual quality and competing with AVIF, especially at medium and high quality, while decoding faster. AVIF can win at very low bitrates. Results depend on the encoder (libjxl is the reference), the settings, and the image type, so a single percentage should be treated with caution. The reliable approach is to encode your own images and inspect them at their real display size.
Browser and Software Support: A Moving Picture
Support has changed several times. Safari added JPEG XL in version 17 in 2023, including system-level support on Apple platforms. Chrome had an experimental implementation, removed it in 2022, and announced in late 2025 that it would accept a memory-safe decoder; reports indicate a Rust-based decoder reached Chrome behind an experimental flag in early 2026. Firefox work has also progressed, with reports of support behind a preference in recent releases. Reports from different outlets disagree on details, so confirm the current state on caniuse.com and in browser release notes. Flag-gated support is not usable for ordinary visitors, so a public site still needs a fallback. Outside browsers, libjxl, ImageMagick, Krita, GIMP (in newer builds or with plug-ins), and several photo applications handle the format, and Windows may need an extension.
Environment | Status in general terms | Advice |
| Safari and Apple platforms | Supported since 2023 | Usable with fallbacks for others |
| Chrome and Chromium browsers | Reported behind flags or in transition | Check release notes before relying on it |
| Firefox | Reported behind preferences | Check release notes |
| Image editors and libraries | Growing support | Test your toolchain |
| Social platforms and upload forms | Rarely accepted | Upload JPG or PNG |
Advantages and Disadvantages
Advantages | Disadvantages |
| Reversible JPEG recompression with about 20 percent savings | Browser support is still evolving |
| One format for photographs, graphics, HDR and animation | Tool and CMS support lag behind WebP and AVIF |
| Fast decoding and progressive loading | Fewer hardware decoders |
| High bit depth and very large images | Few platforms accept uploads |
| Open ISO standard with a reference implementation | Encoder options can be complex |
JPEG XL Compared With Related Formats
- JPEG XL and AVIF: AVIF has broader browser support today, while JPEG XL offers JPEG recompression and fast decoding. See the AVIF guide.
- JPEG XL and WebP: JPEG XL is more capable at high quality, whereas WebP is universally supported. See the WebP guide.
- JPEG XL and JPEG 2000: both come from the JPEG committee, but JPEG XL targets wide use. See the JPEG 2000 guide.
- JPEG XL and JPG: it is smaller and more flexible, but not yet universal. See the JPG guide.
Working With JPEG XL Files
The SnapZain Image Format Converter does not list JXL as an accepted input or output. For JXL work, use the reference command-line tools cjxl and djxl, an ImageMagick build with JXL support, or an application with a JPEG XL plug-in. For sharing, decode a JXL to PNG for lossless results or to JPG for compatibility, and then use SnapZain for further conversions among its listed formats if needed.
- JPG to JXL (lossless transcode): saves space and can be reversed to the identical JPG.
- JPG re-encoded as lossy JXL: a different operation that applies new lossy compression.
- JXL to JPG or PNG: use for compatibility, and note that a reconstruction-based JXL can be turned back into its original JPG.
Planning a Move of a JPG Archive to JPEG XL
- Decide the goal: storage saving through lossless recompression, or new lossy files for delivery.
- Test a sample: recompress twenty files and confirm that decoding gives back byte-identical JPGs.
- Check your software: make sure your viewer, catalog, and backup tools can open JXL.
- Keep a verified backup until you have confirmed the round trip.
- Record the tool version: note which libjxl version created the files.
- Retain a fallback path: be ready to restore JPGs if a tool you depend on lacks support.
Since the recompression is reversible, the main risk is not data loss but tool support, which is why checking software first is the key step.
Common JPEG XL Mistakes
- Confusing lossless transcoding with re-encoding: only the first guarantees a bit-exact way back.
- Deploying without a fallback: unsupported visitors will see a broken image.
- Judging quality from one percentage claim: compare your own images.
- Assuming support is settled: recheck regularly.
Conclusion
JPEG XL has impressive technology and a particularly useful upgrade path for existing JPG archives, but web support is still catching up. It is worth understanding, testing, and using in pipelines you control, while public sites should keep widely supported fallbacks until the support picture settles.
Frequently Asked Questions
Which earlier projects shaped JPEG XL?
The format combined ideas from Google's PIK project and Cloudinary's FUIF, and the JPEG committee standardized the result.
Can a JPEG XL file be turned back into the original JPG?
Yes, if it was created through lossless JPEG recompression, because the file stores the data needed to rebuild the original.
How much smaller is a recompressed JPG?
Often around 20 percent, though results depend on the image and the original encoder.
Which Apple software reads JPEG XL natively?
Safari 17 and the matching Apple operating systems introduced support in 2023, so Apple apps built on the system image frameworks can display it.
What is the state of JPEG XL in Chrome?
Reports indicate a Rust-based decoder arrived behind an experimental flag in early 2026. Check release notes for the current status.
Is JPEG XL better than AVIF?
Neither wins everywhere. JPEG XL decodes quickly and recompresses JPGs losslessly, while AVIF has broader support today and can excel at very low bitrates.
What is XYB color space?
A perceptual color space used by the lossy mode that places quantization errors where human vision notices them least.
Which JPEG XL mode applies to my image?
VarDCT is the lossy mode suited to photographs, while Modular handles lossless images and sharp graphics such as screenshots.
Does JPEG XL support HDR?
Yes. It handles high bit depths and HDR transfer functions such as PQ and HLG, subject to software and display support.
Can JPEG XL be animated?
Yes, though tool and viewer support for animated JXL is still developing.
What is progressive decoding?
The picture can show a rough version early and sharpen as more data arrives, which helps slow connections.
Which programs can display a .jxl file today?
Safari and Apple platforms, recent versions of several image viewers and editors, and any program built on libjxl. Browsers other than Safari may need flags or may not support it yet.
What are patches in JPEG XL?
A tool that reuses repeated elements, such as letters in a screenshot, so they are stored once.
Is JPEG XL an ISO standard?
Yes. It is defined in the ISO/IEC 18181 series.
Why did Chrome remove JPEG XL in 2022?
The browser team cited limited ecosystem interest at the time. Its position later changed, as noted in the support discussion above.
Can I use JPEG XL on my website today?
Only as an enhancement with fallbacks such as AVIF, WebP, or JPG, because many visitors' browsers will not display it.
What is libjxl?
The reference software library and tools, including cjxl for encoding and djxl for decoding.
Is the original JPG's metadata preserved when I recompress it to JPEG XL?
The reconstruction data is designed to rebuild the original file, including its metadata blocks, so the decoded JPG matches the source. Check with your own tool version.
Is lossless recompression the same as re-encoding?
No. Recompression keeps the quantized coefficients intact and is reversible, while re-encoding decodes pixels and applies new compression.
Which tool should I use to decode JXL before using an online converter?
Use djxl from libjxl, an Image Magick build with JXL support, or an application with a plug-in, then upload the resulting PNG or JPG.
Should photographers move archives to JPEG XL?
It can save storage through reversible recompression, but verify long-term readability, keep backups, and confirm your software can open the files.