About Image Histogram Viewer
A histogram shows how many pixels sit at each brightness from black (0) to white (255). It answers questions a screen can hide: are the highlights blown, are the shadows crushed, is the picture really as dark as it looks on a dim phone?
Drop in a photo to see four histograms side by side, switch to a logarithmic scale to spot small counts next to a tall peak, and read the figures underneath: mean and median brightness, how far the median sits from middle grey in stops, the share of shadows, midtones and highlights, and which channels clip. The counts can be saved as CSV for a spreadsheet.
How it works
- The first frame of the image is decoded, upright, and every pixel that is not fully transparent is counted into 256 bins for red, green and blue.
- Luminance uses the Rec. 601 weights (0.299 red, 0.587 green, 0.114 blue) on the stored values, the brightness most image editors chart.
- A channel is reported as clipped when 0.5% or more of its pixels sit at exactly 0 or 255, where any detail they had is gone.
- Stops from middle grey compare the median luminance, converted to linear light, with 18% grey: +1 stop is twice as bright.
Questions
What does a good histogram look like?
There is no single right shape. A snowy scene should lean right and a night scene left. What usually matters is the ends: a tall spike at 255 means highlights lost to white, and one at 0 means shadows lost to black.
Why do the colour channels clip when luminance does not?
A bright red flower can have its red channel at 255 while green and blue stay low, so its luminance is moderate. The colour detail in that red is still lost, which is why each channel is checked on its own.
Does it read RAW files?
No. It reads JPEG, PNG, WebP, AVIF, GIF, BMP and HEIC everywhere, and TIFF in Safari. A JPEG has already been processed by the camera, so its histogram can differ from the RAW file’s.
Is there a size limit?
Files up to 200 MB and pictures up to 40 megapixels, or about 16.7 megapixels on browsers with a smaller canvas such as Safari on iPhone. Larger pictures are refused with a message before they are read.
Is my photo uploaded?
No. The image is decoded and counted by your browser, in a background worker on your own device, and nothing is sent anywhere.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.