Image Histogram Viewer

See the red, green, blue and brightness histograms of any image, counted over every pixel, with mean, median, percentiles, clipping and colour balance for each channel.

Viewer Media & Files Updated Oct 16, 2026
How to Use
  1. Drop an image on the box, click to browse, or paste one. TIFF, PSD, HEIC, TGA and camera RAW files open too. A built-in sample is loaded so you can see a histogram straight away.
  2. Tick the channels to draw: red, green, blue and luma (brightness). Choose Rec. 601 or Rec. 709 weights for luma.
  3. Tick Log scale to see small spikes, such as a few clipped pixels, next to tall peaks.
  4. Read the statistics in Show Work: mean, median, spread, percentiles and clipping for each channel, and the colour balance. Click the picture to see where one pixel falls.
  5. Save the chart as an image from the Save panel, for notes or a report.
Image & Channels
Presets
Histogram
Click the picture to place one pixel in the distribution.
Mean Brightness
—
Median
—
Shadows Clipped
—
Highlights Clipped
—

Worked Example

Reading clipping. A 4000 × 3000 photo has 12,000,000 pixels. If 360,000 of them have at least one channel at 255, Highlights Clipped reads 3.0% and the channel curves pile up against the right edge. All those pixels share the same value, so whatever detail the clouds or the white shirt had is gone; a darker exposure, or Levels on the original raw file, is the only fix.

Spotting a colour cast. A photo of a grey wall should give three nearly equal channel means. Suppose Show Work reports mean R 142.6, G 128.1 and B 109.9: red sits 14.5 above green and blue 18.2 below it, so the picture has a warm, yellow-orange cast. On the histogram the red curve is shifted right of green and the blue curve left.

The common mistake: checking clipping on the luma curve alone. Luma mixes the channels, so a pure red (255, 0, 0) has a luma of only 76 in Rec. 601. A sunset whose red channel is blown out to 255 can show no spike at all at the right end of the luma histogram. Always look at the red, green and blue curves, or the Clipped readouts, which test every channel.

Show Work

Load an image to see its statistics channel by channel.

Formulas

Histogram
h(v) = number of pixels with value v
v = 0…255, for each of R, G, B and luma
Luma
Y601 = 0.299R + 0.587G + 0.114B
Y709 = 0.2126R + 0.7152G + 0.0722B
Rounded to the nearest whole number for its bin
Mean and spread
μ = Σ v·h(v) ÷ N
σ = √(Σ h(v)(v − μ)² ÷ N)
N = pixels counted (fully transparent ones left out)
Median and percentiles
pk = lowest v with Σu≤v h(u) ≥ k% × N
Median = 50th; the 1st and 99th show the useful range
Log scale
height ∝ ln(1 + h(v))
Every curve on one shared scale, normal or log

Reading a Histogram

An image histogram is a graph of the tonal distribution of a picture: the horizontal axis runs from dark on the left through the midtones to light on the right, and the height at each point is the number of pixels with that tone. A very dark image has most of its pixels on the left and in the centre, a bright one on the right and in the centre. Photographers use it to see at a glance whether detail has been lost to blown-out highlights or blocked-up shadows.

Image editors draw the same graph while you edit, and tools such as Levels and histogram equalisation work directly on it. In computer vision the peaks and valleys of a histogram are used to pick thresholds for separating objects from their background. One caution: for a camera raw file, the histogram of the decoded picture only approximates the range in the raw data.

About This Tool

This tool counts every pixel of the image at full size into red, green, blue and luma histograms, draws them on a shared normal or log scale, and reports mean, median, standard deviation, range, percentiles and clipping per channel, the colour balance, and where any pixel you click sits in the brightness distribution. The chart can be saved as an image. Settings can be put in the page address, for example ?l=1&luma=709.

Images are decoded in your browser by the engine behind the Universal Image Converter, so TIFF, PSD, HEIC, TGA and RAW files work too. Nothing is uploaded.

Related tools: Levels & Auto-Contrast, Image Adjustments, and Image Channel Splitter.

Frequently Asked Questions

What does an image histogram show?

For each value from 0 (left, dark) to 255 (right, light) it shows how many pixels have that value. A dark photo piles up on the left, a bright one on the right, and a low-contrast one forms a narrow hump in the middle. Each of red, green and blue has its own histogram, and luma combines them into one brightness value.

Which luma formula is used?

You choose. Rec. 601 uses Y = 0.299R + 0.587G + 0.114B and Rec. 709 uses Y = 0.2126R + 0.7152G + 0.0722B. They disagree most on saturated colours: pure green is 150 in Rec. 601 but 182 in Rec. 709, and pure blue 29 against 18.

How do I spot clipped highlights or shadows?

Look for a spike pressed against the right edge (255) or left edge (0) of a colour channel, and read the Clipped readouts: the share of pixels with any channel at 255 or at 0. Every clipped pixel has lost its detail. Check the RGB channels, not just luma, because a clipped colour can have a middling luma.

What does the log scale do?

It plots log(1 + count) instead of the count, so small bars become visible. A bin with 10 pixels next to one with 100,000 is 0.01% of the height on the normal scale but 21% on the log scale, which is how a thin line of clipped pixels shows up.

Are all pixels counted, including transparent ones?

Every pixel is counted at full size, even for very large photos; nothing is sampled or shrunk. Fully transparent pixels are left out, because their colour is never seen, and the number left out is shown in Show Work.

How do I use the Image Histogram Viewer?

Simply type your numbers and read the result, which refreshes the instant you change something. There is nothing to submit and nothing to wait for.

Does it cost anything or need an account?

No. The tool is completely free, there is no account to create, and it keeps working offline after the page first loads.

Is anything I type uploaded?

No. The tool works entirely on your device, so the values you enter never leave your browser.

Common Use Cases

Check exposure

A spike at 255 covering 3% of a 12-megapixel photo means 360,000 pixels have lost their highlight detail.

Find a colour cast

On a grey wall, mean red 14.5 above green and blue 18.2 below means a warm, yellow-orange cast to correct.

Before and after an edit

Compare the histogram of a scan before and after Levels to see the range stretched from 30–225 to 0–255.

Threshold for a mask

A clear valley between two peaks in luma is a good threshold for separating subject from background.

Last updated: