How to fit a transparent PNG under a KB limit

Fit a transparent PNG under a file size limit by balancing dimensions, palette detail and transparent edges.

Start from the destination’s PNG allowance

If a form accepts a transparent icon under 100 KB, enter a goal below that limit and keep enough pixels for the required icon dimensions. Check whether the destination specifies a fixed pixel size.

Protect edges while reducing the palette

PNG stores transparency. A smaller palette can simplify colors and the alpha channel’s gradations. Inspect a translucent edge on both a light and dark background if it will appear in both settings.

Treat the target as a goal

A photograph or complex gradient can be too large at its required dimensions. Compare the exact output size and check the preview. Lower the width only when the destination allows it.

Can I preserve identical pixels and hit any PNG target?

A tight target can require fewer colors or smaller dimensions. Keep the original if the exact pixels matter, and use the preview to decide whether the smaller copy is acceptable.

Open the compressor