Quick answer
At the same measured quality, WebP files were 28–34% smaller than JPG and AVIF files 35–44% smaller. At an everyday setting (JPG quality 80) that is 75 KB for JPG, about 50 KB for WebP and about 42 KB for AVIF per photo. Lossless PNG was 643 KB. The catch: WebP and AVIF took roughly 50–120 times longer to save, and AVIF still does not open everywhere.
How we tested
- Photos: the 24 Kodak test images (768 × 512 pixels), released by Eastman Kodak for unrestricted use and a standard test set for image compression for decades: landscapes, faces, boats, textures.
- Encoders: Pillow 12.3 with libjpeg-turbo, libwebp 1.6 and libavif 1.4.2 — default settings apart from the quality value. Chrome and most browsers use libjpeg-turbo and libwebp too.
- Settings: JPG and WebP at quality 50, 60, 70, 75, 80, 85, 90 and 95; AVIF at 30 to 90.
- Quality measure: PSNR — how far, on average, each pixel of the saved file is from the original, in decibels. Higher is closer; above about 40 dB differences are very hard to see. PSNR is a rough measure, not a judgement by eye, but it is the same yardstick for all three formats.
- Equal quality: to compare formats fairly we took the JPG result at a given setting and interpolated the WebP and AVIF sizes that reach the same PSNR.
Average size per photo
| Setting | JPG | WebP | AVIF |
|---|---|---|---|
| Quality 50 | 43.5 KB · 32.2 dB | 34.6 KB · 33.2 dB | 28.9 KB · 33.4 dB |
| Quality 60 | 49.8 KB · 32.9 dB | 39.5 KB · 34.0 dB | 42.6 KB · 35.4 dB |
| Quality 70 | 59.5 KB · 33.9 dB | 44.8 KB · 34.7 dB | 59.7 KB · 37.5 dB |
| Quality 80 | 75.4 KB · 35.4 dB | 58.4 KB · 36.4 dB | 80.2 KB · 39.2 dB |
| Quality 90 | 112.6 KB · 38.0 dB | 96.5 KB · 39.6 dB | 118.7 KB · 41.3 dB |
| Quality 95 | 162.8 KB · 40.6 dB | 140.6 KB · 41.8 dB | — |
| PNG (lossless) | 643.3 KB | ||
Note that the same number means something different per format: AVIF at quality 70 is about as large as JPG at 70, but much closer to the original. That is why the fair comparison is at equal quality, below.
At the same quality
| Quality level (as JPG) | JPG | WebP | AVIF |
|---|---|---|---|
| Everyday — JPG 80 (35.4 dB) | 75.4 KB | ≈ 50 KB (−34%) | ≈ 42 KB (−44%) |
| High — JPG 90 (38.0 dB) | 112.6 KB | ≈ 76 KB (−32%) | ≈ 67 KB (−41%) |
| Very high — JPG 95 (40.6 dB) | 162.8 KB | ≈ 117 KB (−28%) | ≈ 106 KB (−35%) |
The newer formats win most at the settings people actually use. At very high quality their advantage shrinks.
Three things that surprised us
- The last few quality points are expensive. JPG at 95 was more than twice the size of JPG at 80 (163 KB vs 75 KB), and 85 → 95 alone almost doubled it. If a photo is for a screen, 80–85 is plenty.
- Saving is much slower. On one laptop core, a JPG took about 4 ms per photo, WebP about 200 ms and AVIF 200–550 ms. For one photo you will not notice; for a folder of 500 phone photos you will.
- PNG is the wrong choice for photos. Lossless PNG was 8.5 times larger than JPG at 80, and still 4 times larger than JPG at 95. Keep PNG for screenshots, logos and images with transparency.
Which format should you use?
- To send or share: JPG at 80–85. It opens on every phone, computer and web form.
- For your own website: WebP is supported by all current browsers and is about a third smaller — convert with JPG to WebP.
- Smallest possible on the web: AVIF, ideally with a JPG or WebP fallback for older software.
- Received a WebP or AVIF that will not open? Turn it back into a JPG with WebP to JPG or AVIF to JPG.
Limits of this test
- 24 photos of 0.4 megapixels. Today's 12–48 megapixel phone photos are larger, and the percentages can differ for very large or very noisy images.
- PSNR does not always match what eyes see; at low settings AVIF tends to blur, JPG tends to show blocks.
- Other encoders and settings (for example slower WebP methods or AVIF speed settings) give other numbers.
- Speeds are from one laptop and only meant to compare the formats with each other.
Frequently asked questions
How much smaller is WebP than JPG?
In our test on 24 photos, 28–34% smaller at the same measured quality — most at everyday settings, least at very high quality.
Is AVIF better than WebP?
For size, yes: 35–44% smaller than JPG against 28–34% for WebP. It was also the slowest to save, and not every program opens it yet.
What JPG quality should I use?
80–85 for most photos. Going from 85 to 95 nearly doubled the size in our test (89 KB to 163 KB on average) for a gain that is hard to see.