Format · AVIF

The smallest files.
The slowest encode.

AVIF wraps AV1 intra frames in a container. It is the best size-per-pixel of the mainstream formats, and it charges for that in encode time and decode support.

AV1 intra · 10/12-bit · Alpha · HDR
Inside

Borrowing video compression for stills

AVIF is not a new still-image design. It is one frame of a video codec, which explains both its efficiency and its cost.

Reference

Why it is so small

AV1 was designed for streaming, where every bit matters. Its intra coding — the part that compresses a single frame without reference to previous ones — includes variable transform sizes, directional prediction from neighbouring blocks, and a range coder more efficient than JPEG's Huffman tables. Applied to a still image, those tools do exactly what they were built to do.

It also carries capability JPEG never had: 10-bit and 12-bit precision, wide-gamut and HDR signalling, alpha, and animation. A photograph delivered as an 8-bit JPEG has already lost information AVIF could have kept.

Where the cost appears

Those tools are expensive to search. An encoder must try many prediction and transform combinations per block, which is why AVIF encoding is measured in seconds per megapixel rather than milliseconds. Decoding is cheaper but still much heavier than JPEG, and older devices without hardware AV1 support fall back to software — noticeable on low-end phones.

The size advantage is real but not universal: fine text, flat UI and high-contrast line art often compress worse in AVIF than in lossless WebP, and visibly worse in quality terms at the same byte budget.

Measured

Against the alternatives

Directional ranges from the site benchmark work and the format design. Verify on your own folder before quoting them.

Compared withAVIF sizeWhat it costs
JPEG, equal visual quality40–50% smallerEncode time, decode support
WebP, equal visual quality20–30% smallerEncode time
PNG, flat graphics70–85% smallerNone at delivery — but avoid for text edges
Lossless WebP, UI with textMay be largerRinging around glyphs

Our own measured WebP figures are on benchmarks; AVIF numbers vary enough by encoder version that we do not publish a single figure.

Tradeoffs

Where AVIF is the wrong call

Four situations where the smallest file is not the best file.

Text-heavy UI Lossless WebP wins on both size and clarity for glyphs and thin strokes.
Hard offline constraints Old devices without AV1 hardware decode will struggle to display a gallery.
Files you hand to people Email attachments, office documents and print workflows rarely open AVIF.
Repeated re-encoding Slow encodes make AVIF a poor fit for a per-request pipeline.
Delivery

Serving AVIF without breaking anyone

The support tail is the whole problem, and it has a standard answer.

Use picture sources

Offer AVIF first and WebP or JPEG as fallback. The browser picks the first format it understands.

Decode at build time

Encode once during your build or upload step. Never encode AVIF in a request handler.

Keep the master

AVIF is a delivery artefact. The original stays untouched so you can re-derive everything later.

Compare

AVIF in context

AVIF is the end of the size ladder, not the start.

Image formats compared places it against JPEG, PNG and WebP. What is WebP is the format it most often competes with, and JPG to AVIF and PNG to AVIF are the conversion paths.

FAQ

AVIF — FAQ

Is AVIF better than WebP?

Smaller at equal quality, slower to encode, and less supported. Which one is "better" depends on whether you are optimising bytes or risk.

Why is my AVIF larger than the JPEG?

Usually content: fine text or flat UI. Lossy codecs tuned for photographs can lose to lossless WebP on graphics.

Does AVIF support transparency?

Yes, including a separate alpha plane, which is one of the reasons it beats PNG on cut-out graphics.

Can I open AVIF in Photoshop or Word?

Recent Photoshop versions can; most office suites and older editors cannot. Treat AVIF as a web delivery format.

Is AVIF lossless?

It supports a lossless mode, but in practice it is almost always used lossy. Lossless PNG or WebP is usually a better choice.

Does AVIF handle HDR?

Yes — 10-bit and 12-bit with HDR signalling, which JPEG cannot represent at all.

AVIF · AV1

Convert to AVIF once, offline

Batch the slow encode on your own machine, then ship the result with a fallback.

Windows 10/11 · Offline · Free