Image histogram — check exposure and clipped highlights

The tool counts how many pixels sit at each brightness level from 0 (black) to 255 (white), draws the result as a chart, and reports the mean, median and share of clipped shadows and highlights.

Live demo · real result from this tool

Drop your image here

or paste with Ctrl+V · nothing is uploaded · add several to process them in one go

Show

Your result appears here — processed on your device.

Processed on your device — nothing is uploaded.

How to use Image Histogram

  1. Choose an image.
  2. Under Show, pick Brightness or Red, green, blue.
  3. Press Analyse.
  4. Read the chart and the figures: Mean brightness, Median, Darkest / brightest, Clipped shadows (pure black) and Clipped highlights (pure white). A message underneath says whether clipping is significant.

What it does and when to use it

A histogram is how photographers judge exposure without trusting a screen that may be too bright or too dim. Use it to check whether a photo is underexposed (everything bunched left), overexposed (bunched right, with clipped highlights), or flat (a narrow hill in the middle). It is also a good before-and-after check: run it, adjust the photo with Image Brightness or Image Gamma, then run it again on the result to make sure you did not push the highlights to pure white.

For questions about the file itself, such as pixel size and format, use Image Info. For the main colours rather than tones, use Dominant Colors.

How it works

The picture is decoded in a Web Worker on your device. Pictures larger than 2,000 px on the long side are scaled down first to keep it quick. For every pixel that is not fully transparent, the tool adds one to the counter for its red, green and blue values and for its brightness, computed with the Rec. 709 weights (0.2126 R + 0.7152 G + 0.0722 B). The chart groups the 256 levels into 64 bars of four levels each and shows each bar as a percentage of all counted pixels. Mean, median, darkest and brightest come from the brightness counts.

Worked examples

We built a 100 × 100 px test image and ran the tool’s own functions: 8,500 pixels of mid-grey (128), 1,000 pure black and 500 pure white.

Figure Result
Mean brightness 121.6
Median 128
Darkest / brightest 0 / 255
Clipped shadows (pure black) 10%
Clipped highlights (pure white) 5%

Both ends are over 2%, and the message warns that more than 2% of pixels are pure white, so highlight detail is lost (the tool reports highlight clipping first).

A typical daylight landscape. If the chart shows a hill that touches neither edge and both clipping figures are near 0%, the message reads “No significant clipping at either end”.

Limits and tips

  • Scaling a very large photo blends neighbouring pixels, so a few isolated clipped pixels may not be counted. Large clipped areas, such as a white sky, still show clearly.
  • The chart reflects the file’s values, not how a particular screen or printer shows them.
  • A histogram cannot tell you whether the photo is in focus.

Frequently asked questions

How do I read the chart?
Left is dark, right is light, and the height of each bar is the share of pixels at that level. A pile against the right edge means bright areas have turned pure white; a pile against the left edge means shadows have turned pure black.
What counts as clipped?
Pixels whose brightness is exactly 0 (pure black) or exactly 255 (pure white). The tool warns when more than 2% of pixels are clipped at either end, because detail in those areas is lost.
Is a histogram bunched in the middle bad?
Not necessarily. Foggy scenes and soft portraits are naturally low in contrast. It only means there are few deep blacks and bright whites. If the photo looks flat, add contrast.
Why use the red, green and blue view?
A single colour can clip even when brightness looks fine, for example a red flower or a blue stage light. The colour view shows each channel as its own line.
Are transparent pixels counted?
Fully transparent pixels are skipped, so the empty background of a cut-out PNG does not distort the chart.

Written by the ToolsRift team · Last updated

Pages are drafted with AI assistance and checked by automated tests. How we write and check pages.

Was this tool useful?

Report a problem

Start typing to search every tool.

↑ ↓ to moveEnter to openEsc to close