Quantize PNG
Reduce a PNG to a limited number of colors.
Drop an image here
PNG, JPG, WebP, GIF or BMP. You can also paste an image.
No result yet
Options
How to use
- 1
Upload a PNG.
- 2
Set the maximum number of colors.
- 3
Click Download to save.
Example
Before640 × 427

After640 × 427

Frequently asked questions
How are the colors chosen?
Median cut: the colors in the image are split into groups of similar colors, and each group becomes the average of its pixels. The result never has more colors than you set. Transparent pixels keep their transparency.
Is this lossless?
No. Colors are approximated to the nearest palette entry, which changes pixel values.
About this tool
Quantize PNG limits the palette of your image to a target number of colors. This is useful for creating indexed-color images, reducing file size, or preparing sprites for environments with limited palettes. All processing runs locally in your browser. Your image is never uploaded to a server.