Lossy WebP, Lossless WebP, and PNG: How They Differ
The two compression modes inside WebP, how each compares with PNG’s DEFLATE compression, and what that means when converting between them.
Primary Browser Tool
WebP to PNG Converter
Convert WebP images to lossless PNG files with transparency preserved, individually or as a batch ZIP download.
WebP Is Two Formats in One Container
A .webp file holds either lossy or lossless image data, and the two work in unrelated ways. Lossy WebP derives from the VP8 video codec: it predicts blocks from their neighbors, transforms the remainder, and discards fine detail according to a quality setting. Lossless WebP stores every pixel exactly, using spatial prediction, a color transform, a cache of recently used colors, and entropy coding.
Both modes can carry an alpha channel. In lossy WebP the alpha channel is stored separately and is normally compressed losslessly, so edges stay precise even when the color data is compressed hard.
How PNG Compresses
PNG is always lossless. Each row of pixels is passed through a simple filter that replaces values with differences from neighboring pixels, and the result is compressed with DEFLATE, the same algorithm used in ZIP files. It works very well on flat colors and repeated patterns and poorly on photographs, where neighboring pixels differ in unpredictable ways.
| Format and mode | Lossless? | Typical size for a photo | Typical size for a flat graphic |
|---|---|---|---|
| Lossy WebP | No | Smallest | Small, but edges may soften |
| Lossless WebP | Yes | Large | Very small |
| PNG (32-bit) | Yes | Largest | Small |
| PNG (8-bit palette) | Colors reduced to 256 | Not suitable | Very small |
What Conversion Does and Does Not Change
Converting WebP to PNG decodes the WebP into pixels and stores those pixels exactly. If the source was lossless, the PNG is a perfect copy of the original artwork. If the source was lossy, the PNG is a perfect copy of the already-compressed result: the softened textures and any artifacts are now preserved losslessly, at a much higher storage cost.
This is why a PNG made from a lossy WebP photo can be five to ten times larger without looking any better. The extra bytes are spent recording, precisely, an image that was imprecise to begin with.
Practical Examples
One icon, three files
A 256 px flat-color icon is 3 KB as lossless WebP, 5 KB as PNG, and 7 KB as lossy WebP with slightly blurred edges. For flat graphics, lossless formats are both smaller and cleaner.
Common Mistakes & Honest Limitations
Mistakes to Avoid
- Treating “lossless” as “higher quality than the source”. A lossless format preserves what it is given, flaws included.
Technical Limitations
- You cannot tell from the file extension which WebP mode was used. The Metadata Viewer and the file’s size relative to its dimensions give hints.