VeryEasyTools

Tests

JPG vs. WebP vs. AVIF: How Much Smaller Are They at the Same Quality?

VeryEasyTools · 4 min read

100 → 86 → 68JPG → WebP → AVIF, same quality, avg.

How this was measured

Photos
4 public photos (Lorem Picsum, Unsplash License) resized to 3024 px wide
Encoders
JPG: libjpeg-turbo (same results as Chrome); WebP: cwebp; AVIF: ffmpeg 6.1 libaom (cpu-used 6). All with 4:2:0 color
Quality
Compared with the original using SSIM (luma). WebP and AVIF sizes matching JPG quality 85 and 70 were interpolated from nearby settings
Measured
November 11, 2026

JPG is still the most common format for photos on the web, but anyone who cares about page speed will tell you to switch to WebP or AVIF. How much smaller do they really get at the same quality, and why is JPG still around? I tested the same photos in all three.

How the three formats differ

JPG (JPEG) dates from 1992. It divides the picture into 8 × 8 pixel blocks, converts the brightness changes in each block into frequencies, and first discards the fine ripples your eye is least likely to notice. Thanks to its age, it opens on almost every device and program.

WebP, released by Google in 2010, borrows the method the VP8 video codec uses to compress a single frame. It varies the block size to suit the content, predicts each block from neighbors already drawn, and stores only the difference. It also supports transparency and animation.

AVIF appeared in 2019 and uses the single-frame compression of the AV1 video codec. It offers even more block sizes and many more ways to predict. Just as HEIC uses the HEVC codec, most new image formats come out of new video codecs.

Compared at matched quality

Quality numbers mean different things in each format, so comparing “quality 80 against quality 80” isn’t fair. Instead, I saved each photo at many settings in each format and compared the size at which its quality score (SSIM) equals that of JPG at quality 85.

Size at the same quality as JPG quality 85 (JPG = 100)

Fjord

JPG1,519 KB
WebP1,334 KB
AVIF1,172 KB

Latte

JPG620 KB
WebP574 KB
AVIF409 KB

Puppy

JPG1,624 KB
WebP1,210 KB
AVIF955 KB

Waterfall forest

JPG1,770 KB
WebP1,571 KB
AVIF1,238 KB

At matched quality, WebP was 8–26% smaller than JPG and AVIF 23–41% smaller. Averaged over the four photos, with JPG as 100, WebP comes to about 86 and AVIF to about 68. Matching a lower quality, JPG 70, gave similar results: WebP 9–23% smaller, AVIF 24–41% smaller.

Which photos showed the biggest gap

The biggest difference was in the photo of a puppy full of fur (WebP 26% smaller, AVIF 41%). With lots of fine texture, JPG has to keep a great deal of information in every 8 × 8 block, while the newer formats pack it more efficiently by switching block sizes and predictions. The latte photo, mostly smooth foam, gave WebP only an 8% gain. AVIF was still 34% smaller there, because it is especially good at handling wide, soft areas in large blocks.

One thing to keep in mind: as quality drops, AVIF loses detail by smoothing it away, while JPG breaks it into blocky blotches. Even with the same SSIM score, how much that bothers you depends on the photo and the viewer. Treat the numbers as a guide to the size of the difference, and zoom in to compare for photos that matter.

How each one breaks down at low quality

Push quality down for smaller files and each format falls apart differently.

  • JPG: the edges of the 8 × 8 blocks start to show. You see it first in smooth areas like sky, and ripple-like smudges appear around lettering.
  • WebP: a filter softens block edges, so squares show less, but fine detail blurs and colors bleed.
  • AVIF: it wipes texture smooth. At a glance it looks clean, but details such as skin grain or blades of grass turn painterly.

In this test, even at its highest quality (CRF 2), AVIF scored 0.995–0.998 against the original, so a very small difference always remained. On the other hand, the harder you compress, the bigger AVIF’s advantage. The smaller and lighter a picture has to be, such as a thumbnail, the more the new formats pay off.

How long encoding takes

Saving one photo (3024 px wide) on this Mac took 0.06 seconds as JPG, 0.57 as WebP and 1.68 as AVIF. AVIF is the smallest but takes dozens of times longer to make than JPG. If a phone browser is converting many photos at once, you will feel the difference.

Why JPG is still used

  • It opens everywhere. All major browsers now support WebP, and recent Chrome, Firefox and Safari (iOS 16 or later on iPhone) open AVIF. Outside the browser it’s another story. Older photo viewers on Windows, some document programs, and upload forms at government offices, schools and companies often accept only JPG and PNG.
  • It fits into photo libraries. Phone photo apps handle JPG most naturally, and details such as the date taken carry over best in JPG.
  • The other side converts it again. Messaging and social apps often recompress uploads their own way, so the space you saved with a new format may not carry through to the recipient.

So which should you choose?

  • Photos you publish on your own website or blog: AVIF or WebP. Pages load faster and use less data. On a web page you can offer AVIF, WebP and JPG together with <picture> and let the browser choose.
  • Photos you send to people or submit somewhere: JPG. To make them smaller, adjusting resolution and quality is safer than changing format.
  • Originals you keep: on iPhone, leaving them as HEIC is the smallest option and keeps the most information.

This is also why Compress Image only produces JPG (PNG for transparent images): the priority is a format that opens wherever it ends up, at the size you need.

Try it yourself

Compress many photos at once to the size you need. Keeps the HDR brightness and date taken of iPhone photos (HEIC).

Open Compress Image →
All blog posts →