Measured guide
Lossless vs lossy WebP: when each one wins, measured

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.
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.webpHow 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.
| File | Photo, 2000 x 1192 | Chart, 1600 x 720 |
|---|---|---|
| PNG (Pillow, optimize) | 3,398.2 KB, exact | 88.8 KB, exact |
| Lossless WebP (-z 9) | 2,647.3 KB, exact | 35.8 KB, exact |
| Lossy WebP, quality 100 | 972.6 KB, SSIM 0.9802 | 78.9 KB, SSIM 0.9947 |
| Lossy WebP, quality 85 | 382.2 KB, SSIM 0.9651 | 44.7 KB, SSIM 0.9928 |
| Lossy WebP, smallest at SSIM 0.95 | 286.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.
| Image | PNG | Lossless WebP | Difference |
|---|---|---|---|
| Photo | 3,398.2 KB | 2,647.3 KB | 22.1% smaller |
| Chart with text | 88.8 KB | 35.8 KB | 59.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.
| Saved as | Size | Against the JPEG |
|---|---|---|
| Lossy WebP, quality 85 | 378.9 KB | 21.6% smaller, one more lossy step |
| Lossless WebP | 1,983.9 KB | 4.1 times larger |
| PNG | 2,842.5 KB | 5.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.

Which one should you use?
| Your image | Use | Why, from our test |
|---|---|---|
| A photo for a web page | Lossy, quality 75 to 85 | 9 times smaller than lossless at SSIM 0.95 |
| A chart, logo, screenshot or slide | Lossless, then compare with lossy | Exact at 35.8 KB, below lossy at quality 100 |
| An image you will edit again | Lossless | Every pixel survives, so edits do not stack losses |
| A JPEG you already have | Lossy WebP or keep the JPEG | Lossless 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.
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
- WebP: An image format for the Web (Google for Developers) (checked 2026-10-27)
- cwebp command line reference (Google for Developers) (checked 2026-10-27)
- Image file type and format guide (MDN) (checked 2026-10-27)
- Harbour chapel, red boat, Nea Artaki, Evia Greece (Wikimedia Commons, CC0) (checked 2026-10-27)
- Our test log, October 27, 2026 (Koldflux, plain text) (checked 2026-10-27)
- Our measurement script (Koldflux, Python) (checked 2026-10-27)
- 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.