Skip to content

WEBP and the alpha channel: what survives

Only one output format in this toolkit keeps transparency: PNG. Convert a transparent WEBP to anything else and the empty pixels get filled with a colour you choose — which is either exactly what you wanted, or the one thing worth checking first.

WEBP is not one format. It is a container that holds either a lossy picture, a lossless one, or an animation — and any of those can carry transparency. That flexibility is why a WEBP can sit in a web page at a quarter of the PNG's weight and still show a cut-out logo cleanly. When a program refuses to open it, the problem is support, not the picture.

What the converter does, in order

The background fill is the part worth reading twice. It happens for JPEG, for WEBP and for every other lossy target, because the canvas cannot hold transparency once the format cannot store it. The default is white; the colour picker next to the quality slider changes it. If your WEBP has soft, semi-transparent edges — a drop shadow, a hand-drawn outline — those pixels are blended with the background rather than thrown away, so a dark background can make a light logo look like it has a fringe.

Two conversions, two different jobs

ConversionWhat it is forWhat happens to transparency
WEBP to PNGOpen the file in software that never learned WEBPKept — PNG stores alpha.
WEBP to JPGA smaller file for a place that only accepts JPEGFlattened onto the background colour.
JPG to WEBPShrink a photo for the webJPEG has no transparency, so there is none to keep.

A counter-intuitive consequence: converting a transparent PNG to WEBP in this tool also flattens it, even though the WEBP format can carry transparency. The canvas is prepared the same way for every non-PNG target, so the safe rule is simple — if transparency matters, end at PNG.

Quality, and why the default moves

JPEG and lossy WEBP are encoded at a quality level taken from the slider, which starts at 92. That is a sensible middle: high enough that artefacts stay invisible on photographs, low enough to shrink a file noticeably. PNG is encoded without a quality setting, because PNG is lossless by definition — the slider has no effect on it, and neither does the background colour.

Since every conversion re-encodes the picture, quality can only be lost, never gained. Converting JPEG to WEBP at quality 92 keeps the visible result indistinguishable in most cases; converting WEBP to JPEG at the same setting adds one more generation to whatever the file already carried.

The limits

The short version

Questions

Will my transparent WEBP stay transparent?

Only if the output is PNG. For JPEG and WEBP targets the canvas is filled with the background colour first, so transparent pixels are blended into it before encoding.

Why is the PNG larger than the WEBP?

Because WEBP compresses, with or without loss, and PNG stores every decoded pixel losslessly. A photograph converted to PNG is often several times larger.

Does the quality slider affect PNG output?

No. PNG is lossless by definition, so the converter encodes it without a quality setting; the slider only applies to JPEG and lossy WEBP.

Tools in this article

All articles