AVIF vs WebP vs JPG: which is better for a website, measured

For a website, serve AVIF first with a WebP or JPG fallback. We ran our reference photo, a screenshot of our pricing page and a piece of flat art through one engine and kept the bytes. AVIF made the smallest file on all three, 55% under the JPG on the photo, and WebP came second each time. Part of the image converter.

AVIF vs WebP vs JPG: which is better for a website, measured

By Updated 8 min readFormats

Share

Is AVIF better than WebP and JPG? The short answer

  • Photos: AVIF wins by a wide margin. Our 576.8 KB reference photo, one of our photographs, is 273.9 KB recompressed as JPG, 218.9 KB as WebP and 123.9 KB as AVIF: 55% under the JPG. Our camera photo, also a JPEG, came out 52% under the JPG as AVIF.
  • Screenshots and flat art: AVIF wins again. Our 1,121.1 KB screenshot of our pricing page is 72.3 KB as AVIF, 109.6 KB as WebP and 193.2 KB as JPG. The saving still depends on the picture.
  • WebP is never the smallest here, and it is still the safe default. Nearly every browser in use reads it, and it beat JPG on all three of our files.
  • For a website: serve AVIF with a WebP or JPG fallback. The image converter makes all three from one original. For a file you send to a person: JPG or PNG, which open everywhere.

AVIF vs WebP vs JPG file size, measured on 3 images

Three sources, one engine, the automatic quality on each output. The figures are the engine’s own, written into this page from its output on our reference files, so what you read is what our converter does with the same files.

AVIF vs WebP vs JPG vs PNG: three sources, every output format, automatic quality
SourceOriginalJPGWebPAVIFPNG
Reference photo (JPEG)576.8 KB273.9 KB218.9 KB123.9 KB994.3 KB
Screenshot (PNG)1,121.1 KB193.2 KB109.6 KB72.3 KB213.1 KB
Flat art (PNG)7.4 KB2.9 KB1.3 KB0.8 KB1.6 KB
AVIF vs WebP vs JPG vs PNG: three sources, every output format, automatic quality

On the screenshot, AVIF leads clearly: it is 63% smaller than JPG and 34% smaller than WebP. Flat art is the same story at a smaller scale: 0.8 KB against 2.9 KB for JPG. On our reference photo, AVIF is 55% under the JPG and 43% under the WebP.

More like this by mail: measured results and what shipped, a few times a month.

AVIF vs JPG on a photo: does the JPEG source matter?

Barely. Our reference photo arrived as a JPEG, so its AVIF is a second lossy save. On Auto it landed 55% under the recompressed JPG. We ran the same photo saved as PNG as well: 123.9 KB as AVIF against 273.9 KB as JPG, 55% under. The gap did not move, so the JPEG source did not shrink the saving.

Our camera photo shows a similar gap. It is a 9,804.3 KB JPEG, and at Auto it became 288.0 KB as AVIF against 605.5 KB as JPG, 52% under. The saving still depends on the picture, so measure your own before you pick: JPG to AVIF and PNG to AVIF show the bytes for each file.

AVIF vs WebP: what each does better

The two modern formats, side by side
AVIFWebP
Bytes on our reference photo123.9 KB218.9 KB
Bytes on our screenshot72.3 KB109.6 KB
TransparencyYesYes
AnimationYes, in current browsersYes, everywhere WebP is
Lossless modeYesYes
10-bit colour and HDRYesNo, 8-bit only
Largest image65,536 × 65,536 per coded picture, larger as grids16,383 pixels a side
Browsers, caniuse, 30 September 202695.35% of users96.74% of users
The two modern formats, side by side

One of those rows decides more projects than the bytes do. WebP cannot hold an image over 16,383 pixels on a side, so a panorama or a print file goes AVIF or JPG.

AVIF vs WebP browser support in 2026

  • JPG and PNG: everything, since the beginning.
  • WebP: every current browser. Safari joined last, in version 14 (2020).
  • AVIF: Chrome since 85 (2020); Firefox since 93 for still images and 113 for animation; Safari since 16 for still images and 16.4 (March 2023) for all of it; Edge since 121 (January 2024). What is left out is old software: iPhones that cannot update past iOS 15, old Android WebViews, and some mail clients and image viewers.

The percentages in the table are caniuse’s global figures, from its data of 30 September 2026: 95.35% of users for AVIF and 96.74% for WebP. They are close, and the gap is the long tail of old devices, which is why AVIF still wants a fallback and WebP mostly does not.

How to serve AVIF with a fallback

One element. The browser walks the sources from the top and takes the first type it can decode, so a 2020 phone gets the JPG and everything newer gets the AVIF, with no script and no server logic.

<picture>
  <source srcset="hero.avif" type="image/avif">
  <source srcset="hero.webp" type="image/webp">
  <img src="hero.jpg" alt="A hillside at dusk" width="1200" height="800">
</picture>
The order matters: smallest first, the universal format last. Width and height on the img stop the layout jumping.

On WordPress and most site builders the same thing happens through an image plugin or the host’s CDN, which stores the three files and writes this element for you. Convert the originals once, in bulk, with the AVIF converter, and let the site pick.

Should you use AVIF or WebP on a website?

The format by what the image is and where it goes
ImageFor a web pageTo send to a person
A photo, from the camera or already a JPEGAVIF, JPG as the fallbackJPG
A screenshotAVIF, WebP as the fallbackPNG
A logo or flat artAVIF or WebP; SVG if you have itPNG
Anything with transparencyAVIF or WebPPNG
An animationWebPGIF, or a video file
A panorama over 16,000 pixelsAVIF or JPGJPG
The format by what the image is and where it goes

Read the full guide: Best image format: JPG, PNG, WebP, AVIF, HEIC and GIF explained.

Questions

Is AVIF better than WebP?
On bytes, yes on all three of our files: our reference photo was 123.9 KB as AVIF against 218.9 KB as WebP, 43% smaller. WebP opens in slightly more browsers, which is why AVIF first and WebP as the fallback is the usual pairing.
Is AVIF better than JPEG?
Smaller, yes, by an amount that depends on the picture. Our camera photo, a JPEG, came out 52% smaller as AVIF than as JPG at Auto, and our reference photo 55%. From the same photo saved as PNG the gap was 55%, so the image sets the saving, not the source format.
Is WebP better than JPEG?
Smaller, on every file we measured. On our reference photo, WebP was 218.9 KB against 273.9 KB for JPG. On our screenshot it was 109.6 KB against 193.2 KB, and on flat art 1.3 KB against 2.9 KB. The saving depends on the image, and JPG still opens in more places, mail clients included.
Should I use AVIF or WebP?
Use both on a website: AVIF first in a picture element, WebP or JPG as the fallback, so each browser takes the smallest file it can read. For a file you send to a person, use JPG or PNG, which open everywhere, mail clients and old viewers included.
Is AVIF supported by all browsers?
Every current browser renders AVIF: Chrome since 85, Firefox since 93, Edge since 121 and Safari fully since 16.4. In caniuse’s data of 30 September 2026, 95.35% of users worldwide can see it. What cannot is old software: phones stuck on iOS 15, old Android WebViews, some mail clients. Serve a WebP or JPG fallback on a page.
Does Safari support AVIF?
Yes. Safari shows still AVIF images from version 16 and full AVIF, animation included, from 16.4, released in March 2023, on the Mac and on iPhone and iPad. iPhones that cannot update past iOS 15 cannot show it, which is the main reason a page keeps a WebP or JPG fallback.
Is WebP still worth using now that AVIF exists?
Yes, as the fallback and often as the only format. WebP opens for 96.74% of users in caniuse’s data of 30 September 2026, and holds animation everywhere. Its ceiling is 16,383 pixels a side. For most sites AVIF first and WebP second is the whole strategy.
Which is better for images with transparency, AVIF or WebP?
Both keep an alpha channel. Our soft-edged logo was 9.4 KB as WebP and 7.0 KB as AVIF: under its 18.1 KB lossless PNG, over the 4.2 KB PNG at Auto, which cut the edge to 7 alpha levels. On a 512 × 512 hard-edged logo, WebP won, 1.4 KB against 2.9 KB. Measure your own.
  • Tags
  • AVIF
  • WebP
  • JPG
  • Web performance
  • Browser support
Share

More to read