DevTools Logo

Image Histogram Analyzer

Image Histogram Analyzer

Plot RGB and luminance tone distributions, clipping percentages and exposure statistics — entirely in your browser.

Runs in your browser

Image & analysis options

no image

Drop in a photo; decoding and binning happen locally.

Histogram & tonal statistics

waiting for an image

Load an image to see its tonal distribution

Examples

Blown sky

Input
Phone photo → RGB overlay → read highlight clipping
Output
R highlight clip above 0.5%

One channel clipping first is the classic sign of a warm, overexposed sky.

Teaching distributions

Input
Synthetic gradient → Export CSV
Output
256 rows of counts

CV students can plot the raw bins without instrumenting a canvas.

Transparent PNG audit

Input
PNG with alpha → composite over white
Output
No fake black clipping

Compositing resolves transparent pixels before binning instead of reading their hidden RGB.

About this tool

The Image Histogram Analyzer plots 256-bin distributions for red, green, blue and Rec. 709 luminance in a single pass over the decoded pixels. It is a tone-analysis tool: clipping percentages, mean, standard deviation, median and min/max answer exposure and contrast questions that a palette extractor cannot.

Switch between an overlaid RGB view and individual channels, use a logarithmic y axis for skewed distributions, and choose BT.601 instead of Rec.709 when working with legacy video material. Transparent pixels can be composited over white or black before binning so fully transparent RGB values do not create fake black clipping.

By default the analysis uses a resampled copy no larger than 1024 px and says so; enable full-resolution mode for exact counts on images up to 30 MP. Hover the plot to inspect a bin, click the preview to sample a pixel, and export all four bin arrays as CSV. No pixels leave the browser.

What this tool does not do

  • Histograms are 8-bit sRGB; 16-bit sources are downconverted by the browser.
  • Full-resolution analysis is blocked above 30 MP to protect tab memory.
  • Animated images contribute only their first frame.
  • This tool analyzes tone only — it does not extract palettes or edit pixels.

How to use this tool

  1. Load a photo

    Pick any browser-decodable image. The preview shows the file name and whether proxy or exact analysis is active.

  2. Choose a channel view

    Luminance gives one exposure curve; RGB overlay shows channel balance; individual channels isolate a cast.

  3. Inspect clipping

    Highlight and shadow percentages near 0 or 255 warn about lost detail. Values above 0.5% are highlighted.

  4. Read the statistics

    Mean and median describe the center; standard deviation drives the advisory low/normal/high contrast band.

  5. Export the bins

    CSV export writes level, R, G, B and luma counts for all 256 levels — handy for teaching or spreadsheets.

Use cases

Exposure checks

Spot clipped highlights and crushed shadows before editing elsewhere.

Channel-balance review

See which color channel dominates a scene or a UI screenshot.

Computer-vision teaching

Show how 8-bit tone distributions and luma weights work with exact bin counts.

Plots and statistics

ItemDefinition
RGB overlayThree additive channel curves on a shared 0–255 x axis
LuminanceRound(0.2126R + 0.7152G + 0.0722B); BT.601 optional
ClippingShare of pixels at 0 or 255 per channel, with a 0–5 tolerance
Mean / stddevArithmetic mean and sqrt(max(0, Σx²/n − μ²))
MedianFirst 256-bin whose cumulative count reaches half the pixels
Contrast bandLuma stddev <25 low, 25–60 normal, >60 high (advisory)

Proxy mode resamples to at most 1024 px, which can smooth narrow clipped regions; use full-resolution mode when exact percentages matter.

Frequently asked questions

What do clipped highlights mean?

A channel is clipped when its pixels sit at 255 and therefore carry no detail above that level. The highlight percentage tells you how much of the frame has already lost information there. A small amount in one channel is often harmless; more than about 0.5% usually warrants a lower exposure or a softer light source.

Which luminance formula is used?

The default is Rec. 709 luma: round(0.2126R + 0.7152G + 0.0722B), the weights used by modern video and cameras. You can switch to BT.601 (0.299/0.587/0.114) for legacy television material and compare the resulting curve directly.

Why use a logarithmic y axis?

Real photos often put most pixels in a few bins, making the rest of the histogram look flat. Log scale compresses the tall peaks so small but meaningful distributions stay visible. It changes only the plot height, never the underlying counts or statistics.

Is proxy mode accurate enough for clipping checks?

Proxy mode resamples to at most 1024 px, which can average away a very thin blown highlight. The proxy label is shown in the panel header. Turn on full-resolution analysis for exact percentages on images up to 30 MP; beyond that the tool asks you to downscale first.

How are transparent pixels handled?

By default the tool composites them over white before binning, which matches how most viewers display PNGs with alpha. You can switch to black or raw RGB. Raw RGB may show false black clipping because fully transparent pixels often store zero color values.

Is my photo uploaded?

No. Decoding, binning, plotting and export all run in the browser tab. The CSV contains numbers you already saw on screen, and no pixel data is sent anywhere.