Image glossary
AVIF
Also known as AV1 Image File Format, .avif
AVIF is an image format derived from the AV1 video codec that compresses roughly 40-55% smaller than JPEG at matched visual quality, at the cost of much slower encoding.
What it is
AVIF stores still images using the intra-frame coding of AV1, a royalty-free video codec. Video codecs have had far more engineering attention than still-image codecs over the last decade, and AVIF inherits all of it: better prediction, larger and more flexible block partitioning, and better handling of smooth areas than a format designed in 1992.
It supports lossy and lossless modes, an alpha channel, high bit depths and wide colour gamuts. Every current major browser decodes it.
What it is genuinely better at
Gradients and flat colour, by a wide margin. A sky that bands visibly as an 80-quality JPEG can be clean as an AVIF at half the file size. This is the single most visible difference in ordinary use, because banding is the artefact people notice without knowing what it is called.
It also holds together at bitrates where JPEG has fallen apart, which makes it the right choice when a large image must be small — a full-width hero, a background photograph, anything where the file is measured in hundreds of kilobytes rather than tens.
What it costs
Encode time. Depending on the effort setting, AVIF encoding can take ten to fifty times longer than JPEG for the same image. On one hero image that is irrelevant; on two hundred product photos it is the difference between a coffee and an afternoon. This single fact decides most real choices between AVIF and WebP.
Small images barely benefit. AVIF carries more container overhead than JPEG, so below roughly 10 KB — icons, tiny thumbnails, avatars — the fixed costs eat the compression advantage and a WebP or even a PNG can come out smaller. AVIF's advantage grows with image size.
Support is good in browsers and patchy everywhere else. Older installed browser versions, some in-app browsers and most non-browser software do not decode it. If your delivery path can serve a fallback this is a non-issue; if it cannot, it is a hard blocker.
When to reach for it
One or a few large, prominent images where the encode cost is paid once and the bandwidth saving is paid on every view. For batches, for small images, and for anything that has to open outside a browser, WebP or JPEG remains the better answer.
Tools that work with this
Related terms
- WebPWebP is an image format developed by Google that supports both lossy and lossless compression with transparency, and produces files roughly 25-35% smaller than JPEG at matched visual quality.
- JPEGJPEG is a lossy raster image format from 1992 that remains the most universally readable image format in existence, with no support for transparency.
- BandingBanding is the appearance of visible steps in what should be a smooth gradient, caused by too few distinct values being available to represent a gradual change.
- Lossy compressionLossy compression permanently discards image information judged imperceptible in order to make files dramatically smaller, and the discarded data cannot be recovered.
- Bit depthBit depth is the number of bits used to store each colour channel of a pixel, determining how many distinct levels are available per channel.
Back to the full glossary.