What a histogram shows
A histogram counts image pixels by value. The horizontal axis runs from 0 (dark) to 255 (bright); the vertical axis shows how many pixels have each value. It describes tonal and colour distribution, not where pixels are located or whether an exposure is “correct.”
Why use it?
Use the graph to compare shadow, midtone, and highlight distribution; spot clipped blacks or whites; notice colour casts; and see how exposure changes move pixel values.
Views and scaling
- B&W plots weighted luminance: 0.2126R + 0.7152G + 0.0722B.
- R, G, B isolate one 8-bit colour channel. RGB overlays all three channels.
- Percent · each series scales every channel to its own peak. Percent · common RGB scale uses the largest RGB channel peak as the shared 100% ceiling, so channel heights can be compared directly. Pixel count uses a shared absolute count scale.
- 96th and 98th percentile choose a ceiling method. The RGB scale control chooses Common (one shared ceiling across R, G, and B) or Individual (each channel gets its own ceiling). The default is 98th percentile with Common RGB scaling. Pixel count always uses one shared absolute count scale. Edge clipped ignores bins 0 and 255 when setting the ceiling. Auto switches among Percent, Edge clipped, and 98th percentile; the RGB scale control determines whether channels share a ceiling.
- Square root, Light log, and Logarithmic progressively lift smaller bins.
- Choose Lines or softer, semi-transparent Bars to change the graph drawing style. These display choices do not change the image or CSV counts.
How to use hover
Move over the histogram to inspect pixel counts and highlight matching photo pixels. Choose an exact one-value match, a ten-value range, Keep brighter to darken pixels below the threshold, or Keep darker to fade pixels above it toward white. B&W and combined RGB use luminance as the threshold; R, G, or B use that channel. Match highlights switch to black over bright pixels for contrast.
Exposure shift simulation
The slider applies an approximate linear-light 2EV exposure change to the rendered image and recalculates its histogram. A negative shift can darken clipped white pixels, but they remain flat: the missing texture cannot be recovered from a finished JPEG. The readout compares current clipped-pixel percentages with the source at 0 EV. The original download is never changed.
Clipping zebras
Turn on Clipping zebras below the photo to mark near-clipped areas in the preview. Magenta stripes mark pixels where any RGB channel is 253–255; cyan stripes mark pixels where every RGB channel is 0–2. These warning thresholds are fixed for this teaching view. The marks do not alter histogram counts or the original download; they are included in the annotated photo export while enabled.
App manual
- Choose a photo, drop a file, or click a demo thumbnail. Use Add photos from folder to add photos to the sample gallery; they are saved in this browser. Open image folder loads a photo for analysis only. The B&W preview toggle changes only the displayed photo, using weighted luminance. Match highlights switch to black on bright pixels.
- Select B&W, R, G, B, or RGB to change the histogram view.
- Use Vertical scale, RGB scale (Common or Individual), Graph, and Hover mode beside the histogram. Open the collapsed Exposure simulation to compare exposure shifts. Adjust photo overlay settings below the photo.
- Download the histogram PNG, photo with graph, unchanged original, or exact histogram CSV beneath the preview.
- Open Options below the photo for overlay placement, size, and opacity.
- Open Exam generator at the bottom. Select at least two files or a folder to make one shuffled exam and answer; preview or download each.
Author
Photo Histogram Lab was created by Jean-Paul Tousch. Contact: jean-paul@tousch.lu.
All analysis happens in your browser. Images are not uploaded. Very large images may be downsampled for analysis.