What is an AVIF file?
AVIF is a newer image format that often beats WebP on file size. It is excellent for delivery, but it is slower to encode and not yet universal.
- Often smaller than WebP at the same quality
- Supports transparency and HDR
- Slow to encode compared with JPG
Decoding works in current Chrome, Edge and Firefox. Some tools still cannot open AVIF, so keep a JPG or PNG copy when sharing.
The new compression trade
AVIF is based on the AV1 video codec. It exploits patterns across neighbouring pixels very effectively, so a photo can be significantly smaller than an equivalent WebP or JPG. It also supports alpha channels and high dynamic range.
The cost is time and support. Encoding an AVIF takes noticeably longer than writing a JPG, and some older browsers and desktop applications cannot display it yet. It is a delivery format: keep an editable master and generate AVIF when you publish.
AVIF is built on the AV1 video codec, wrapped in an image container standardised as ISO 23000-22. Because it can look at patterns across a whole frame rather than one small block at a time, it often produces a noticeably smaller file than WebP at the same perceived quality. It also supports alpha transparency, high dynamic range and animation, which puts most of the features people want from a modern image format into one file.
Colour depth is where AVIF separates from older formats. An AVIF can carry ten- or twelve-bit colour and HDR metadata, which matters on phones and screens that can display a wider brightness range. A standard eight-bit JPG simply cannot describe those highlights. Most web workflows do not need the extra range yet, but it explains why AVIF was designed as a delivery format for high-quality screens rather than as a replacement for a working file in an editor.
The cost is encoding time. AV1 compression makes many decisions across neighbouring pixels, so writing an AVIF can take several times longer than writing a JPG of the same image. On a phone or a busy server that delay is real. Decoding is cheaper and hardware support is spreading, but older devices and some desktop applications still cannot display AVIF at all. A sensible rollout serves AVIF to browsers that request it and keeps a WebP or JPG fallback for the rest.
AV1 was developed with a patent-friendly licensing model, which is one reason the format has been adopted quickly by browser vendors despite HEVC’s head start. Support arrived in Chrome and Firefox first, then in Safari and Edge. That timeline is worth remembering when a file will not open: the file is usually fine, and the receiving application simply predates support. Converting to JPG or PNG is the reliable workaround.
AVIF is a final-step format. Because encoding is slow and lossy modes discard information, it is a poor choice for an image you intend to edit repeatedly. Keep a lossless master in PNG or TIFF, generate AVIF when publishing, and generate a JPG or WebP copy at the same time for compatibility. If someone else cannot open the file, converting that AVIF to a universally readable format takes one step and loses nothing beyond what the AVIF already decided.
AVIF at a glance
| Extension | .avif |
|---|---|
| Standard | ISO/IEC 23000-22, AVIF 1.0 published 2019 |
| Underlying codec | AV1 |
| Colour depth | 8, 10 or 12 bits per channel |
| HDR | Supported |
| Transparency | Yes, alpha channel |
| Animation | Yes, image sequences |
| Typical saving | Often smaller than WebP at comparable quality |
Where it works
Support changes between releases. The practical answer is always to convert when a tool refuses the file.
| Chrome and Edge | Display in current versions |
|---|---|
| Firefox | Display in current versions |
| Safari | Display in recent versions |
| Windows Photos | Varies by release and codec pack |
| Older Android devices | May require conversion to JPG |
| Photo editors | Support is growing but not universal |
When to use AVIF
- 01
Image-heavy pages
AVIF’s small files help most where many large images are downloaded.
- 02
Keep a fallback
Serve WebP or JPG to browsers that do not decode AVIF.
- 03
Convert when sharing
Use AVIF to JPG when someone else cannot open the file.
Common questions
Is AVIF better than WebP?+
Usually smaller at similar quality, but slower to create and less widely supported.
Does AVIF support transparency?+
Yes, with an alpha channel like PNG and WebP.
Why will my AVIF not open?+
The app or browser may not support AVIF. Convert it to JPG or PNG first.
Should I use AVIF for editing?+
No. Use PNG as a working format and AVIF only for the final delivered image.
What is an AVIF file used for?+
Delivering photos on web pages that need very small image files. It is based on the AV1 video codec and supports transparency and HDR, but it is slow to encode.