AV1 Image File Format
image/avif
Released 2019
· by Alliance for Open Media (AOMedia)
AVIF is a next-generation image format based on the AV1 video codec, delivering exceptional compression efficiency and support for HDR, wide color gamut, and animation — significantly outperforming both JPEG and WebP in quality-to-size ratio.
Technical Specifications
.avif
AV1
Magic Bytes & HTTP Headers
....ftypavif
Browser Support Matrix
| Browser | Status | Min Version |
|---|---|---|
|
|
Supported | 85+ |
|
|
Supported | 93+ |
|
|
Supported | 16+ |
|
|
Supported | 121+ |
|
|
Not Supported | Legacy |
Advantages & Limitations
- Best-in-class compression — typically 20–50% smaller than WebP at equivalent quality
- Native HDR and wide color gamut (BT.2020) support
- Supports 8, 10, and 12-bit color depth
- Encoding is highly CPU-intensive — significantly slower than JPEG or WebP
- Requires Edge 121+ (not supported in earlier Edge versions)
- Limited support in native desktop image viewers
Developer Code Snippets
File Detection Steps
How to programmatically detect a image/avif
file by reading its raw bytes:
- 1 Check for ISOBMFF 'ftyp' box at offset 4
- 2 Verify 'avif' or 'avis' brand string at offset 8
Software Support
ImageMagick 7.0.25+
Conversion Tools
Share & Embed
[](https://freewebptojpg.com/mime/image/avif)
<iframe src="https://freewebptojpg.com/mime/image/avif/embed" width="100%" height="280" style="border:1px solid #cbd5e1;border-radius:8px;" title="AVIF Specs"></iframe>
JSON API
All data on this page is available as a free, open JSON API. Use it in your project, documentation, or tooling.
GET https://freewebptojpg.com/mime/image/avif.json
Open JSON
Frequently Asked Questions
What is the magic byte for AVIF?
AVIF uses the ISOBMFF container. The signature starts with a variable-length box size, followed by 66 74 79 70 61 76 69 66 (ftypavif). Full hex: XX XX XX XX 66 74 79 70 61 76 69 66.
Is AVIF better than WebP?
AVIF generally provides 20–50% better compression than WebP at equivalent visual quality, especially at lower bitrates. However, AVIF encoding is significantly slower and browser support, while growing, is slightly behind WebP.
Does AVIF support HDR?
Yes, AVIF natively supports HDR (High Dynamic Range) and wide color gamuts including BT.2020, making it ideal for modern photography and display-quality images.