
JPEG XL vs. AVIF: Which Format Should Websites Use?
AVIF usually makes smaller lossy web images, while JPEG XL can be worth testing for particular images and workflows.
The short version
- For most lossy web photos, AVIF produces smaller files than JPEG XL in the comparisons reported by the 2026 analysis. 1
- JPEG XL is not automatically smaller: results vary by image and encoder, and some images come close or favor JPEG XL. 1
- The reported tests favor AVIF more strongly for screenshots, illustrations and images with transparency. 1
- The 2026 source says JPEG XL has reached all major browsers, but the supplied research does not give a browser-by-browser support table. 1
Which format makes smaller web images?
For lossy photos, AVIF is usually the smaller choice in the comparison published in 2026. At default encoding effort, the article reports that JPEG XL files are typically 15–25% larger than equivalent AVIF files. At maximum effort, the reported gap is typically 6–20%. 1
Those are typical results, not a rule for every image. The analysis reports outliers where JPEG XL comes close to AVIF or produces a smaller file. It also says the encoder—the software that compresses an image—can change JPEG XL results substantially. 1
- For a typical lossy photo, start by testing AVIF. 1
- For an image where file size matters greatly, compare both formats on that image. 1
Which format looks better?
File size alone does not settle image quality. The supplied 2026 comparison gives results for several image types, but the research provided here does not give a single quality score or a universal winner for every picture. 1
A practical comparison should look at the actual image at the size and quality level intended for the website. Different pictures can respond differently to compression, so a result from one photo should not be treated as a guarantee for another. The earlier comparison source describes its own analysis as unscientific, which is a reason to treat individual benchmark results cautiously. 2
What about screenshots, illustrations and transparency?
The 2026 comparison reports a clearer advantage for AVIF with screenshots and illustrations. In its tests, JPEG XL files were typically 30–90% larger at default effort and 20–70% larger at maximum effort. 1
It also reports AVIF as much smaller for images with transparency, though the result varies with the JPEG XL encoder and image detail. The source says lossy AVIF can handle screenshots and illustrations well; lossless compression is only necessary when an exact, bit-for-bit match is required. 1
- For screenshots and illustrations, test AVIF first. 1
- For transparency, compare the actual output; encoder choice can matter. 1
Do browsers support JPEG XL and AVIF?
The 2026 article says JPEG XL has landed in all major browsers. 1 That is a broad statement, not a detailed list of browser versions or device support. The supplied sources do not provide a current, browser-by-browser compatibility table for either format.
Older information can give a different impression. A 2023 comparison noted that many browsers supported AVIF while Chrome had dropped JPEG XL support at that time. 2 That report reflects the situation described in 2023, not the later claim in the 2026 article.
- Check current browser support for the audience and devices your site serves.
- Do not rely on the 2023 browser-support description as a current status report. 2
How should a website choose between them?
For a site choosing one format for lossy images, AVIF is the stronger starting point in the supplied 2026 comparison, especially for photos, screenshots, illustrations and transparency. 1 JPEG XL may still be worth testing when a particular image compresses unusually well or when a site’s image workflow makes it useful.
The comparison does not establish one best format for every site. Results depend on image content, encoder and settings. The research provided also does not set out a complete deployment guide, so check compatibility and image quality in the site’s own workflow before changing formats.
What we don't know yet
- The supplied sources do not include a current browser-by-browser or device-by-device compatibility table.
- The 2026 comparison summary does not provide full benchmark methods, sample sizes or a complete set of image results.
- The sources do not establish which format is best for every website’s visitors, image library and encoding workflow.
Share this explainer
A browser that helps you stay safe
Sureno is a Chromium browser with plain-language privacy settings and an assistant that only reads a page when you ask.
Questions people ask
Is AVIF better than JPEG XL for websites?
For many web images, the 2026 comparison favors AVIF on file size, especially for screenshots, illustrations and transparency. JPEG XL can still be close or smaller for particular images, so the result is not universal. 1
Is JPEG XL smaller than AVIF?
Usually not for lossy photos in the reported comparison: JPEG XL is typically 15–25% larger at default effort and 6–20% larger at maximum effort. The article reports exceptions where JPEG XL comes close or wins. 1
Which is better for transparent images, JPEG XL or AVIF?
The 2026 comparison reports smaller files from AVIF for images with transparency. The size difference can depend on the JPEG XL encoder and on how detailed the transparent image is. 1
Do all major browsers support JPEG XL?
A 2026 article says JPEG XL has landed in all major browsers. The sources supplied here do not give a browser-by-browser table, so check current support for the browsers and devices your visitors use. 1
Should websites use AVIF for screenshots and illustrations?
The 2026 comparison reports that AVIF produces smaller files than JPEG XL for screenshots and illustrations. It also says lossy AVIF can work well for these images, so lossless output is not required unless exact pixel-level results are needed. 1
Sources
- JPEG XL vs AVIF for web use-cases — jakearchibald.com
- JPEG XL vs AVIF: a comparison — tonisagrista.com
Free tools for this
They run in your browser. Nothing is uploaded and there is nothing to sign up for.









