Image Color Counter
Count the number of unique colors in any image and list the most common ones — runs 100% in your browser, no upload.
Drop an image here or click to browse
🔒 Colors are counted in your browser — nothing is uploaded.
Count every unique color in an image
Upload a PNG, JPG, WebP, or GIF and this tool reads every pixel to report exactly how many distinct RGB colors it contains, then lists the most common ones with their hex codes and pixel counts. It is handy for checking whether an image fits an indexed palette, auditing an icon or logo before exporting, estimating file complexity, or grabbing the dominant colors for a design system.
How the counting works
Each pixel's red, green, and blue channels are combined into a single color key, and identical colors are tallied together. Fully transparent pixels are ignored so empty areas never show up as a false black. The result is exact — not an estimate — because every pixel is inspected. Click any swatch's copy button to grab its hex code.
Frequently asked questions
Is my image uploaded to a server?
No. The image is decoded and analyzed entirely in your browser using the canvas API. Nothing is sent anywhere and nothing is stored.
Does it count transparent pixels?
Fully transparent pixels (alpha 0) are skipped so they don't register as black. Semi-transparent pixels are counted by their RGB value.
Why do photos have so many unique colors?
Photographs and lossy JPEGs contain subtle gradients and compression noise, so almost every pixel is slightly different — tens of thousands of unique colors is normal. Flat graphics and icons have far fewer.