The short answer
An .avif file is a picture compressed with AV1, the royalty-free video codec developed by the Alliance for Open Media (whose members include Google, Mozilla, Microsoft, Apple and Netflix). Each image is stored the way a video stores a single key frame, inside the same HEIF container that iPhones use for HEIC.
AVIF supports transparency, animation, 10- and 12-bit color and HDR. Since 2024 all major browsers display it, which is why websites and image CDNs increasingly serve AVIF to visitors while keeping JPG as a fallback.
How much smaller, measured
The test photo is a roast chicken in foil, taken by the site's operator on a phone and scaled to 960×1280. AVIF files were written with sharp 0.35.5 (libvips 8.18.7, libaom 3.15.1) at speed setting 4. PSNR compares each result with the original pixels; higher is closer.
| AVIF quality | Size | PSNR |
|---|---|---|
| 30 | 39.7KB | 30.6 dB |
| 40 | 59.5KB | 32.3 dB |
| 50 | 92.5KB | 34.3 dB |
| 60 | 140.3KB | 36.3 dB |
| 70 | 196.6KB | 38.3 dB |
| 80 | 269.0KB | 40.2 dB |
| 90 | 410.9KB | 43.2 dB |
For comparison, JPG of the same photo: quality 80 was 226.0KB at 36.0 dB, and quality 90 was 342.7KB at 38.4 dB. AVIF 60 matched JPG 80's PSNR at 38% less size, and AVIF 70 came close to JPG 90 at 43% less. The quality numbers themselves don't line up between formats, so compare results, not settings: AVIF 80 is not "the same as" JPG 80.
The cost: encoding time
AV1 encoders search through many ways of predicting each block, and the speed setting (called effort in sharp, speed in other tools) controls how hard they look. Times below are the best of three runs on the same photo at quality 50, on the operator's Windows PC.
| Effort | Encode time | Size | PSNR |
|---|---|---|---|
| 0 (fastest) | 50 ms | 101.6KB | 33.7 dB |
| 2 | 72 ms | 96.2KB | 34.0 dB |
| 4 (default) | 270 ms | 92.5KB | 34.3 dB |
| 6 | 801 ms | 91.6KB | 34.5 dB |
| 9 (slowest) | 3,610 ms | 92.4KB | 34.7 dB |
Saving the same photo as JPG quality 90 took 22 ms. AVIF at the default effort was about 12 times slower, and the slowest setting took more than 3.5 seconds for one 1.2-megapixel image while saving almost nothing over effort 6. For a batch of large photos, a middle setting is the practical choice.
Color subsampling: watch red text
Like JPG, AVIF normally stores color (as opposed to brightness) at half the resolution in each direction, called 4:2:0. That's invisible in most photos but smears sharp edges between strong colors. AVIF can also keep full color resolution (4:4:4) for a small size increase.

On this 480×140 test image (red text on blue, quality 60), 4:2:0 gave 2.4KB at 29.1 dB and 4:4:4 gave 3.0KB at 45.0 dB. A 25% larger file removed almost all the visible error. For screenshots, charts and graphics with colored text, use 4:4:4 if your tool offers it, or a lossless format.
Where AVIF opens
Current Chrome, Edge, Firefox and Safari display AVIF, and so do Android and recent iOS. Older software is the gap: some image editors, office suites, older Windows versions without the AV1 extension, and many upload forms still don't accept it. That's why AVIF fits images on a website you control better than files you hand to other people.
Saving AVIF from inside a browser is a separate matter. Browsers can display AVIF but not all of them can encode it through the standard canvas API. This site's converter checks what your browser can do and only offers AVIF as an output when it actually works there. Conversion happens on your device; nothing is uploaded.
When to use AVIF and when to avoid it
Use it for photos and large images on your own website, served with a JPG or WebP fallback through the HTML picture element, or let an image CDN negotiate the format.
Avoid it for files you send to people, attach to documents or upload to services you don't control, and for workflows that must save thousands of images quickly. WebP is a good middle ground: somewhat larger than AVIF but much faster to encode and accepted in more places.
FAQ
How do I open an AVIF file on Windows?
Drag it into any current browser window. To open it in the Photos app, Windows needs the AV1 Video Extension from the Microsoft Store. Or convert it to JPG or PNG once.
Is AVIF better than WebP?
At equal quality AVIF is usually smaller. On the photo on the formats overview page, AVIF was about 36% smaller than JPG and WebP about 20% smaller. WebP encodes much faster and is supported by more software.
Why does my AVIF look blurry rather than blocky?
AV1 hides compression in smoothing filters instead of the 8×8 blocks JPG shows. At low quality settings fine texture such as hair, grass or fabric turns smooth. Raise the quality rather than the effort setting; effort mainly changes encode time.
Can AVIF be lossless?
Yes, but it isn't AVIF's strength. Lossless, the test photo was 1.65MB as AVIF, 1.95MB as PNG and 1.41MB as lossless WebP; the badge graphic was 47.7KB as AVIF and 35.1KB as PNG. For lossless images, lossless WebP or PNG is usually the better pick.
Related
- All image formats compared
- Reducing image size for the web
- WebP vs JPG
- How these measurements are made
- Image converter (AVIF in and out)
This page was last updated on 2026-11-30