Image Histogram Analyzer
Inspect an image's RGB and brightness distributions, endpoint counts and exact intensity bins. Download all counts as CSV.
This tool processes its input contents in your browser instead of sending them to a processing service. Page, asset and fixed usage-measurement requests are described on the Privacy page.
Image Histogram Analyzer counts every decoded pixel across 256 RGB and weighted brightness bins and exports the counts as CSV.
How to use it
- 1Choose a JPEG or still PNG.
- 2Review the chart, channel statistics and exact intensity counts.
- 3Download all histogram bins as CSV.
Example
- Input
- An opaque 4 × 1 image containing black, black, white and white pixels.
- Output
- Each RGB and brightness histogram has 2 pixels at level 0 and 2 at level 255. Mean brightness is 127.5.
All four decoded pixels are counted.
What happens to your data
Image decoding and counting run in your browser. The source image, filename, histogram and downloaded CSV are not sent to a processing server.
Last updated November 2026
See how an image's pixels are distributed across brightness and red, green and blue values. Choose a JPEG or still PNG and the chart appears automatically. Switch channels, inspect one exact intensity level or download all counts as CSV.
This histogram analyzer helps compare graphics, check a photo's tonal distribution or examine endpoint values before editing. It is separate from Histogram Maker, which plots a list of numbers you supply.
How it works
The tool counts every decoded pixel in 256 bins from 0 through 255 for red, green, blue and a weighted brightness estimate. Brightness is rounded from 0.2126 × red + 0.7152 × green + 0.0722 × blue using the encoded sRGB components. It describes the decoded image and the selected transparency background.
Transparent and partially transparent pixels are composited on white by default, or black if selected. Each resulting pixel contributes once to every histogram. Fully transparent areas therefore contribute the selected background. The CSV repeats that background choice in each row, alongside the intensity and four counts. No filename or source metadata is included.
The chart scales heights to the largest count in the displayed channel or RGB overlay. Changing the displayed channel does not alter the data. Statistics show the mean, observed range, and counts exactly at 0 and 255. These endpoint values can be intentional, such as pure black text or a white background. They cannot establish whether a camera lost highlight or shadow detail. No RAW, HDR, sensor or exposure-recovery analysis is performed.
Supports one still JPEG or PNG through 8-bit, up to 20 MiB, 16 million decoded pixels and 8,192 pixels per side. Browser decoding, source color profiles and compression can affect the pixels being counted. All analysis happens in the tab and the image is left unchanged.
Worked example: Count black and white pixels
- Input
- An opaque 4 × 1 image containing black, black, white and white pixels.
- Result
- Each RGB and brightness histogram has 2 pixels at level 0 and 2 at level 255. Mean brightness is 127.5.
All four decoded pixels are counted.
Common use cases
- Compare the tonal distributions of two exported graphics
- Inspect how transparent backgrounds affect an image's histogram
- Export RGB bin counts for a spreadsheet or image-processing check
- Check exact black and white endpoint counts in a diagram
Frequently asked questions
Does the analyzer count every image pixel?+
Yes. Every decoded pixel is composited on the chosen white or black background and counted once in each histogram. The tool does not take a reduced-resolution sample.
Why do endpoint counts change with the background?+
Transparent pixels become the selected background for analysis. A fully transparent pixel contributes white at level 255 or black at level 0, depending on that choice. Partly transparent colors are blended before counting.
Do values at 0 and 255 prove the photo is clipped?+
No. A graphic may intentionally contain exact black or white. The counts describe the decoded result and do not determine whether the original camera captured recoverable detail.
Can I inspect exact counts without a mouse?+
Open Inspect an exact intensity level and type a value from 0 to 255. The readout lists all four counts. The CSV contains the same full set of bins.
Standards and limitations
Related tools
Image Palette Extractor
Extract representative colors from a local photo and download a reusable CSS, JSON or SVG palette.
Image Threshold
Convert an image to two-tone black and white, with a threshold and explicit alpha controls.
Image Color Picker
Pick original image pixels by coordinates, inspect HEX and RGBA, and export local swatches.
Image Color Replacer
Swap a color in a JPEG or PNG, adjust matching tolerance and export a full-size transparent PNG. Everything runs in your browser.