Skip to content
Find a tool

Reduce Colors in Image

Cut a picture down to the number of colors you choose and copy the exact palette.

Free · runs in your browser · nothing is uploaded

Open on Outlinecut

This embed was switched off for this website. Open on Outlinecut

Add this tool to your siteFree embed code, no sign-up. Keep the credit link.

Embed this tool

Copy this code into your website, blog or class page. The tool runs inside your page.

Optional settings, added to the address after embed=1: &accent=0f6b5c (colour, 3 or 6 hex digits). Other parameters are ignored.

Please keep the credit link below the tool.

To reduce colors in an image, you pick how many colors it may keep and every pixel is moved to the nearest color in a new, smaller palette. This tool lets you choose between 2 and 64 colors, saves the result as a PNG, and lists the palette as hex codes with the most-used color first. You can switch the palette method, add dithering to soften gradients, and click a swatch to copy its hex code. It works as an image color reducer and a way to limit the color palette of a picture, for example before tracing it, printing with few inks or making flat artwork. Transparent pixels stay transparent.
Reduce colors in image example

How to use the Reduce Image Colors tool

  1. Press Choose image, or drop or paste a picture. The processing engine loads the first time you touch the tool, so the first run may take a moment.
  2. Set Number of colors (2 to 64, default 8). For flat art try 4 or 8 first, then raise it if important details vanish.
  3. Open Palette method and choose Wu (best for flat art), NeuQuant (photos) or RGBQuant. The default is Wu.
  4. Open Dithering and choose None, Floyd-Steinberg, Atkinson or Bayer. The default is None.
  5. Compare Original and Result. Change one setting at a time so you can see what each does.
  6. Read the palette under the preview. The hex codes run from the most-used color to the least-used. Click a swatch to copy its code.
  7. Press Download PNG.

The line under the preview shows the number of colors in the result, which can be lower than the number you asked for when the picture has fewer distinct colors. Images over 2.5 megapixels are reduced to 1,500 px on the long side before processing, so a huge photo comes out smaller than it went in.

Try the same picture with two palette methods before you decide. The palette and the result change together, so the swatches show immediately which colors each method kept.

What is color reduction?

Color reduction rebuilds a picture with fewer distinct colors. The tool first builds a small palette from your image, then replaces every pixel with the closest palette color. A photo with millions of colors can become 8 or 16, which suits flat graphics, icons and artwork that will be traced, printed or stitched.

The palette is built from a sample of at most about 250,000 pixels, but every pixel is mapped, so the whole image is converted.

How do I reduce colors in an image?

Choose a color count, a palette method and a dithering mode, then download the PNG. Start at 8 colors and compare the result with the original.

  1. For flat art, try 4 or 8 colors and raise the number if details vanish.
  2. Use Wu for flat art and NeuQuant for photos.
  3. Leave dithering on None for solid-color art. Switch it on if smooth areas break into bands.
  4. Check the palette list. A color near the bottom is often a few stray pixels, so a lower count may look cleaner.

Which palette method should I use?

Wu suits flat art, NeuQuant suits photos, and RGBQuant works from a color histogram. In the engine tests, Wu and RGBQuant recovered four flat colors exactly. The faster method is not always the better-looking one, so compare the results.

How long does each palette method take?

Times below come from the engine test for 16 colors with Floyd-Steinberg dithering on a 1500 x 1500 px synthetic photo, run once on an M-series Mac. Your browser and device will be slower or faster.

Palette methodMeant forTime, 16 colors with Floyd-Steinberg
WuFlat art526 ms
NeuQuantPhotos309 ms
RGBQuantHistogram-based241 ms

Wu without dithering took 411 ms and with Bayer 421 ms.

When should I use dithering?

Use None for pixel art, logos and other blocks of solid color, because dithering adds speckle. Use Floyd-Steinberg or Atkinson on smooth gradients that look banded, and Bayer when you want a regular pattern.

How is this different from posterize?

Reducing colors picks a palette from your picture, so the colors it keeps are the ones the image uses. Posterizing snaps each color channel to a fixed number of levels, whatever the picture contains. Use Posterize Image when you want that fixed banded look.

Answers to common questions

Is my data safe?

The processing runs in your browser and the page makes no upload request, so the picture is not sent to a server.

Can I download the result as a ZIP?

No. The tool saves one PNG per image with Download PNG.

Why do my colors look different?

Every pixel is moved to the nearest palette color, so shades that are not in the palette change. A higher color count, another palette method or dithering changes the look.

What formats are supported?

The input can be any image your browser can open, and the output is always a PNG. Transparent pixels stay transparent.

Why do I get fewer colors than I asked for?

Palette entries that no pixel uses are dropped, so a simple picture can end up with fewer colors than the slider value.

Can I choose my own palette?

No. The palette is always built from the picture, but you can copy its hex codes and use them elsewhere.

Can I reduce the colors of an SVG here?

No, this page works on pictures and writes a PNG. To get an SVG with few colors, trace the picture with a tool that has a Colors slider, such as Image to SVG for Cricut.

What is a color reducer?

It is a tool that limits how many colors a picture uses. Here you can choose from 2 to 64.