Skip to content
PictureHearth

JPEG, WebP or AVIF? We measured 10 photos

Every image tool offers the same three formats for photos, and every article says a newer one is smaller. We wanted numbers, so we saved the same 10 photos in each format with the encoders that run on this site and compared size, closeness to the original and speed.

Published November 18, 2026

The short answer

  • To send a photo to someone or upload it to a form, use JPEG. Every device and program opens it.
  • For images on your own website, AVIF gave the smallest files: at the same closeness to the original as JPEG at quality 75, it was 40% smaller in the middle of our test.
  • WebP was only a little smaller than a good JPEG at the same closeness. Its advantage is wide support together with transparency, not a much smaller photo.
  • The quality number does not mean the same thing in different formats. Quality 75 in WebP is not quality 75 in JPEG.

How we tested

We used 10 photos released into the public domain (CC0) on Wikimedia Commons: landscapes, harbors, a city skyline, a lighthouse and two dogs. Each was scaled to 4032 pixels on the long side, the width of a typical 12-megapixel phone photo; they have 9 to 11 megapixels. The middle file was 2.8 MB.

Each photo was saved as JPEG (MozJPEG), WebP (libwebp) and AVIF (libavif) with the same WebAssembly encoders and settings that the “Convert images” tool uses, at several quality settings.

To compare how close each result stays to the original, we decoded it again and computed SSIM, a common measure of structural similarity, on the brightness of the image. 1 means identical, and the higher the number, the closer the result. It is a guide, not a replacement for looking at the photo.

All numbers below are medians: half of the photos came out smaller, half larger. Sizes are in KB of 1024 bytes, as this site shows them.

The results

Median of 10 photos of 9–11 MP (original: 2,843 KB)
Median of 10 photos of 9–11 MP (original: 2,843 KB)
Format and qualityFile sizeSize compared with JPEG 75Similarity (SSIM)
JPEG 901,752 KB232%0.988
JPEG 75761 KB100%0.975
JPEG 60545 KB72%0.964
WebP 901,318 KB167%0.986
WebP 85870 KB115%0.980
WebP 80685 KB89%0.973
WebP 75553 KB71%0.964
AVIF 75705 KB92%0.984
AVIF 60465 KB60%0.975
AVIF 50311 KB40%0.960

The size comparison is the median of each photo’s own ratio, so it does not always match the ratio of the median sizes.

Every format made the photos much smaller than the originals, which were saved at a high quality. JPEG at quality 75 kept 28% of the original size, and the result was still very close to it.

The same quality number is not the same look

At quality 75, WebP came out 29% smaller than JPEG. But its similarity score was also lower: 0.964, the same as JPEG at quality 60. Comparing the two at the same number makes WebP look better than it is.

To stay as close to the original as JPEG 75 (0.975), WebP needed a quality between 80 and 85. There it was between 89% and 115% of the JPEG size: no real saving. MozJPEG, the JPEG encoder used here, is very efficient, which is part of the reason.

AVIF at quality 60 reached the same similarity as JPEG 75 and was 40% smaller. On individual photos the saving ranged from 15% to 64%. That is the one clear win in this test.

Speed: AVIF is slow to save

On a laptop with an Apple M3 processor, saving one photo and reading it back took about 1.4 seconds as JPEG or WebP and 10 to 12 seconds as AVIF. Phones are usually slower. For one photo that does not matter much; for a hundred photos for a website it does.

Opening an AVIF file is fast. The slow part is only saving it, which happens once.

Who can open each format

  • JPEG: every phone, computer, program and website. No transparency.
  • WebP: all current browsers and the photo apps of current Windows, macOS, iOS and Android. Some older programs and some upload forms still reject it. Supports transparency.
  • AVIF: current Chrome, Edge, Firefox and Safari (on iPhone from iOS 16). Fewer programs outside the browser open it, and many forms do not accept it. Supports transparency.

Which one to pick

  • Sending by email or messenger, or uploading to a form, an online shop or an office system: JPEG.
  • Images on your own website: AVIF, with JPEG as a fallback for the few browsers that cannot show it (the HTML <picture> element does this).
  • A logo, a screenshot or anything with transparent areas: PNG for exact pixels, or WebP or AVIF for a smaller file.
  • Your originals: keep the file from the camera or phone. Every time a photo is saved again in a lossy format, a little detail is lost.

If a file is only too large, a different format is not always the answer. Fewer pixels make a much bigger difference; see the guide on getting a photo under a size limit.

What this test does not show

  • Our photos were already JPEG files. Photos straight from a phone camera are often saved with less compression, so your saving compared with the original can be bigger.
  • One similarity score does not catch everything. Check faces, skin, sky and text with the before and after comparison before you keep a strongly compressed file.
  • Ten photos of landscapes and animals are not every photo. Screenshots, drawings and photos with a lot of fine detail behave differently.

Try it on your own photo

The tool works in your browser. Your photo is not uploaded.

Open “Convert images”

Frequently asked questions

Is WebP better than JPEG?

For photos at the same closeness to the original, WebP was only a little smaller than JPEG made with MozJPEG in our test. Its real advantages are transparency and wide browser support. For sharing, JPEG is still the safest choice.

Does converting a JPEG to WebP or AVIF improve its quality?

No. Converting can make the file smaller, but it cannot bring back detail that the JPEG already lost. Each new lossy save loses a little more, so convert from the original if you can.

Which quality setting should I use?

For JPEG, 75 to 80 is a good start for photos; for AVIF, about 60 gave the same similarity in our test. Then compare before and after. “Convert images” starts at 90, which keeps photos very close to the original.

Why does saving as AVIF take so long?

The AVIF encoder tries many more ways to describe each part of the image than JPEG does. That makes files smaller, but saving takes several times longer: about 10 seconds per photo in our test, against 1.4 for JPEG.

More guides

All guides