Format comparison
PNG vs WebP: when does WebP actually save space?
Checked against the sources on Sizes measured
Short answer
WebP can replace PNG in two different ways, and they behave differently. Lossless WebP keeps every pixel like PNG; on this page's photo it was about half the PNG's size, but on the flat graphic the browser's lossless WebP was larger than the PNG. Lossy WebP with an alpha plane was the smallest file for the graphic by far, at the cost of exactness. Keep PNG where exactness and compatibility both matter; use lossy WebP for web graphics where a small, near-identical file is the goal.
Two ways WebP can stand in for PNG
PNG has one mode: lossless. WebP has two, chosen at encoding time. Its lossless mode competes with PNG on PNG's own terms, exact pixels, using different tools (a colour cache, backward references and several transforms) on top of its own entropy coding. Its lossy mode with an alpha plane does something PNG cannot: it lets the colour data be approximated while keeping transparency, which is often what a web graphic actually needs.
MDN's guide says lossless WebP is typically about a quarter smaller than PNG. This page's measurement agrees for the photo and disagrees for the graphic, where the browser's lossless WebP came out larger than its PNG. Averages describe many images; your image is one, which is why the measurement is shown rather than the average alone.
How exact is "lossless" in a browser?
For opaque images, completely: the photo came back pixel-identical from both PNG and lossless WebP. Semi-transparent pixels are the exception. In this measurement the lossless WebP of the graphic changed some pixels slightly, and every one of them was semi-transparent in the original; no fully opaque pixel changed. The measurement records where the changes are, not why. For most uses they are invisible, but if you need bit-exact transparency, compare the output with the original before replacing it.
Compatibility and editing
PNG remains the format every editor, document tool and upload form understands, and it is the safe choice for an image that will be edited and saved repeatedly. WebP is well supported in browsers, but less predictably outside them. A sensible split: keep masters as PNG, publish WebP on your own pages, and convert WebP back to PNG (not JPG) when a WebP with transparency has to go into software that does not read WebP.
PNG or WebP, case by case
| Image | Choose | Reason |
|---|---|---|
| Icon or logo on your own web page | Lossy WebP with alpha | Smallest file here, transparency kept, near-identical look. |
| Screenshot that must stay exact, for the web | Measure both | Lossless WebP beat PNG on the photo here but lost on the flat graphic. |
| Master file you will edit | PNG | Universal support and lossless re-saving. |
| Image for a document or office file | PNG | Office and document tools reliably take PNG. |
| Photo that needs to stay lossless | Lossless WebP | About half the PNG's size on this page's photo. |
| Transparent image for older software | PNG | Convert WebP to PNG to keep the alpha channel. |
Measured example
| File | Bytes | Size | Fidelity to the original |
|---|---|---|---|
| Photo as PNG | 1,275,225 | 1245 KB | identical pixels |
| Photo as lossless WebP | 661,674 | 646 KB | identical pixels |
| Graphic as PNG | 22,714 | 22.2 KB | 67.2 dB (no pixel off by a whole level) |
| Graphic as lossless WebP | 43,918 | 42.9 KB | 60.9 dB |
| Graphic as lossy WebP with alpha | 7,694 | 7.5 KB | 38.3 dB |
On the photo, lossless WebP was 646.2 KB against PNG's 1245.3 KB, 48% smaller, and both decoded to identical pixels.
On the graphic it went the other way: lossless WebP was 42.9 KB, larger than the 22.2 KB PNG, and it changed 53,060 semi-transparent pixels slightly (0 opaque ones). Lossy WebP with an alpha plane was 7.5 KB, the smallest of the three, at 38.3 dB.
Questions
Is WebP always smaller than PNG?
No. MDN describes lossless WebP as typically about a quarter smaller than PNG, and on this page's photo it was about half the size, but on the flat graphic the browser's lossless WebP was larger than the PNG.
Which is better for a logo on a web page?
Usually lossy WebP with an alpha plane: on this page's graphic sample it was the smallest file and kept the transparent background. Keep a PNG master for editing and for software that does not read WebP.
Is converting PNG to WebP lossless?
Only in lossless mode. In the browser measured here, quality 1.0 produced lossless WebP; lower settings produce lossy files that approximate the colours.
Should I keep PNG files as masters?
Yes, if you will edit them again or need them outside the browser. PNG re-saves without loss and nearly every program reads it. Publish WebP copies for the web.
Which should I use for screenshots?
If they must stay exact, compare PNG and lossless WebP on your own screenshot: here lossless WebP won on the photo but lost on the flat graphic. If near-identical is enough, lossy WebP is far smaller.
Sources
- W3C, 24 June 2025Portable Network Graphics (PNG) Specification (Third Edition)W3C Recommendation · opened 13 November 2026
- IETF, November 2024RFC 9649: WebP Image FormatInformational RFC · opened 13 November 2026
- MDN Web Docs, 5 November 2026Image file type and format guideReference guide (page last modified 5 November 2026) · opened 13 November 2026
Convert between them in your browser
Convert PNG to WebP (lossy or, at quality 1.0, lossless) or back. The Image Converter runs in your browser tab, with no account.