tinysqueeze
Lossless & alpha

How to Compress PNG Without Ruining Transparency or Text

To preserve a transparent background, the output must support alpha. To keep every pixel identical, use lossless PNG optimization rather than reducing the number of colors.

Why PNG files become large

PNG preserves pixels losslessly, which suits text, interfaces, icons, and transparent areas. A photo contains continuous tones and noise that leave PNG fewer repeated patterns to exploit, so it is usually much larger than JPEG or WebP. A UI asset with few colors and regular edges can be an excellent PNG candidate.

Transparency is not only on or off. Shadows, glows, and antialiased edges contain many partial-alpha values. Aggressively reducing colors or alpha levels can create halos and steps that become obvious on a dark background.

Lossless optimization vs palette quantization

MethodPixels change?Typical benefitRisk
Lossless PNG optimizationNoRemoves redundancy and improves codingLimited savings, very safe
Palette quantizationMerges similar colorsCan be large for icons/illustrationsBanding and changed alpha edges
Lossy WebP/AVIFYesCan help photo-like transparent assetsWorkflow compatibility
JPEG conversionYes; removes alphaPhoto compatibilityTransparency becomes a background color

tinysqueeze High quality keeps PNG on a lossless path. Balanced, Smart auto, and Max compression enable quantization at different strengths. The right choice depends on the artwork, not the extension alone.

A reliable transparent-PNG inspection

  1. Keep the source PNG and create a lossless High quality output first.
  2. Preview the result on white, black, and a primary brand color.
  3. Zoom into rounded corners, shadows, thin lines, text, and partial-alpha pixels.
  4. If lossless is still too large, test Balanced quantization or lossless WebP.
  5. Verify transparency and format support in the target app, CMS, and older devices.

When to stop squeezing PNG

If the asset is essentially a photo with a small transparent region, test WebP or AVIF. If it is a logo, line drawing, or simple geometric graphic, SVG may be more appropriate than any raster format. Do not ask a quality slider to solve a format mismatch.

  • Exact pixel identity required: stop at lossless optimization.
  • Web icon: evaluate SVG first, then PNG or lossless WebP.
  • Photo plus transparency: test WebP/AVIF and maintain a fallback.
  • Social upload: check whether the platform removes alpha or recompresses files anyway.

References

Process your files now

Your files are processed in the current browser and are not uploaded as article samples.

Open the image compressor