EditSafely

Quantize a PNG File

Repaint a PNG with only its most representative colors, with optional dithering.

Runs on your device, nothing uploaded

Drop images anywhere on this page

or paste with Ctrl / ⌘ + V ·

Accepts PNG · several at once

Your PNG files never leave this tab

Quantize a PNG File is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, 200 photos straight off a camera means 1.6 GB uploaded, a wait in somebody's queue, and 240 MB downloaded again. Here it means 0 bytes up and 0 bytes down.

  • No upload
  • No file size limit
  • Works offline once loaded
  • Nothing stored or logged

How to use Quantize a PNG File

  1. 1. Drop in your PNG. Add the PNG you want to reduce, or a batch. The palette is computed in your browser and the pictures are never uploaded.
  2. 2. Choose the palette size and dithering. Set how many colors to keep, from 2 to 256. Dithering mixes nearby palette colors in a fine pattern so gradients still look smooth with few colors.
  3. 3. Download the quantized PNG. The result is a PNG painted only with the chosen number of colors. Compare it with the original and adjust the slider until it looks right.

When to use Quantize a PNG File

Quantize a PNG File finds the most representative colors in a PNG and repaints every pixel with the nearest one, optionally with Floyd-Steinberg dithering. It is the classic way to make a limited-palette version of an image.

  • Retro and poster styles. Cutting an illustration down to 8 or 16 colors gives a flat poster or retro computer look without drawing anything by hand.
  • Preparing art for limited palettes. Screen printing, embroidery or old game hardware can only use a few colors, and quantizing first shows how the artwork will turn out.
  • Studying an image's colors. A small palette reveals the main color groups in a picture, useful for picking a theme or checking how many inks a design needs.

Examples

16-color poster look

Input

illustration.png + 16 colors + dithering

Output

illustration.png repainted with its 16 most common colors

About the Quantize a PNG File tool

Quantize a PNG File is a free online tool that works entirely inside your web browser. Repaint a PNG with only its most representative colors, with optional dithering. Because the processing happens on your own device, nothing you enter is uploaded, logged or stored anywhere.

This page is one of 292 PNG utilities on EditSafely. Each one does a single job well, and all of them follow the same rule: your input stays on your machine.

You can shape the output with 2 settings, including Palette size and Floyd–Steinberg dithering; the result is redone automatically when you change one. The finished file is put together in browser memory and saved with the Download button, so it never touches a server on the way to your disk. A worked example further down the page shows exactly what the tool produces for a real input.

Because nothing leaves your device, the tool is suitable for sensitive images such as ID scans, screenshots of internal systems or personal photos. It is also quick, since the pixels are processed on your own machine rather than by a remote API.

Frequently asked questions

Is Quantize a PNG File free to use?

Yes, it is completely free. All 2,943 tools on EditSafely work without an account, a subscription or usage limits.

Are my files uploaded to a server?

Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.

Which files does Quantize a PNG File accept?

It accepts PNG images. There is no file size cap imposed by a server; very large files are limited only by your device's memory.

Do I need to sign up or install anything?

No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.

How do I save the output?

Click the Download button once the result is ready. The file is built in your browser's memory and handed straight to your downloads folder, without passing through a server.

Related tools

All PNG Tools →