EIT easy-image-tools / Quantize PNG

Quantize PNG

Reduces the image to k colors via median-cut palette. Transparent pixels are preserved.

Nothing found — try another word.

01

Quantize PNG

Nothing found — try another word.

Color count

Nothing found — try another word.

Preview
Source
Drop a PNG here or click / paste (Ctrl+V) — processed locally
Result
no result yet

Quantize reduces an image to a chosen number of colors. The tool samples the pixels, groups them into buckets by repeatedly splitting the bucket with the widest spread down its longest channel, takes each bucket's average as one palette entry, and repaints every pixel with the nearest of those entries. Fully transparent pixels are skipped rather than treated as black, so cut-out graphics survive the reduction. Everything happens in your browser, and the alpha channel is preserved.

  • Runs entirely in your browser: no upload, no server, no signup.
  • Any color count from 2 to 64 — the free-form version of the preset reducer.
  • Median-cut: the palette is derived from the image itself.
  • Fully transparent pixels are skipped, so cut-outs survive.
  • To name the exact colors use the custom palette tool.
  • Free with no daily limit, no watermark and no account, also for commercial use.

How to use it

  1. Drop the image into the source area, or pick a file from your device.
  2. Set Color count between 2 and 64; 16 is the starting point.
  3. Go lower for a strong graphic look, higher to keep more of the original detail.
  4. Download the result from the Download button.

Questions

How is this different from the decrease color count page?

That page is the same algorithm behind fixed presets named after the usual compression levels, which is convenient when you just want a known loss level. This one is the free-form version: any number from 2 to 64.

What happens to the colors that get dropped?

They are replaced by whichever surviving color is nearest, measured as distance in red, green and blue. Close pairs merge and end up slightly wrong; colors far apart stay recognizable.

Why does it look patchy?

That is the usual result of reducing a smooth gradient: broad flat areas appear where the original had a gentle change. The dithering tool trades the patches for a speckled texture that reads as continuous tone.

Can I choose the palette myself?

Not on this page - the palette is derived from the image. To decide the exact colors, list them as hex codes in the custom palette tool, and to keep the banding out of a photograph add the dithering tool after.

Related tools