AVIF, WebP or JPEG XL: product image formats in 2026
Last updated:
Product photos are usually the heaviest part of a product page. Serving them in a modern format is one of the simplest ways to make pages lighter without making the photos look worse. The short answer: serve AVIF or WebP with a JPEG fallback, and treat JPEG XL as an optional extra now that Chrome supports it.
What changed: JPEG XL is back in Chrome
In October 2026, Google announced that Chrome is shipping decoding support for JPEG XL (.jxl) starting with Chrome 155. The Chrome team describes it as offering better compression than JPEG, lossless compression, HDR support and fine-grained progressive decoding, and recommends trying both AVIF and JPEG XL to see which works best, expecting JPEG XL to shine on high-fidelity photographic images. Safari has supported JPEG XL since Safari 17.
That makes JPEG XL worth testing, but browser support is still not universal. A store that switched every image to .jxl today would show broken photos to some shoppers.
The formats, in practice
- JPEG: universal, but usually the heaviest for photos. Keep it as the fallback.
- PNG: right for logos and graphics with transparency, wasteful for photos.
- WebP: supported by all current major browsers, usually much lighter than JPEG for photos. The safe default.
- AVIF: also widely supported, often lighter than WebP at similar quality, but slower to encode.
- JPEG XL: strong for high-quality photos, newly supported in Chrome and supported in Safari; use it only with a fallback.
How to serve them safely
Use a picture element so each browser picks the first format it understands:
<picture>
<source type="image/avif" srcset="/img/linen-dress-800.avif 800w, /img/linen-dress-1600.avif 1600w">
<source type="image/webp" srcset="/img/linen-dress-800.webp 800w, /img/linen-dress-1600.webp 1600w">
<img src="/img/linen-dress-800.jpg" alt="Natural linen summer dress, front view"
width="800" height="1000" loading="lazy">
</picture>
To test JPEG XL, add an image/jxl source above the others; browsers without support skip it. Do not lazy-load the main product image at the top of the page.
Most platforms can do this for you: many e-commerce platforms and image CDNs convert uploads and serve the best format the browser accepts. Check whether yours does before building anything.
What to check on your product pages
- The main product image is not a JPEG or PNG over a couple of hundred kilobytes when a modern version could be served.
- Images are sized to the space they fill, with
srcset, not a 3000 px original scaled down by the browser. - Every image keeps a meaningful
alttext and explicit width and height, so the layout does not jump while it loads. - Your product feed still points to a high-quality original that meets Google's size requirements (see product image size and the 500 px minimum).
Lighter images also help your Core Web Vitals, especially Largest Contentful Paint on product pages.
How Averifly helps
Averifly's catalog checks flag product pages that load a JPEG or PNG image over 200 KB with no WebP or AVIF alternative, and pages with oversized product images, so you know which templates to fix first. See all checks on the rules page and run a free scan of your store.
Frequently asked questions
Which image format should an online store use for product photos?
Serve AVIF or WebP to browsers that support them, with a JPEG fallback. Both usually make the same photo noticeably smaller than JPEG at similar visual quality, and they are supported by all current major browsers.
Should I switch my product images to JPEG XL now that Chrome supports it?
Not as your only format. Chrome announced JPEG XL decoding from Chrome 155 and Safari has supported it since Safari 17, but you still need a fallback for other browsers. If you try it, add it as an extra source in a picture element, next to AVIF or WebP and JPEG.
Do I need to keep JPEG files?
Keep a high-quality original for your product feed, zoom and future conversions, and keep a JPEG fallback in the page for browsers that support none of the modern formats.
