Reduce the Number of Colors in a PNG
PNG compresses repetition. The fewer distinct colours an image contains, the better it compresses — which is why cutting an icon or screenshot from 40,000 colours down to 32 can halve or quarter the file with no visible change. Pick a colour count, and the output row tells you exactly what you saved.
Drop PNGs here
Multiple files allowed
Where to set the colour count
Flat UI screenshots, logos and line art usually survive 16 to 32 colours with no visible loss at all — this is where the big wins live. Illustrations with soft shading want 64 to 128. Photographs generally shouldn't come here: banding appears well before the file gets meaningfully smaller, and WebP or Compress will beat quantisation comfortably on photographic content.
Check Color count first. If an image already uses only 200 colours, quantising to 128 buys you very little; if it reports 60,000, there's real room.
Dithering is a trade
Without dithering, each pixel snaps to the nearest palette colour and smooth gradients break into visible bands. Floyd–Steinberg dithering spreads each pixel's rounding error into its neighbours, so gradients stay smooth at the cost of a fine speckle. That speckle is noise, and noise compresses badly — a dithered file is often 20–40% larger than the same image undithered. Turn it off for flat graphics, leave it on for anything with a gradient or a soft shadow.
The all-or-nothing transparency option snaps every pixel to fully opaque or fully transparent. It's a real saving on icons with soft anti-aliased edges, and it makes those edges hard — good for pixel art and sprite work, wrong for a logo that sits on varying backgrounds.
One honest limitation
A browser canvas always writes 32-bit truecolour PNG, so this produces a PNG whose pixels use
few colours rather than a true indexed PNG-8 with a palette chunk. You still get most of the
saving, because DEFLATE is what's doing the work either way. For the last slice — a genuine
PLTE-based 8-bit PNG — you need pngquant or oxipng on
your own machine. Pairing this with Remove metadata is worth
a few more percent for free.
FAQ
Why did my file get bigger?
Almost always dithering on a photograph: the added noise costs more than the reduced palette saves. Untick dither, or lower the colour count. The output row shows the delta so you can see it immediately.
How is the palette chosen?
Median cut — the colour cube is split repeatedly along its widest axis until there are as many boxes as you asked for, then each box contributes its average colour. It adapts to the image rather than using a fixed web palette.
Is transparency preserved?
Yes. Alpha is left alone unless you tick the all-or-nothing box, and fully transparent pixels are excluded from the palette so they can't drag it toward black.
Can I get a specific palette instead?
Not here — the palette is derived from your image. To force particular colours, use Change color to remap them individually.