JPEG XL vs AVIF: which to use
For images on the web, AVIF is the safer choice. Every major browser has displayed it for years, while JPEG XL only reached Chrome and Firefox in October 2026 and Edge does not display it. In our test at the converter's default quality of 82, AVIF files were also smaller: JPEG XL was 93% larger than AVIF on 4000-pixel photos. JPEG XL makes sense for archives, for apps that ship their own decoder, and on the web when you also serve a fallback.
JPEG XL and AVIF side by side
| JPEG XL | AVIF | |
|---|---|---|
| Compression | Lossy or lossless | Lossy |
| Transparency | Yes | Yes |
| Animation | Yes | Yes |
| Browser support | Recent browsers only. Safari has displayed still JPEG XL images since version 17, Chrome since 155 and Firefox since 158 (both October 2026). Edge does not. Older versions of every browser need a fallback, so serve it alongside JPG, WebP or AVIF. | Supported in Chrome, Firefox, Safari 16+, and Edge. Pre-2022 devices may not decode it. |
| Kodak photo, 768×512, average sizemeasured | 60 KB | 49 KB |
| Photo 4000 px wide, average sizemeasured | 538 KB | 278 KB |
| Screenshot 2880×1800, average sizemeasured | 172 KB | 115 KB |
| Encode time, photo 4000 px widemeasured | 3.5 s | 3.3 s |
| Decode time, photo 4000 px widemeasured | 267 ms | 351 ms |
Measured rows: lossy formats at quality 82, which is the converter's default, in headless Chromium on one machine. Quality 82 is not the same visual quality in every format, and no quality metric was computed. Sizes are averages across each image set. Times are medians. Method and full results.
Browser support decides most cases
AVIF: Supported in Chrome, Firefox, Safari 16+, and Edge. Pre-2022 devices may not decode it.
JPEG XL: Recent browsers only. Safari has displayed still JPEG XL images since version 17, Chrome since 155 and Firefox since 158 (both October 2026). Edge does not. Older versions of every browser need a fallback, so serve it alongside JPG, WebP or AVIF.
What we measured
At quality 82 on each encoder's own scale, JPEG XL files were 22% larger than AVIF on the Kodak photos, 93% larger on 4000-pixel photos and 50% larger on screenshots. This compares default settings, not equal visual quality. The two scales are not aligned, and JPEG XL at 82 may be keeping more detail than AVIF at 82. We did not compute a quality metric, so we cannot say which looked better.
Encoding took about the same time: a median of 3.5 s for JPEG XL and 3.3 s for AVIF on a 4000-pixel photo. JPEG XL decoded faster, 267 ms against 351 ms.
When to use JPEG XL, and when to use AVIF
Use JPEG XL when
- You are archiving images and control the software that will read them.
- You want one format that has both a lossless and a lossy mode.
Use AVIF when
- The image must display in Edge, or in browsers that have not been updated since October 2026.
- You want the smallest file at the converter's default setting.
Convert between them
These run in your browser. The file is not uploaded.
JPEG XL vs AVIF: common questions
Recent browsers only. Safari has displayed still JPEG XL images since version 17, Chrome since 155 and Firefox since 158 (both October 2026). Edge does not. Older versions of every browser need a fallback, so serve it alongside JPG, WebP or AVIF.
At quality 82 in our test, AVIF. JPEG XL files were 93% larger on large photos. The quality scales differ between the two encoders, so this is a comparison of defaults.
Yes. The image converter has JPEG XL as an output format, and it can read JPEG XL files to convert them to something else.
Other format comparisons
Last updated