Pixel Counter

Count the pixels in any image: dimensions, megapixels, unique colors, the top colors, and pixels per color with adjustable tolerance.

or browse filesdrop an image here or paste

Total pixels - - · -
Unique colors-

Top colors

Click the image to count a color

Count the Pixels in Any Image

Drop in a JPG, PNG or WebP and this pixel counter reports the numbers instantly: the exact dimensions, the total pixel count with thousands separators, and the equivalent in megapixels. A 4032 × 3024 phone photo resolves to 12,192,768 pixels, or about 12.19 MP, the moment it loads. There is nothing to configure for the basic count, which makes the tool the fastest answer to how many pixels an image actually contains, whether you are checking a print resolution requirement, a stock photo submission rule, or a device spec claim. One button copies every statistic as a clean text report for a spec sheet or a bug ticket.

Top Colors and Unique Color Count

Counting pixels is only half the story, so the panel also analyzes what those pixels contain. Photos show their most frequent colors with share bars and exact percentages. Images with a real palette get more: when a picture uses 48 colors or fewer, which covers sprites, charts and craft patterns, the panel lists every single color with its HEX value, its exact pixel count and its percentage, the complete inventory that cross-stitch, perler bead and diamond painting planners need. Transparent areas of a PNG are counted as their own entry rather than polluting the color list, and clicking any color highlights everywhere it appears in the image.

Count Pixels by Color with Adjustable Tolerance

To measure one specific color, click it directly on the image. Every matching pixel is counted, reported as both an absolute number and a percentage, and tinted with an overlay so the match is visible at a glance. The tolerance slider decides how strict the match is: at 0 only the identical RGB value counts, while higher values include neighboring shades using distance in RGB space. Track several colors at once to compare coverage, a workflow that fits quality control, UI coverage measurements, green screen checks, microscopy counts and vegetation analysis in aerial photos.

A Pixel Art Counter Built In

Pixel art is usually exported upscaled, so a 32 × 32 sprite arrives as a 512 × 512 file and every art pixel covers a 16 × 16 block of screen pixels. This tool detects that automatically: when an image is a cleanly scaled pixel art PNG, a dedicated row shows the true grid, the scale factor and the count of art pixels rather than screen pixels. Nothing needs to be configured, the row simply appears when a grid is found, which makes counting the real blocks of a sprite or checking that an export used a whole-number scale a one-step job.

Exact Numbers, Processed Privately

Images up to 4 megapixels are measured pixel for pixel, and larger ones are analyzed on a 4 MP nearest-neighbor sample with the estimated values clearly marked, while dimensions and the total count always come from the real file. Everything runs in your browser: the image is never uploaded and no server ever sees it, so confidential screenshots, client designs and personal photos stay on your machine from the first pixel to the last.

Frequently Asked Questions About Counting Pixels

How many pixels are in my image?

Multiply the width by the height. A 1920 × 1080 photo has 2,073,600 pixels, about 2.1 megapixels. This pixel counter reads the real dimensions of your file and shows the exact total the moment the image loads.

How do I count pixels of a specific color?

Click that color directly on the image. The tool counts every matching pixel, shows the count and its percentage of the whole image, and highlights the matched areas with an overlay so you can verify the result visually.

What does the tolerance slider do?

It controls how similar a pixel must be to count as a match, measured as distance in RGB color space. At 0 only the exact color counts, which suits logos and flat graphics. Raising it includes nearby shades, which photographs need because lighting varies the same surface across many pixel values.

Can it count pixel art blocks instead of screen pixels?

Yes, automatically. When an image is a cleanly upscaled pixel art PNG, the tool detects the block size and shows the true art grid, for example 32 × 32 at 16× scale. Exports recompressed as JPG usually break the detection because compression blurs the block edges.

Is my image uploaded when I count its pixels?

No. The image is opened and analyzed entirely in your browser, and every statistic is computed on your device. Nothing is transmitted to any server, so private photos and unreleased designs stay on your machine.