Quantize PNG
Nothing found — try another word.
Reduces the image to k colors via median-cut palette. Transparent pixels are preserved.
Nothing found — try another word.
Nothing found — try another word.
Nothing found — try another word.
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.
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.
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.
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.
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.