WebP vs AVIF vs JPEG: which is best for your website?

Smaller images make pages load faster, and the image format you choose makes a huge difference. JPEG has been the default for decades; WebP and AVIF are the modern alternatives. We ran the same images through all three to see what you actually gain.

Our test results

Four images, each saved with TinyPresso's default settings for every format:

ImageOriginal PNGJPEGWebPAVIF
Portrait photo2.3 MB345 KB116 KB161 KB
Landscape photo2.4 MB392 KB136 KB220 KB
Retina screenshot875 KB391 KB94 KB99 KB
Flat illustration2.1 MB147 KB28 KB28 KB

File sizes depend a lot on the quality setting each format uses, so treat these as one real-world data point rather than a universal ranking — and always look at the results before publishing.

The takeaway is clear, though: both WebP and AVIF are dramatically smaller than JPEG — often a third of the size or less.

Browser support

FormatWorks in
JPEGEverything, everywhere
WebPAll current major browsers (Safari since version 14)
AVIFAll current major browsers (Safari since version 16)

If you need to support very old browsers, serve a modern format with a JPEG fallback — the browser picks the first one it understands:

<picture>
  <source srcset="photo.avif" type="image/avif">
  <source srcset="photo.webp" type="image/webp">
  <img src="photo.jpg" alt="…" width="1400" height="1045">
</picture>

Which should you use?

How to convert your images

Drag your images into TinyPresso, pick WebP or AVIF as the output format, and press Compress — the whole batch is converted on your Mac, without uploading anything. For a few files, our free JPG to WebP and PNG to WebP converters work right in your browser. (Browsers can't create AVIF files, so for JPG to AVIF you'll need the app.)

Related guides

FAQ

Is AVIF better than WebP?

Both are far smaller than JPEG. Which is smaller depends on the image and the quality settings; in our tests with TinyPresso's defaults WebP was slightly smaller, while AVIF matched it on flat graphics. Compare both on your own images.

Do all browsers support WebP and AVIF?

All current major browsers support both. Safari added WebP in version 14 and AVIF in version 16. For very old browsers, use a picture element with a JPEG fallback.

Should I still use JPEG?

Use JPEG as a fallback for old browsers and for places that don't accept newer formats, such as some upload forms and email. On your own website, WebP or AVIF will usually be much smaller.

TinyPresso compresses and converts images right on your Mac — free to use, 100% offline.

Download for Mac