← All text tools

Count colours in an image

Count how many unique colours a picture contains and list the most used ones with hex codes, pixel counts and percentages.

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

About Count colours in an image

Every pixel is read and its red, green and blue values are combined into one number, so the count of unique colours is exact, not an estimate. The page lists the most used colours with a swatch, hex code, RGB values, pixel count and share. If the total is 256 or fewer, the picture fits a GIF or PNG-8 palette without loss, which helps when you shrink logos or pixel art. Photos usually contain tens of thousands.

How to use Count colours in an image

  1. Choose a picture; the count starts automatically.
  2. Decide whether fully transparent pixels should be ignored.
  3. Pick how many top colours to list and copy the hex codes you need.

Why use this tool?

Also known as

Frequently asked questions

Why does a photo have so many unique colours?

Noise, gradients and JPG compression make neighbouring pixels differ slightly, so a photo can easily hold hundreds of thousands of distinct values.

Are transparent pixels counted as a colour?

Only if you untick the option. By default fully transparent pixels are skipped and their number is shown separately.

How do I use the 256 colour hint?

If the picture has 256 colours or fewer, saving as GIF or PNG-8 loses nothing. If it has more, those formats must reduce colours and the look can change.

Is Count colours in an image free?

Yes. Count 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