Guide
WebP, AVIF and JPEG XL: which formats work where?
Newer image formats can make files a quarter to half smaller than JPG, but a smaller file is no use if the person or app on the other end can’t open it. Here is where each format works today.
By Mark Stoumann ·
A web page can pick a format per visitor, so websites can use new formats early. A file you email, upload to a form or send in a chat has to work for whoever receives it, so the safe choice there changes much more slowly. This guide covers both, with figures from caniuse.com (browsers) and caniemail.com (email apps), checked on 17 October 2026.
Browser support at a glance
| Format | Chrome | Edge | Firefox | Safari |
|---|---|---|---|---|
| WebP | Yes | Yes (18+) | Yes (65+) | Yes (14+) |
| AVIF | Yes (85+) | Yes (121+) | Yes (93+) | Yes (16+), still images |
| JPEG XL | Yes (155+) | No | Not yet by default | Yes (17+), still images |
| HEIC | No | No | No | Yes (17+) |
Safari’s support also depends on the operating system: on a Mac, Safari 14 and 15 show WebP only on macOS 11 Big Sur or later, and AVIF needs macOS 13 Ventura or later. On iPhone and iPad, Safari’s support arrives with the iOS update.
WebP: safe almost everywhere
WebP comes from Google, and after a long wait for Safari it now works in every current browser; caniuse.com counts about 97% of users. Lossy WebP is typically a quarter to a third smaller than JPG at the same quality, and unlike JPG it can keep a transparent background. For a website, it is the easy default: convert JPG to WebP or PNG to WebP and use the result directly.
Outside the browser, WebP is less certain. The image you saved from a web page arrives as a .webp file, and older photo editors, office software and some upload forms still refuse it. That is the single most common reason people convert WebP to JPG.
AVIF: smaller still, now in every major browser
AVIF stores images compressed with AV1, a video codec, inside a HEIF container, the same kind of container iPhones use for HEIC. Google’s web.dev team reports savings of more than 50% against JPG, and it supports transparency, wide color and HDR. Edge was the last major browser to add it, in version 121, and caniuse.com now counts about 96% of users. Safari shows still AVIF images, but not animated ones.
The cost is on the creating side: AVIF is slower to encode than JPG or WebP, and many apps can’t save it yet. That matters little for a website, where you encode once and serve many times.
JPEG XL: back in Chrome
JPEG XL (ISO/IEC 18181) comes from the JPEG committee. Its party trick is that an existing JPG can be repacked as JPEG XL losslessly: the file gets significantly smaller without a single pixel changing. It also does lossy and lossless compression of new images, wide color and HDR.
Its browser history is unusual. Chrome added experimental support behind a flag, removed it in 2022, and then switched JPEG XL on by default in Chrome 155 in October 2026, using a new decoder written in Rust. Safari has shown still JPEG XL images since version 17. Firefox has it in Firefox Labs, and caniuse.com expects it on by default from version 158. Edge doesn’t show it yet, even though it is built on the same engine as Chrome. Until that settles, only use JPEG XL with a fallback.
HEIC: Apple only
HEIC is what iPhones save photos as by default. Among browsers, only Safari 17 and later can show it. Chrome, Edge and Firefox can’t, and many websites and forms reject it. When an iPhone photo needs to go anywhere else, convert HEIC to JPG first.
Email is a different story
Email apps lag behind browsers. In caniemail.com’s tests, the Outlook desktop app for Windows showed neither WebP nor AVIF, while Apple Mail showed both, and Gmail converted them to JPG itself. Those tests date from 2021 (WebP) and 2023 (AVIF), so some apps may have caught up, but for images inside an email or attached to one, JPG and PNG remain the formats that just work.
Serve new formats with a fallback
On a website you don’t have to choose. The HTML <picture> element lists several versions. The browser skips every <source> whose type it doesn’t support, and if none fits it uses the ordinary <img>:
<picture>
<source srcset="photo.avif" type="image/avif">
<source srcset="photo.webp" type="image/webp">
<img src="photo.jpg" alt="Harbor at sunset" width="1200" height="800">
</picture> List the smallest format first. The width and height on the <img> reserve space while the image loads, whichever version the browser picks. Many image CDNs and frameworks do the same thing automatically by reading the browser’s Accept header.
Which format to pick
| Where the image goes | Use |
|---|---|
| Your own website | WebP alone, or AVIF and WebP with a JPG fallback |
| Email, documents, upload forms | JPG for photos, PNG for graphics |
| Sharing iPhone photos with others | JPG |
| Archiving originals | Keep the camera’s original file |
For how these formats compress, and why some are lossy and others aren’t, see lossy vs lossless compression.
Frequently asked questions
Is it safe to use WebP on a website?
Yes. Every current version of Chrome, Edge, Firefox and Safari shows WebP, and caniuse.com puts support at about 97% of users worldwide. Only very old browsers, such as Safari before version 14, miss out.
Should I use AVIF or WebP?
AVIF usually compresses photos further, and all major browsers show it, Edge since version 121. WebP is supported by more tools and apps, and is quicker to create. Many sites serve AVIF with a WebP or JPG fallback in a picture element and let the browser choose.
Does Chrome support JPEG XL?
Yes, again. Chrome removed its experimental JPEG XL code in 2022 and turned support on by default in Chrome 155 in October 2026, with a new decoder written in Rust. caniuse.com still lists Edge as not supporting it, so keep a fallback.
Why can’t I open a HEIC file in Chrome?
Among browsers, only Safari 17 and later can show HEIC images, according to caniuse.com. Chrome, Edge and Firefox can’t. Convert the photo to JPG to share it with anyone outside the Apple world.
Can TinyPixr save AVIF or JPEG XL?
Not yet. TinyPixr can open AVIF files in browsers that support them, and HEIC files in any browser, but it saves as JPG, PNG or WebP: those are the formats browsers can reliably create from a web page.