PixelShrink

When a PNG should stay a PNG, and when WebP is the better file

2026-04-02

Transparency, sharp text, and already-compressed graphics do not behave like photographs. Choose the output format for the pixels you have.

PNG is lossless. If the file is already a well-optimized PNG, another lossless pass may save almost nothing. The size drops when you resize the pixel grid, or when you deliberately quantize colors into a palette. Quantizing is lossy even though the container is still PNG.

Transparency is a format constraint

JPEG has no alpha channel. If you send a transparent PNG to JPEG, something has to paint the empty pixels. PixelShrink flattens them onto white and says so. WebP and PNG can keep the alpha channel, so a logo or interface element should stay in one of those when the background is not known.

Text and flat color

JPEG’s assumption — that small color errors hide inside photographic noise — is false for screenshots. Fine type gets fuzzy. A PNG with palette quantization, or a WebP encoded at a high quality, usually holds the edges better at a similar size.

  • Logos and UI: PNG or WebP, not JPEG.
  • Photographs: JPEG or WebP.
  • If the compressed PNG is larger, that is normal. Lossless data does not always shrink, and we still remove metadata rather than handing back the original bytes.

Related