Free auditStart free
GlossaryGlossary · Performance

AVIF

AVIF is a royalty-free image format built on AV1. MDN says lossy AVIF is around 50% smaller than JPEG. Browser support, fallbacks and when to pick it over WebP.

3 min
read
2
sources
Oct 24, 2026
updated
Scaplet Editorial Team
author
In one line

AVIF (AV1 Image File Format) is an open, royalty-free image format that encodes AV1 data in a HEIF container. MDN says lossy AVIF images are around 50% smaller than JPEG at visually similar compression levels. It supports lossless compression, transparency, animation and HDR, but it is less widely supported than WebP, so serve it with a fallback.

30-second check

Is this costing your site traffic?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode
02Checklist

Compression advantages over other formats

MDN says lossy AVIF images are "around 50% smaller than JPEG images" at visually similar compression levels. It also says AVIF generally has better compression than WebP, citing a third-party comparison with a median of 50% versus 30% for the same set of JPEGs. That comparison isn't Google's or MDN's own test, so measure your images before committing.
First2
Lossy AVIF: around 50% smaller than JPEG per MDN
Generally better compression than WebP per MDN's cited comparison
Next2
Color spaces YUV444, YUV422, YUV420 and greyscale YUV400
Alpha channel (transparency) support
Then1
Animation with much better compression than animated GIF
03Check it

Browser support and fallback strategy

MDN lists AVIF support as Chrome 85, Edge 121, Opera 71, Firefox 93 and Safari 16.1. Firefox 93 handles still images; animated AVIF arrives in Firefox 113 and later. MDN describes AVIF as "not quite as well-supported in browsers" as WebP, so it recommends a fallback in WebP, JPEG or PNG.

MDN says AVIF does not support progressive rendering, so a file must be fully downloaded before it displays. This often has little impact because AVIF files are much smaller than equivalent JPEG or PNG files, but for larger files MDN says the impact can become significant and you should consider a format that supports progressive rendering.

A browser takes the first <source> whose type it supports. Browsers that decode AVIF load it, browsers that only decode WebP load that, and everything else loads the JPEG in <img>.

Progressive fallback pattern for AVIF
<picture>
  <source srcset="image.avif" type="image/avif" />
  <source srcset="image.webp" type="image/webp" />
  <img src="image.jpg" alt="Description" />
</picture>
04Your call

When to use AVIF versus WebP

If this fits

Use AVIF if

  • File size is the priority and you can run the conversion in your build or image CDN
  • You need HDR or wide color gamut
  • Your audience mostly uses current Chrome, Edge, Firefox or Safari
  • You are already using <picture> fallbacks
Or

Use WebP if

  • You want the simplest setup with wider browser support
  • You have many visitors on older browsers
  • Google's figures (25-34% smaller than JPEG) are enough for your goals
  • Your tooling already outputs WebP and not AVIF
05Checklist

Common mistakes and considerations

  1. 01Serving AVIF with no fallback. MDN recommends WebP, JPEG or PNG fallbacks using <picture>.
  2. 02Assuming the 50% figure applies to every image. It is MDN's general figure for lossy AVIF versus JPEG, so test your own files.
  3. 03Using AVIF for very large images without checking load behavior. The lack of progressive rendering matters most for big files.
Questions

Asked a lot.

3 questions people ask next, answered from the sources on this page.

01Is AVIF better than WebP?

MDN says AVIF generally has better compression than WebP and adds HDR and wide color gamut. WebP has wider browser support. A common setup is AVIF first, then WebP, then JPEG in a <picture> element.

02Which browsers support AVIF?

Per MDN: Chrome 85, Edge 121, Opera 71, Firefox 93 and Safari 16.1. Firefox supports animated AVIF from version 113. Older versions need a fallback.

03Can I use AVIF on my site today?

Yes, with a fallback. List the AVIF source first inside <picture>, then WebP, then a JPEG or PNG <img>. Browsers that can't decode AVIF move on to the next source.

Sources · 2

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • mozilla.org
  • google.com
  1. 01Image file type and format guide (MDN)developer.mozilla.org · checked 2026-10-24
  2. 02WebP: a new image format for the webdevelopers.google.com · checked 2026-10-24
Free · 2 minutes

Know the term. Now check your site.

The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • +212% organic clicks in 90 days Ledgerly