Measured guide

Lossless vs lossy WebP: when each one wins, measured

Updated Measured October 27, 2026cwebp 1.6.0CC0 photo and our own chart

A photograph shrinking into a lossy WebP frame, and a line chart shrinking into a lossless WebP frame, with a glowing.

Short answer

Use lossy WebP for photos and lossless WebP for graphics, screenshots and anything you will edit again. On our photo, lossless kept every pixel at 2,647.3 KB while lossy reached SSIM 0.95 at 286.9 KB, 9 times smaller. On our chart, lossless was 35.8 KB, smaller than lossy WebP at quality 100 and exact. Never save a JPEG as lossless WebP to make it smaller: ours grew from 483.1 KB to 1,983.9 KB.

Convert PNG to WebP

Key takeaways

  • Lossless WebP is exact. The decoded pixels of both test images hashed identical to the originals, as did the PNGs.
  • Against PNG, lossless WebP was 22.1% smaller on the photo and 59.6% smaller on the chart. Google publishes 26% smaller than PNG.
  • On a photo, lossy wins by far: 286.9 KB at SSIM 0.95 against 2,647.3 KB lossless, 9 times smaller.
  • On a graphic, lossless can win outright: 35.8 KB exact, against 78.9 KB for lossy at quality 100, which still scored only SSIM 0.9947.
  • Lossless cannot shrink a JPEG. Our 483.1 KB JPEG became 1,983.9 KB as lossless WebP and 2,842.5 KB as PNG.

What is the difference between lossless and lossy WebP?

Lossy WebP throws away detail you are unlikely to notice, in exchange for a much smaller file; it is the format based on the VP8 video codec. Lossless WebP stores every pixel exactly and makes the file smaller by finding repeated patterns, the job PNG does. Both are the same .webp extension, so you cannot tell them apart by the name.

In cwebp the switch is one flag: -q sets the lossy quality, -lossless turns lossless on. Most export dialogs show it as a checkbox or a "lossless" option next to the quality slider.

cwebp -q 85 -m 6 photo.png -o photo-lossy.webp
cwebp -lossless -z 9 chart.png -o chart-lossless.webp
The commands we ran: lossy at quality 85, and lossless at the slowest, smallest setting.

How big is each one?

We saved both test images as PNG, as lossless WebP and as lossy WebP at every quality from 10 to 100, decoded every file with the reference decoder, and compared it with the original. For lossless files we hashed the decoded pixels; for lossy files we scored SSIM, where 1.0 is identical.

Lossless and lossy WebP on two images.
FilePhoto, 2000 x 1192Chart, 1600 x 720
PNG (Pillow, optimize)3,398.2 KB, exact88.8 KB, exact
Lossless WebP (-z 9)2,647.3 KB, exact35.8 KB, exact
Lossy WebP, quality 100972.6 KB, SSIM 0.980278.9 KB, SSIM 0.9947
Lossy WebP, quality 85382.2 KB, SSIM 0.965144.7 KB, SSIM 0.9928
Lossy WebP, smallest at SSIM 0.95286.9 KB (q78)16.3 KB (q10)

Our measurements, October 27, 2026: cwebp 1.6.0, PNG written by Pillow with optimize, pixels decoded with dwebp and hashed with SHA-256, SSIM on RGB with ffmpeg. "Exact" means the decoded pixels hashed identical to the original.

The photo and the chart behave in opposite ways. A photo has noise and fine texture in every pixel, so an exact copy is expensive and lossy saves 89% of it. A chart is mostly flat color, so the lossless encoder finds long repeats and lands below lossy at its highest quality, which still is not exact.

Is lossless WebP smaller than PNG?

Yes on both of our images, and both kept every pixel. Google publishes that lossless WebP images are 26% smaller than PNGs; our two results sit either side of that.

Lossless WebP against PNG.
ImagePNGLossless WebPDifference
Photo3,398.2 KB2,647.3 KB22.1% smaller
Chart with text88.8 KB35.8 KB59.6% smaller

Our measurements, same run. PNG tools differ: an optimizer such as oxipng can shrink a PNG further than Pillow does, so treat the gap as a starting point, not a constant.

Why lossless WebP will not shrink a JPEG

Lossless keeps the pixels exactly as they are, and the pixels of a JPEG include all of its compression noise. Saving them losslessly stores that noise faithfully, which costs far more than the JPEG did. We took the quality 85 JPEG of our photo, 483.1 KB, and saved it three ways.

One JPEG, saved three ways.
Saved asSizeAgainst the JPEG
Lossy WebP, quality 85378.9 KB21.6% smaller, one more lossy step
Lossless WebP1,983.9 KB4.1 times larger
PNG2,842.5 KB5.9 times larger

Our measurements, same run. Lossless is the right choice when you must not lose another pixel, for example before more editing, but it is never the way to make a JPEG smaller. To save space, use lossy WebP and check the result, or keep the JPEG.

Bar chart: one 483 KB JPEG saved as lossy WebP is 379 KB, as lossless WebP 1,984 KB and as PNG 2,842 KB
Lossless keeps the JPEG's pixels, not its size.

Which one should you use?

Lossless or lossy WebP.
Your imageUseWhy, from our test
A photo for a web pageLossy, quality 75 to 859 times smaller than lossless at SSIM 0.95
A chart, logo, screenshot or slideLossless, then compare with lossyExact at 35.8 KB, below lossy at quality 100
An image you will edit againLosslessEvery pixel survives, so edits do not stack losses
A JPEG you already haveLossy WebP or keep the JPEGLossless made it 4.1 times larger

Transparency works in both modes, so a logo with a transparent background does not force you into lossless.

Limits and what we did not test

  • Two images, one photo and one chart. Screenshots, line art and noisy low-light photos will land elsewhere.
  • One encoder, cwebp 1.6.0, at its slowest lossless setting (-z 9). Faster settings and other tools produce larger lossless files.
  • We did not test near-lossless mode or AVIF.
  • PNG was written by Pillow with optimize; a dedicated PNG optimizer can make it smaller.
  • Transparency support comes from Google WebP documentation; we did not test an image with an alpha channel.

Do it in your browser

Free Koldflux tools, no account needed.

Convert PNG to WebPConvert WebP to PNG

Questions people ask

Is lossless WebP really lossless?

Yes in our test. The decoded pixels of both images hashed identical to the originals, so not a single pixel changed.

Is lossless WebP smaller than PNG?

In our test, 22.1% smaller on a photo and 59.6% smaller on a chart, both exact. Google publishes 26% smaller than PNG on average.

Should I use lossless WebP for photos?

Only when every pixel matters, such as before further editing. On our photo lossless was 2,647.3 KB, against 286.9 KB for lossy WebP at SSIM 0.95.

Why did converting my JPEG to lossless WebP make it bigger?

Lossless keeps the JPEG's compression noise exactly. Our 483.1 KB JPEG became 1,983.9 KB, 4.1 times larger. Use lossy WebP to save space.

Does lossy WebP support transparency?

Yes. Both lossy and lossless WebP can store an alpha channel, according to Google's WebP documentation, so transparency alone is no reason to choose lossless.

How do I make a lossless WebP?

With cwebp, add -lossless (we used cwebp -lossless -z 9). In an editor or export dialog, look for a lossless checkbox next to the quality setting.

Related

More guides on this topic

Sources and how we checked

  1. WebP: An image format for the Web (Google for Developers) (checked 2026-10-27)
  2. cwebp command line reference (Google for Developers) (checked 2026-10-27)
  3. Image file type and format guide (MDN) (checked 2026-10-27)
  4. Harbour chapel, red boat, Nea Artaki, Evia Greece (Wikimedia Commons, CC0) (checked 2026-10-27)
  5. Our test log, October 27, 2026 (Koldflux, plain text) (checked 2026-10-27)
  6. Our measurement script (Koldflux, Python) (checked 2026-10-27)
  7. Our JPEG conversion test (Koldflux, Python) (checked 2026-10-27)

Sizes, hashes and SSIM are our measurements on October 27, 2026 on macOS: cwebp 1.6.0 lossy (-q 10 to 100, -m 6) and lossless (-lossless -z 9), PNG by Pillow with optimize, files decoded with dwebp and compared with the reference by SHA-256 of the RGB pixels or by the ffmpeg SSIM filter on RGB. The photo is a CC0 Wikimedia Commons file scaled to 2000 px wide; the chart is our own HTML rendered by Chromium. Control: each reference scored SSIM 1.000000 against itself. Google's statements are quoted from the pages in the sources. WebP is a trademark of Google LLC; Koldflux is not affiliated with or endorsed by Google.