JPEG XL (file extension .jxl) is an image format standardized as ISO/IEC 18181 by the JPEG committee, the group behind the original JPEG. It does lossy and lossless compression, HDR, wide color, transparency and animation in one format, and it has one trick no other web format has: it can repack an existing JPEG about a fifth smaller with no loss at all and turn it back into the very same file later. Since October 2026 it opens by default in Chrome and Firefox, Safari has shown still JPEG XL images since version 17, and Edge does not show it yet.
What is JPEG XL?
It is a raster image format, like JPEG, PNG, WebP and AVIF, made to replace JPEG rather than sit beside it. The JPEG committee's overview calls it "particularly optimised for responsive web environments" and says it "includes several features that help transition from the legacy JPEG format." MDN's image format guide describes it as royalty free and lists what it can hold:
- Lossy and lossless compression in the same format, so one format covers both photos and exact copies.
- Lossless JPEG transcoding: an existing JPEG repacked smaller, with "the original JPEG file" able to be "reconstructed".
- Progressive decoding, so a rough version of the image can show while the rest downloads.
- High bit depth, wide color gamuts and HDR, for the photos modern phones and cameras take.
- Transparency and animation, which JPEG cannot do.
Its file type is image/jxl and its extension .jxl.
How is JPEG XL different from JPEG?
An ordinary JPEG is lossy, 8-bit, opaque and still. JPEG XL does all of that and the list above, and compresses better. The difference that matters most for the billions of JPEGs that already exist is the repacking: in the committee's words, existing JPEG files "can be losslessly transcoded to JPEG XL, significantly reducing their size. These can be restored into the exact same JPEG file."
The community site jpegxl.info puts the saving at "an average 20%". We checked it, and the "exact same file" part, ourselves.
We repacked 40 JPEGs. Did they really come back the same?
Yes, all 40 of them. On Nov 27, 2026 we downloaded the 40 newest JPEG originals on the public Heart Photos wall (from 0.4 to 8.3 megapixels, 8.3 by median), repacked each one with libjxl's own encoder, cjxl --lossless_jpeg=1 -e 7 (libjxl v0.12.0), turned each JPEG XL back into a JPEG with djxl, and compared the SHA-256 fingerprint of every result with the file we started from.
| Result | |
|---|---|
| Came back identical, byte for byte | 40 of 40 |
| Median JPEG XL size, as a share of its JPEG | 82% |
| Smallest and largest share | 43% and 89% |
| All 40 together | 75.0 MB of JPEG became 57.5 MB, 23% less |
| Median time to repack one (32 threads) | 0.12 seconds |
| Median time to turn one back into its JPEG | 0.05 seconds |
So the 20% claim held up: a median saving of 18% and 23% in total, and getting the JPEG back is fast enough to do on the fly. These are one wall's photos on one fast PC, not a lab test set, and your own files will vary. Our earlier comparison of AVIF, JPEG XL and WebP found the same 18% median on a different 40.
Note the word lossless here means the JPEG, not the scene: a JPEG has already thrown detail away when it was made, and repacking it neither loses more nor brings any back. Our post on lossy vs lossless compression explains the difference.
Which browsers support JPEG XL?
Support changed this fall, after years in which only Safari showed it. These are the figures Can I use gave on Nov 27, 2026: 53.99% of users worldwide have full support and 15.26% partial, 69.25% in all.
| Browser | JPEG XL | Since |
|---|---|---|
| Chrome (desktop and Android) | Yes, on by default | Chrome 155, stable on Oct 6, 2026 |
| Firefox | Yes, on by default | Firefox 158, Oct 13, 2026 |
| Safari (Mac, iPhone, iPad) | Partial: still images only, no progressive loading | Safari 17 |
| Opera | Yes | Opera 139 |
| Edge | No | |
| Samsung Internet | No |
Chrome's version decodes with jxl-rs, "a memory-safe pure Rust decoder", according to its Chrome Platform Status entry. Firefox's release notes say it "generally has better compression than WebP, JPEG, PNG, and GIF." Can I use's notes for Safari say it "supports still images. Animated image sequences are not supported," and that partial "refers to not supporting progressive decoding."
This row is moving faster than any other image format's, so look at it again before you rely on it.
Should you use JPEG XL on a website?
Yes, but never alone. About three users in ten still cannot see it, Edge users among them, so a JXL with no fallback is a broken image for them. MDN's advice is to "provide a fallback using the <picture> element", which lets each browser take the first format it supports:
<picture>
<source srcset="photo.jxl" type="image/jxl">
<source srcset="photo.avif" type="image/avif">
<img src="photo.jpg" alt="A longship on a misty fjord" width="1600" height="900">
</picture>
For most sites, AVIF is still the better first choice today, mainly because Can I use counts it in 96.69% of browsers (Nov 27, 2026). JPEG XL earns its place where AVIF is weak: lossless images, high bit depth, very large images, and above all a library of existing JPEGs that you want smaller without touching their quality.
How do you convert to and from JPEG XL?
The reference tools are free and open source, from libjxl:
| To | Command |
|---|---|
| Repack a JPEG with no loss | cjxl photo.jpg photo.jxl --lossless_jpeg=1 |
| Make a lossless JPEG XL from a PNG | cjxl image.png image.jxl -d 0 |
| Get the original JPEG back | djxl photo.jxl photo.jpg |
| Turn any JPEG XL into a PNG | djxl image.jxl image.png |
-d is the distance. In cjxl's own help, 0.0 is "mathematically lossless, default for JPEG/GIF input" and 1.0 is "visually lossless, default for other input". --lossless_jpeg=1 is already the default for a JPEG, but saying it makes the intent clear. Run djxl back to .jpg only on a file that was repacked from a JPEG; that is the step that restores the exact original.
Frequently asked questions
What is a .jxl file?
A JPEG XL image. The extension is .jxl and the type is image/jxl. It may be a new photo encoded straight to JPEG XL, a lossless image, or an old JPEG repacked to save space.
How do I open a JXL file?
Drag it into Chrome 155 or later, Firefox 158 or later, or Safari 17 or later. To get a file that opens everywhere, convert it with djxl to a JPEG (if it came from one) or a PNG.
Is JPEG XL better than AVIF?
For different jobs. AVIF has the wider support and is the usual choice for lossy web images. JPEG XL wins on lossless, on repacking JPEGs with no loss, and on progressive loading. Our AVIF vs JPEG XL vs WebP post compares them side by side.
Is JPEG XL royalty free?
MDN describes it as a royalty-free format, and the reference software, libjxl, is open source.
Does converting a JPEG to JPEG XL lose quality?
Not when you repack it with --lossless_jpeg=1: the pixels stay the same and the original file can be rebuilt byte for byte, as our 40 of 40 showed. A lossy JPEG XL made from a JPEG (a distance above 0 with repacking turned off) would compress it a second time, which loses detail the way saving a JPEG again does.
Does JPEG XL keep EXIF data?
Yes. cjxl's help lists EXIF, XMP and JUMBF among the metadata it stores, with -x strip=exif to leave EXIF out, and a repacked JPEG keeps what the JPEG had, since the original file comes back whole. That includes location, so read how to remove location data from a photo before you share one.
What Heart Photos does with JPEG XL
Heart Photos already keeps most originals as JPEG XL, out of sight. When you upload a JPEG, its original is repacked as lossless JPEG XL in the background, and the new file is kept only after it has been turned back into a JPEG and found identical, byte for byte, to the one you uploaded; that is how the 40 files above were stored, and our own repacks came out exactly their size. A PNG is kept as lossless JPEG XL when that is smaller and decodes to the very same pixels. You can also upload .jxl files yourself.
What you download is still the file you expect: Original JPEG gives back your exact JPEG, not the JPEG XL. For anyone who wants the smaller file, the Download section of the image's side panel also offers JPEG XL with its size, wherever the original is kept that way. What visitors browse is AVIF, because every major browser can show it.
To see it on your own photos, Open Heart Photos and upload a JPEG. For more on picking formats, read PNG vs JPG and what JPEG quality to use.