AVIF (AV1 Image File Format) stores images compressed with the AV1 video codec and supports transparency, HDR and animation. According to Can I use, about 96% of browsers in use worldwide display AVIF (data as of September 2026). With a JPG fallback, the format is ready for the web.
What is AVIF?
AVIF is specified by the Alliance for Open Media (AOMedia), which also developed the AV1 video codec. AOMedia was founded in 2015; according to its press release, the founding members were Amazon, Cisco, Google, Intel, Microsoft, Mozilla and Netflix. Today Apple, among others, sits on the Steering Committee (member list). According to MDN, AV1 is fully royalty-free.
Technically, AVIF stores AV1-coded images in a HEIF container – the same container format HEIC uses, just with a different codec. More in What is HEIC?
What can AVIF do?
According to the AVIF specification (version 1.2.0), the format supports, among other things:
- transparency via an alpha channel plus other auxiliary images such as depth maps,
- high bit depth and HDR: 8, 10 or 12 bits per channel and wide colour gamuts,
- animation as an image sequence (AV1 Image Sequence).
This lets AVIF take over jobs that used to require PNG (transparency) or GIF (animation).
How much smaller is AVIF?
There is no single figure. Google engineers write on web.dev that AVIF offers significant compression gains over JPEG and WebP; in their own and others’ tests they saw savings of more than 50% versus JPEG. The exact savings, they add, depend on content, encoder settings and quality target. For comparison: for lossy WebP, Google states 25–34% versus JPEG (see WebP vs JPG vs AVIF). Only a test with your own images shows how much you save.
Browser support
According to Can I use (data as of September 2026), AVIF is supported by:
- Chrome from version 85
- Edge from version 121
- Firefox from version 93
- Safari on macOS from 16.4 (partially in 16.1 to 16.3), on iOS from 16.0
- Samsung Internet from version 14
On Android, the system can decode AVIF from version 12 according to the Android documentation. For all other visitors, the <picture> element with a JPG fallback does the job:
<picture>
<source srcset="image.avif" type="image/avif">
<img src="image.jpg" alt="Description" width="800" height="600">
</picture>
Browsers that understand AVIF load the AVIF file; all others skip that source and show the JPG.
Creating AVIF
Common AV1 encoders are libaom (AOMedia’s reference encoder), SVT-AV1 and rav1e. Encoding is more compute-intensive than for JPG; according to web.dev, multithreading (the --jobs option of the avifenc command-line tool) speeds up encoding with 8 threads by roughly five times.
In a Node.js build process, the sharp package creates AVIF in one line; its default quality value is 50:
sharp('image.jpg').avif({ quality: 50 }).toFile('image.avif')
Since version 6.5, WordPress lets you upload and use AVIF images just like JPEG or PNG, provided the web server’s image library supports AVIF (WordPress Core).
AVIF and HEIC compared
| Property | AVIF | HEIC |
|---|---|---|
| Codec | AV1, royalty-free | HEVC, requires licences |
| Container | HEIF | HEIF |
| Browser support worldwide | about 96% | about 17% (Safari 17 and later only) |
| Transparency | yes | yes (alpha plane as auxiliary image) |
| Image sequences / animation | yes | provided for in the container |
For the web, AVIF is the better choice. HEIC remains relevant mainly as the capture format in the Apple ecosystem.
Convert AVIF to JPG or PNG
Not every program can open AVIF. If you need an image for software or a platform without AVIF support, you can convert AVIF to JPG or, for lossless copies with transparency, convert AVIF to PNG. Both converters run in your browser; the file stays on your device.
Practical recommendations
- New projects: AVIF as the first source in the
<picture>element, WebP and JPG as fallbacks. - Existing projects: start with the largest images, such as hero and product images.
- Quality: start with your encoder’s defaults (50 in sharp) and compare on typical images.
- Encoding time: create AVIF in the build step rather than on every request.
Conclusion
AVIF is a royalty-free, capable image format with transparency, HDR and animation that about 96% of browsers in use can display. The savings over JPEG can be large but depend on the image and settings. With the <picture> element and a JPG fallback, you can use AVIF today without risk.