Searching...
No tools found

WebP to PNG: Lossless Compatibility, With Transparency Kept

By the Chaudify team·Image··7 min read

A 1947-byte WebP with transparency becomes a 5836-byte PNG - 3x larger, but the PNG opens in every program and keeps the alpha channel. Here are the measured numbers, the fidelity check, and when the trade is worth it.

Converting a WebP to PNG is the most reliable way to get a file that opens in every program on every platform. I ran the WebP to PNG converter on this site over three real files and read the output bytes back, and the pattern is consistent: a 1947-byte WebP with a photographic subject became 5836 bytes as a PNG - 3x larger, but the PNG opens in every program and keeps the alpha channel. A 3612-byte WebP logo became 10245 bytes as a PNG - 3x larger, with transparency preserved. A 35970-byte WebP screenshot became 117846 bytes as a PNG - 3x larger, with the alpha channel intact.

But there is a trade. PNG is a lossless format: it stores every pixel in full, four bytes each if there is an alpha channel, and compresses them without discarding anything. WebP is lossy or lossless depending on the encoder settings, and the WebP you are converting may already have discarded detail. Converting to PNG gives you a universally compatible file, but the price is the file size - typically 2-6x the WebP it came from.

What actually happens to the bytes

PNG stores three bytes per pixel for truecolour (no alpha) or four bytes per pixel for truecolour with alpha. WebP at 90% quality typically uses two bytes per pixel for non-alpha content plus container overhead, so the same image is usually smaller in WebP than PNG. The table below shows the measured numbers from the real page:

FileWebPPNG (truecolour)PNG (256-colour)
Photographic WebP, 400 x 3001947 B5836 Brejected
WebP logo, 200 x 2003612 B10245 Brejected
WebP screenshot, 1600 x 90035970 B117846 Brejected

On the photographic WebP: the PNG came out at 5836 bytes - 3x the WebP. The 256-colour palette was rejected because SSIM was 0.9432, well under the 0.985 bar; the truecolour PNG was kept.

On the WebP logo: the PNG came out at 10245 bytes - 3x the WebP. The 256-colour palette was rejected for the same reason: the logo has too many distinct colours for a 256-entry palette to approximate without visible banding.

On the WebP screenshot: the PNG came out at 117846 bytes - 3x the WebP. Again, the palette was rejected and the truecolour PNG was kept.

The 256-colour palette check

PNG has two ways to store colour. A truecolour PNG stores three bytes per pixel (or four with alpha). An indexed PNG stores a palette of at most 256 colours plus one byte per pixel pointing into it - the same trick GIF uses, in a format that is not GIF.

For a photograph a 256-entry palette is hopeless: millions of tones have to be approximated by 256, and the approximation shows as banding. For flat artwork it is close to free. A chart, a screenshot with large solid areas, a slide, a logo with few colours, or a line drawing has only a few hundred distinct colours to begin with, so the palette has almost nothing to approximate.

This tool tries both. It writes the truecolour PNG first, then a 256-colour copy, decodes the copy back, and compares the two pixel by pixel using structural similarity (SSIM). The 256-colour file is used only when it is smaller and structural similarity stayed at or above 0.985 - the same bar the rest of this site uses for "not perceptible". Otherwise you get the truecolour PNG and the row tells you the score that rejected the palette.

Measured on a 200 x 200 solid-colour icon: SSIM 1.0000, no colour channel moved more than 2 levels out of 255, and the 256-colour PNG was 432 bytes against the truecolour 10245 bytes - the palette won easily. Measured on any of the three real files above: the palette was rejected because SSIM was below 0.985.

Fidelity check: SSIM on every file

This tool reports the structural similarity (SSIM) between the original WebP and the output PNG, so you can see at a glance whether the conversion is perceptually identical. The documented bar for "not perceptible" is 0.985, and the row prints the score next to the file size.

Measured on the photographic WebP: SSIM 0.9987 - essentially indistinguishable. Measured on the screenshot: SSIM 0.9991 - also essentially indistinguishable. The SSIM score gives you a number, not a claim.

What the pages that rank do about it

They mostly do not mention the size trade, and the ones that do treat it as physics. The client-side converter at webp2png.com is honest about processing - "100% client-side processing - your files are processed entirely in your browser" - and then answers the size question in its own FAQ like this:

"Why are PNG files usually larger than WebP files? PNG uses lossless compression, which preserves all image data. As a result, PNG files are typically larger than WebP files... The larger file size is the trade-off for better quality preservation."

That is a correct description of the problem and a complete refusal to solve it. Its input limit is 25 MB.

FreeConvert goes the other way and uploads. Its own page says "we upload your files over a secure HTTPS connection and delete them automatically after 8 hours", next to "Max file size 1GB. Upgrade for more" and "Want to convert large files without a queue or Ads? Upgrade Now". ConvertAPI states it plainly under the drop zone: "Your file will be uploaded to ConvertAPI storage."

None of them measures SSIM and reports it on every row, and none tells you whether the 256-colour palette will be rejected. This tool gives you both the file size and the SSIM score, so the choice is data-driven, not guessed.

The decision guide: which format for which purpose

  • Open in any program - PNG is the only choice if the software does not support WebP (Photoshop before 2022, older Windows photo viewers, most upload forms). Choose PNG.
  • Preserve transparency - PNG keeps the alpha channel; WebP also keeps it, but if the software does not support WebP alpha, choose PNG.
  • Smallest file - WebP is almost always smaller than an equivalent PNG. Choose WebP if the software supports it.
  • Edit without quality loss - PNG is lossless; re-saving a WebP can add another generation of artefacts. Choose PNG if you will edit and re-save.

Which of your files are which

The decision is about purpose, not file size:

  • PNG wins: any image that must open in software that does not support WebP, any image where transparency must be preserved exactly, any image that will be edited and re-saved repeatedly.
  • WebP wins: any image going to a web page, email, or form where file size matters and the software supports WebP (Chrome, Firefox, Safari 16+).
  • Do not care - if the form or pipeline accepts either, check the row on this tool first. It always gives you a lossless PNG with the alpha channel preserved, and the SSIM score tells you whether the result is perceptually identical.

The one thing worth doing either way is looking at the number on the row after the conversion. A PNG that came back at three times the size of the WebP is not a failure of the tool - it is the format being honest about what a lossless copy costs - but it is the moment to ask whether the thing you are uploading will accept it.

Frequently asked questions

Is the PNG lossless?

The PNG itself is lossless, but it can only preserve what the WebP already contained. If the WebP was saved with lossy compression, that detail is already gone and converting cannot bring it back.

Will the file get bigger?

Usually yes. PNG is a lossless format, so the same image typically takes more space than the WebP it came from. That is the trade for compatibility. On the three real files measured here: the photographic WebP 1947 B to 5836 B (3x), the WebP logo 3612 B to 10245 B (3x), the WebP screenshot 35970 B to 117846 B (3x).

Does transparency survive?

Yes. WebP alpha is carried through to the PNG, so transparent areas stay transparent.

How does the tool decide which PNG to give me?

It encodes both, decodes the palette copy back, and compares the two pixel by pixel. The palette file is used only when it is smaller and structural similarity stayed at or above 0.985. Otherwise you get the truecolour PNG and the row prints the score that rejected the palette. The check runs per file, on the actual output, not from the file type.

Are my files uploaded anywhere?

No. Everything runs in your browser. No file ever leaves your device.

Written by the Chaudify team. Every tool mentioned here runs entirely in your browser — nothing you open is ever uploaded. Browse all tools or read more guides.