Skip to content

Runs in your browser

PNG Compressor

Reduce PNG file size while keeping transparency, by cutting the number of distinct colours. Logos, icons, screenshots and UI exports shrink dramatically.

Add your images

Transparency survives — only the number of distinct colours is reduced.

Up to 50 files at a time · nothing is uploaded, every image is processed on your own device

Settings

Fewer colours compress far better. 128 is indistinguishable for most logos, icons and UI exports.

PNG is lossless, so this is the only lever that shrinks it at unchanged dimensions.

Maximum dimensions

Optional. Images already smaller than this are left at their own size.

px
px

About compressing PNG files

PNG is lossless, so there is no quality slider to turn down — the encoder is already storing the image as briefly as it can. The one lever that genuinely changes PNG file size is the number of distinct colours the image contains.

This tool reduces that count using median-cut quantisation: it groups the colours actually present into a smaller palette and remaps the pixels to it. On logos, icons, diagrams and interface exports the difference is usually invisible and the saving is large. On photographs it is the wrong tool.

When this is the right tool

  • Logos, icons, diagrams and UI exports that must keep their transparency.
  • Screenshots of interfaces, which are mostly flat colour and compress extremely well.
  • Any PNG asset that has to stay a PNG for compatibility reasons.
  • Not photographs — those want PNG to WebP or a JPG instead.

How to use it

  1. Drop in the PNGs

    Transparency is read and carried through the whole process, so cut-outs and rounded corners survive.

  2. Choose a colour count

    128 is the default and is indistinguishable for most flat artwork. Drop lower for very simple graphics; raise it if you see banding in a gradient.

  3. Compress and compare

    Check anything with a gradient or a soft shadow first — that is where a reduced palette shows before it shows anywhere else.

  4. Download

    A single file downloads directly; a batch arrives as one ZIP.

Formats and limits

Input
PNG, with or without transparency.
Output
A standard PNG with a reduced colour palette — still a PNG, so it opens anywhere the original would have.
Not for photographs
A photograph needs its full colour range; reducing it produces visible banding. Convert those to WebP or JPG instead.
Metadata
Not preserved. Re-encoding through a browser canvas drops EXIF, IPTC and XMP — keep your originals if that information matters. What that involves.
Batch, limits and privacy
Up to 50 files per run at 50MB each, all processed with the same settings and returned as one ZIP. No watermark, no daily cap and no sign-up — and no upload either: every file is decoded and re-encoded by your own browser.

Common questions

How does compressing a lossless format work?

PNG stores every pixel exactly, so the size is driven by how many distinct colours it has to describe. Reducing an image to a bounded palette lets DEFLATE compress it far harder — the same technique every PNG optimiser uses.

Will transparency survive?

Yes. Only colour is quantised; the alpha channel is left exactly as it was, so soft edges and cut-outs are not banded.

How many colours should I keep?

128 is indistinguishable for most logos, icons and UI exports. Drop to 32 or 64 for very flat graphics. For photographs saved as PNG you will get a far better result by converting to WebP or JPG instead.

Guides on this

Longer answers to the questions this tool raises.

Related tools