The short answer
An AVIF file is an image compressed with the AV1 video codec inside a HEIF container. It typically produces files much smaller than JPEG at similar quality, supports transparency, HDR and animation, and is displayed by all current major browsers. Older apps may not open it, so converting to PNG or JPG is common.
AVIF compared with JPEG and WebP
| AVIF | WebP | JPEG | |
|---|---|---|---|
| Compression | AV1 intra-frame | VP8 / lossless | DCT |
| Transparency | Yes | Yes | No |
| HDR / wide gamut | Yes | No | No |
| Animation | Yes | Yes | No |
| Browser support | Chrome 85+, Firefox 93+, Safari 16+ | All current | Universal |
Why you keep getting AVIF files
Websites and CDNs serve AVIF to browsers that support it to save bandwidth. When you save an image from such a page, you get the .avif the server sent, not the original JPEG or PNG.
How to open an AVIF file
- Drag it into Chrome, Edge, Firefox or Safari.
- Windows 11 Photos opens AVIF with the free AV1 extension.
- macOS Ventura and later preview AVIF in Finder and Preview.
- For apps that refuse it: convert to PNG or JPG.
Sources
Written by Shahab Uddin. Published ; updated . Corrections are welcome through the contact page.