Formats · July 2026 · 7 min read

Why AVIF Beats JPEG and WebP

AVIF stores the same photo as a JPEG at roughly half the bits, and adds HDR, wide color, and transparency. Unlike the format that pioneered the idea, anyone can use it without paying a patent pool. Here's what makes it better, and where it still loses.

A video codec in a photo's clothing

AVIF is the AV1 Image File Format: a still image encoded as a single AV1 intra frame, wrapped in a HEIF-derived ISO-BMFF container, the same container family as HEIC and MP4. The recipe is familiar because Apple's HEIC works exactly the same way with the HEVC codec, and HEIC proved the idea works. Modern video compression, applied to a single frame, beats a 1992-era still format comfortably. What HEIC could not do was ship on the open web, because HEVC's competing patent pools made browser vendors walk away.

AVIF is the industry's answer to that failure. The Alliance for Open Media (founded by Google, Netflix, Mozilla, Amazon, Cisco, Microsoft, Intel and others, with Apple joining in 2018) built AV1 and AVIF to be royalty-free by design; the entire point of the alliance is a codec nobody has to license. So AVIF carries the same compression idea as HEIC without the legal problem that kept HEIC out of browsers.

Where the savings come from

JPEG compresses every 8x8 block of an image independently, from scratch. AV1 brings three decades of newer ideas to the same job.

In practice this adds up to files around 50% smaller than JPEG at equivalent visual quality, and roughly 20–30% smaller than WebP. AVIF is especially strong at low bitrates, the region where JPEG falls apart into visible blocking and WebP smears fine detail into mush; an AVIF at the same rate still looks like a photograph.

The features, side by side

Beyond raw efficiency, AVIF carries capabilities the older formats structurally lack: 10-bit and 12-bit color depth, HDR via the PQ and HLG transfer functions, wide color gamut, full alpha transparency, and animation. JPEG has none of these; WebP has some.

JPEG WebP AVIF
Typical size vs JPEG baseline ~25–30% smaller ~50% smaller
Color depth 8-bit 8-bit 8/10/12-bit
HDR (PQ/HLG) No No Yes
Transparency No Yes Yes
Animation No Yes Yes
Progressive rendering Yes No No
Encode speed Fast Fast Slow
Royalty-free Yes Yes Yes
Browser support Universal Universal All current browsers
Try it AVIF Converter Convert any image to AVIF in your browser. Nothing is uploaded.

Can browsers actually open it?

Yes. This stopped being a real question a while ago. Chrome has supported AVIF since 2020, Firefox since 2021, and Safari since version 16 in 2022 (full support in 16.4). In current browsers, support is effectively universal. That is the crucial difference from HEIC, which after nearly a decade still opens in no major browser at all.

Where AVIF loses

No format wins everything, and AVIF has real trade-offs.

What to actually use

The decision is simpler than the comparison table suggests. Use AVIF for web images where you control the pipeline, and serve it with a <picture> fallback where you need one, though in 2026 fallbacks are increasingly optional. Keep JPEG for interchange with unknown recipients: anything you email, attach, or upload to a system you don't control. WebP remains a reasonable middle ground when encode speed matters more than the last 20–30% of savings.

If you want the full mechanics, how the containers are structured and what the codecs actually do to your pixels, the story continues in HEIC and AVIF under the hood.

Frequently asked questions
01

Should I convert all my photos to AVIF?

For images you publish on the web, yes, provided your pipeline supports it; the size saving is essentially free. For archives and files you share with unknown recipients, keep the originals. JPEG opens everywhere, and re-encoding a lossy file always costs a little quality.

02

Is AVIF lossless?

It has a lossless mode, but in practice AVIF is used lossy, which is where its compression advantage lives. For lossless work, PNG or WebP lossless are more common choices.

03

Why do AVIF files sometimes load "all at once"?

AVIF has no progressive rendering. A JPEG can show a blurry preview while it downloads and sharpen as more data arrives; an AVIF shows nothing until it is fully decoded, then appears complete. The files are usually small enough that this rarely matters.

04

Is AVIF really free to use?

Yes. AV1 and AVIF are royalty-free by design. The Alliance for Open Media was formed specifically to build codecs that carry no per-unit licensing fees, and that has been its purpose from the start.

Keep reading Why Apple Uses HEIC Instead of JPG the format that proved the idea HEIC and AVIF Under the Hood the technical deep dive AVIF Converter convert images in your browser