AVIF vs WebP: Which Next-Gen Image Format Should You Use?

WebP has been the safe "modern" image format for years. Now AVIF is everywhere too: in CMS settings, in image CDNs, in export menus. Both promise smaller files than JPEG. So which one should you actually use?

Rather than repeat the usual claims, we encoded the same images in both formats and measured the results. Below are the numbers, what the browser-support data says today, and a simple way to decide.

WebP has been the safe "modern" image format for years. Now AVIF is everywhere too: in CMS settings, in image CDNs, in export menus. Both promise smaller files than JPEG. So which one should you actually use?

Rather than repeat the usual claims, we encoded the same images in both formats and measured the results. Below are the numbers, what the browser-support data says today, and a simple way to decide.

The short answer

The details follow.

What each format is

WebP is the older of the two. MDN's format guide describes it as offering "much better compression than PNG or JPEG with support for higher color depths, animated frames, transparency etc." It has both a lossy and a lossless mode.

AVIF is newer. MDN lists its features: lossy and lossless compression, "Alpha channel support (i.e., for transparency)," animation, and "High Dynamic Range (HDR)" with 8, 10 or 12 bits per channel. MDN also says: "Generally, AVIF has better compression than WebP — median 50% vs. 30% compression for the same JPG set."

One practical difference MDN points out: "AVIF does not support progressive rendering, so files must be fully downloaded before they can be displayed."

Our test: same images, both formats

We wanted to compare file sizes at similar quality, not just at the same quality slider number, because "quality 75" means different things in different encoders.

What we used (tested 30 October 2026):

This is one photo and one graphic, not a benchmark. Your results will vary with your images and settings.

Photo results

FileSizeSSIM vs original
Original PNG (lossless reference)1,911 KB1.000
JPEG, quality 85179 KB0.927
WebP, quality 7574 KB0.907
WebP, quality 85115 KB0.926
AVIF, quality 5053 KB0.920
AVIF, quality 6076 KB0.931
AVIF, quality 70107 KB0.941

Compare files at about the same SSIM:

For this photo, AVIF matched the JPEG's quality at well under half the size, and was about 34% smaller than WebP at a similar (slightly higher) SSIM.

Notice also that WebP q75 and AVIF q60 are almost the same size (74 KB and 76 KB), but the AVIF scores noticeably higher. That's the "same slider number means different things" problem in action.

Bar chart showing a test photo at similar quality as JPEG 179 KB, WebP 115 KB and AVIF 76 KB, plus lossless graphic sizes

Graphic results

FileSizeSSIM vs original
Original PNG29 KB1.000
WebP, lossless8 KB1.000
AVIF, lossless43 KB1.000
WebP, quality 7513 KB0.995
AVIF, quality 608 KB1.000 (0.99995)

Two things stand out:

Encoding speed

At these settings both encoders finished each 1600-pixel image in well under a second on our machine, so speed wasn't a deciding factor for single images. AVIF encoding can get much slower at its slowest, highest-effort settings, and that matters more when you're converting thousands of images.

Table of first browser versions supporting AVIF and WebP in Chrome, Edge, Firefox and Safari

Browser support

Here's what caniuse showed when we checked on 30 October 2026 (usage data from September 2026):

AVIFWebP
Chrome85+32+
Edge121+18+
Firefox93+65+
Safari (macOS)partial 16.1–16.3, full from 16.4partial 14–15.6, full from 16.0
Safari (iOS)16.0+14+
Global usage with support96.35%97.18%

MDN's guide gives slightly different starting points for AVIF: "Chrome 85, Edge 121, Opera 71, Firefox 93, and Safari 16.1." The difference is mainly in how partial Safari support is counted.

Either way, a small share of visitors still use browsers without support for one or both formats. That's why the standard advice is to include a fallback.

How to serve AVIF with a fallback

MDN recommends that when you use a newer format, "you should provide a fallback in WebP, JPEG or PNG format using the <picture> element (or some other approach)." A typical pattern looks like this:

<picture>
  <source srcset="photo.avif" type="image/avif">
  <source srcset="photo.webp" type="image/webp">
  <img src="photo.jpg" alt="Describe the image here" width="1600" height="945">
</picture>

The browser picks the first format it supports. Browsers with AVIF support get the smallest file; older ones get WebP or JPEG.

Which should you use?

Use AVIF when:

Use WebP when:

Use both when you control the HTML: AVIF first, WebP as the fallback, JPEG or PNG last.

Converting your images

Our image converter turns PNG, JPEG, BMP, TIFF and GIF files into WebP (as well as PNG, JPEG and BMP). It doesn't create AVIF files. For AVIF you'll need a tool that supports it, such as an image CDN or a command-line encoder like the avifenc we used for this test.

Whatever format you choose, size the image correctly before you compress it. Then run it through our image compressor if it's still heavy. For a broader look at PNG, JPEG and WebP, see our image formats guide.

FAQ

Is AVIF better than WebP?

For photos, usually yes on file size: in our test AVIF was about 34% smaller than WebP at similar quality. For lossless graphics, WebP was much smaller. MDN says AVIF generally compresses better than WebP.

Do all browsers support AVIF?

Most current ones do. caniuse lists support in Chrome 85+, Edge 121+, Firefox 93+ and Safari 16.4+ (partial from 16.1), covering about 96% of global usage when we checked. Use a fallback for the rest.

Should I convert all my images to AVIF?

Not automatically. Convert photos where size matters, keep a WebP or JPEG fallback, and use lossless WebP or PNG for screenshots and graphics that need exact pixels.

Does AVIF support transparency?

Yes. MDN lists alpha channel support for AVIF, and WebP supports transparency too.

Can forgepx convert to AVIF?

Not at the moment. Our converter outputs WebP, PNG, JPEG and BMP.

Sources

SourceURLChecked
MDN, Image file type and format guidehttps://developer.mozilla.org/en-US/docs/Web/Media/Guides/Formats/Image_types20261030
caniuse, AVIF image formathttps://caniuse.com/avif20261030
caniuse, WebP image formathttps://caniuse.com/webp20261030
Test data: our own encodes (cwebp 1.6.0, avifenc 1.4.2 / aom 3.15.0, FFmpeg 8.1.2 SSIM)—20261030