← All text tools

Reduce number of colours in an image

Cut a picture to between 2 and 256 colours with median cut or posterize, see the resulting palette as hex codes and compare PNG sizes.

  • Free
  • No sign-up
  • Works on any device

About Reduce number of colours in an image

Fewer colours make a flat, graphic look and can shrink indexed files such as GIF. This tool reduces a picture to the number of colours you choose, from 2 to 256, either by median cut, which finds the best palette for the picture and can dither the edges, or by posterize, which uses even steps per channel. You see the resulting palette as hex codes, the exact count of colours used, and a table of PNG sizes at 2, 4, 8 up to 256 colours.

How to use Reduce number of colours in an image

  1. Choose a picture and type how many colours you want.
  2. Pick median cut for the most faithful palette or posterize for a poster look, and switch on dithering if bands appear.
  3. Read the palette and size table, then download the reduced PNG.

Why use this tool?

Also known as

Frequently asked questions

Why is my PNG not much smaller?

Browsers save PNG as full-colour files, even when only 16 colours are used. A dedicated optimiser that writes indexed PNG saves more. The table shows what your browser produces.

What is the difference between the two methods?

Median cut chooses colours that fit your picture. Posterize rounds every channel to fixed levels, so it ignores what the picture contains.

Can I get exactly the number I typed?

Median cut gives up to that many; a flat picture may have fewer distinct colours. The page reports the colours actually used.

Is Reduce number of colours in an image free?

Yes. Reduce number of colours in an image on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

Related tools