AVIF
AVIF stores AV1 intra-frame images inside an ISO BMFF container. It is the newest mainstream image format: better compression than JPEG and WebP, HDR support and a wide colour gamut, at the cost of slower encoding.
At a glance
- MIME type
- image/avif
- Extensions
- .avif
- Kind
- Image
- Compression
- Lossy
- Type
- Container (holds encoded streams)
- Transparency
- Supported
- Bit depth
- 8, 10 or 12-bit per channel
File structure
AVIF is a HEIF-family container. It reuses ISO BMFF boxes (ftyp, meta, mdat) and stores the AV1 payload in mdat, with alpha as a second AV1 item rather than a separate channel.
How the data is compressed
AV1 uses larger transform blocks, better intra prediction and a modern entropy coder. The result is roughly 40–50% smaller than JPEG at the same quality in published comparisons, but encoding is heavy: a single 4K frame can take seconds on a laptop CPU.
Where it is accepted
Chrome, Firefox and Safari 16+ decode AVIF. Windows Explorer, older Android builds and most office software do not. Encoding support in browsers is much narrower than decoding support.
Strengths
- Smallest files of the mainstream still-image formats.
- Supports HDR, wide gamut and transparency.
- Royalty-free codec with broad browser decoding.
Weaknesses
- Slow encoding, which is why browser-side export is unreliable.
- Weak support in desktop software and print pipelines.
- Some tools open AVIF but mishandle the alpha item.
Typical uses
- Modern web delivery where you control the build pipeline.
- HDR photography for the web.
- Bandwidth-constrained image galleries.
Common problems
- Exporting AVIF from a browser depends on the encoder the browser ships; if it is missing, the tool must fail loudly rather than write a broken file.
- Converting AVIF to JPEG loses HDR and 10-bit precision.
- Serving AVIF without a JPEG fallback breaks older Safari and many Android WebViews.