WebP vs JPEG: how much smaller, really?

ReferenceWebP against JPEG at equal measured quality: about a third smaller on photographs, more on graphics. Measured with the encoders this site runs in your browser.

The answer, measured

On photographs, reaching the same measured quality costs WebP about a third fewer bytes than JPEG: 32% fewer at SSIM 0.95, 25% at 0.90, 42% at 0.97. On graphics and interface screenshots the gap is wider still. Those are the honest numbers; the interesting part is why so many comparisons report something much smaller, which this page shows happening in its own data.

Target SSIMJPEG, bits per pixelWebP, bits per pixelWebP savingImages reaching it
0.900.780.5925%23/24
0.951.561.0532%24/24
0.972.651.5242%24/24

Each row holds the target quality fixed and asks what each format pays to reach it, interpolated from that image’s own measured curve; the last column says how many corpus images bracket the target. There is no row for SSIM 0.99 because no photograph in the corpus reaches it from either encoder by quality 95: at the very top, both formats run out of road before perfection.

Same number, different meanings

Most casual comparisons encode both formats at the same setting and compare sizes. Here is what that produces on this corpus:

CategoryJPEG bppJPEG SSIMWebP bppWebP SSIM
Photographs1.070.93151.000.9466
Interface0.440.99230.310.9977
Text and tables0.430.98750.360.9978
Graphics0.260.99700.130.9986

Read the photograph row and WebP looks a modest 7% smaller. But look at the SSIM columns: at the same “75”, the WebP file is also measurably closer to the original. The two encoders’ dials are not the same instrument, so holding the number equal holds nothing equal; the WebP advantage has simply been spent on quality instead of size. Match the quality instead, as the first table does, and the saving triples. When two benchmarks disagree about WebP, this is usually the whole disagreement.

The whole curve at once

012340.700.800.901.00Bits per pixel spentSSIM against the originalWebP (libwebp)JPEG (mozjpeg)
Photographs, both encoders across their whole quality range. At any target quality, read across: WebP reaches it further left.

The rate-distortion view compresses every setting into one picture: at any height you care to draw a line, WebP crosses it first. The gap is widest in the middle of the range, exactly where web images live.

Where WebP wins biggest

Photographs are WebP’s smallest win. At quality 75, our graphics images cost 0.13 bits per pixel in WebP against 0.26 in JPEG, half the size and still higher SSIM; and for near-perfect targets that JPEG’s block transform struggles to hit at all on hard edges, SSIM 0.99 on interface, text and graphics, WebP gets there with 54% to 68% fewer bits. If the image is a chart, a diagram or a screenshot and it must be lossy, WebP is not an optimisation, it is a category difference. (If it can be lossless, PNG remains the right answer, and its own measured numbers are on the quality-settings page.)

When JPEG is still the right call

Where the receiver is unknown, JPEG’s thirty-year head start still counts: ancient software, embedded systems, print workflows and picky upload forms all read it. Encoding speed differs too, though not simply: at quality 75 our WebP encoder spent about a third more time per megapixel than mozjpeg, while at 95 it was the faster of the two. And a photograph that will be edited again belongs in neither format; recompress last, once, from the original.

How these numbers were made

The same caveat the quality-settings page carries applies here: SSIM is computed on luma, so colour bleeding is under-counted, and it is a metric, not a pair of eyes. The compressor on this site shows you your own image at any setting, which beats both.

Frequently asked questions

Is WebP always smaller than JPEG?

At matched measured quality, on every category and every target we measured, yes, by between a quarter and two-thirds depending on the content. Individual images vary, which is why the full per-image data is downloadable from the quality-settings page rather than summarised into a slogan. What is not guaranteed is that any particular converted file shrinks: re-encoding an already compressed JPEG at too high a quality setting can grow it.

Why do comparisons of WebP and JPEG disagree so much?

Mostly because of what was held equal. Encode both formats at "quality 75" and the files land close in size, which reads as WebP barely mattering; but the two 75s are different dials, and the WebP file is measurably better quality. Compare at equal measured quality and the size gap opens to a third. Both tables are on this page, from the same run, so you can see the disagreement happen.

Should I convert my existing JPEGs to WebP?

From originals, yes, when the destination supports it. From already-compressed JPEGs, carefully: a lossy re-encode compounds the artefacts of both passes, so convert from the best copy you have, and if the JPEG is all that survives, expect less saving than these tables suggest. A converter is on this site's roadmap.

Does every browser support WebP?

Every current browser does; Safari was last to arrive, in 2020. Where WebP still trips is outside the browser: older email clients, desktop software and upload forms that accept only JPEG or PNG. For the web itself, support is a settled question.

Where is AVIF in this comparison?

Not here yet, deliberately. These pages only publish measurements of the exact encoders this site ships to your browser, and this site does not ship an AVIF encoder today. When it does, AVIF joins the same corpus and the same tables rather than being quoted from someone else's benchmark.