Image Histogram
Drop an image to see its RGB and luminance distribution, with per-channel mean, median, and clip-point stats.
How to use
- Drop or pick an image (large images are downscaled to 1024px on the long side so analysis stays fast).
- Toggle between RGB overlay and individual channels.
- Switch to log scale when you have lots of very-bright or very-dark pixels — the tail becomes readable.
About this tool
ShowHide
Builds a 256-bin histogram for the red, green, blue, and luminance channels (using Rec. 709 weights), then plots them at linear or log scale. Useful for spotting clipping at black or white, evaluating exposure, comparing colour casts between two photos, or checking that a generated image hits the dynamic range you expected. Switch to a single channel to see per-channel statistics (mean, median, min, max).
The two ends of the plot are where the useful information sits. A spike hard against bin 0 or bin 255 means pixels were clipped, and clipped pixels have lost their data rather than merely being dark or bright: no amount of later adjustment recovers detail from a region that recorded a single value. A histogram that stops well short of either end, by contrast, means the range is unused and the image can be stretched without losing anything.
Log scale exists because the linear one hides small counts. A few hundred blown highlights in a multi-megapixel image are invisible next to a peak of hundreds of thousands, so a picture that looks clean on the linear plot can still have clipped areas. Switch to log when you are looking for the presence of something rather than its quantity.
Luminance here is the Rec. 709 weighted sum, which is the standard for sRGB and HD video and weights green far above blue because the eye does. It is not the same as the average of the three channels, and it is not perceptual lightness either, so a histogram centred at 128 does not mean the image looks mid-grey.
The counts describe the decoded pixels the browser produced, which is not necessarily what the file holds. A raw file rendered through a different converter, an image with an embedded profile the browser applied, or a photo downscaled for display will all produce different histograms from the same original. Feed it the actual export you care about rather than a thumbnail.
Frequently asked questions
What's luminance and why doesn't it match RGB average?
Luminance weights green much more (≈72%) than red (≈21%) or blue (≈7%), matching human vision per Rec. 709. A flat RGB average overstates blue and red.
Why does my image look clipped?
If the leftmost bin or rightmost bin is much taller than its neighbours, pixels are bunched at pure black or pure white — detail has been lost. Backing off exposure or contrast before re-exporting usually recovers it.
When should I switch to the log scale?
Whenever one bin dwarfs the rest. A photo with a large flat background puts most of its pixels in a few values, and on a linear plot that spike flattens everything else into the baseline. A log scale compresses the tall bins so small counts become visible — the few hundred pixels of a blown highlight, for instance. It changes only the vertical mapping, never the data.
What do regular gaps or end spikes in the histogram mean?
A comb of evenly spaced empty bins means the tonal range was stretched after the image was already quantised: a strong levels or curves move on an 8-bit file spreads 256 available values across a wider range and leaves holes between them. Spikes packed against either end mean clipping, where detail has been flattened to pure black or pure white. Neither is obvious by eye, which is why it is worth reading the histogram before editing further.
Related tools
Image RGB Channel Splitter
Drop an image and split it into its red, green, and blue channels — view each one isolated or as a grayscale intensity map.
Image
Image Compressor
Compress and resize JPEG, PNG, and WebP images in your browser.
Image
Image to Base64
Convert an image to a Base64 data URL you can paste anywhere.
Image
Image Resize
Resize an image to any dimensions and export as PNG, JPEG, or WebP — all in your browser.
Image
Image Rotate & Flip
Rotate an image 90° at a time or flip it horizontally / vertically, then download the result.
Image
Image Crop (Aspect Ratio)
Crop any image to a standard aspect ratio (1:1, 16:9, 4:3, etc.) — centered automatically.
Image