Skip to content
Marvin's Toolbox.

Search tools

Type to filter all tools

Image Histogram Viewer

See the RGB and luminance histograms of any image, with per-channel toggles, a linear or logarithmic scale, and exposure stats such as clipped shadows and highlights.

Everything runs locally in your browser. Your data never leaves your device.

Drop an image here

or click to browse (JPEG, PNG, WebP, AVIF, GIF and more)

Very large photos are downsampled to about 4 megapixels before analysis.

About the Image Histogram Viewer

This tool draws the histogram of any image, the same chart you see on a camera back or in Lightroom. Drop in a photo and it counts every pixel into 256 levels for the red, green and blue channels, plus a luminance curve weighted the way your eye reads brightness.

The stats under the chart put numbers on the exposure: mean and median brightness, contrast as a standard deviation, the tonal range in use, and exactly how many pixels are clipped to pure black or pure white.

What you can do

  • Check a photo's exposure from its histogram.
  • Find clipped shadows and blown highlights, with the exact share of affected pixels.
  • View the red, green and blue channels overlaid or side by side.
  • Read the luminance histogram of an image.
  • Switch to a logarithmic scale to inspect sparse shadow and highlight detail.
  • Measure an image's contrast and tonal range.

How to use the Image Histogram Viewer

  1. 1Drop in an image, or click to choose one.
  2. 2Read the histogram. Shadows are on the left, highlights on the right.
  3. 3Toggle the luminance, red, green and blue channels, and switch between the overlay and the per-channel layout.
  4. 4Set the vertical scale to Log when tall peaks hide the rest of the curve.
  5. 5Pick a channel under Exposure to see its mean, median, contrast, tonal range and clipping percentages.

How to read a histogram

The horizontal axis runs from pure black on the left to pure white on the right, and the height at each point is the number of pixels at that brightness. A pile against the left edge means crushed shadows, a spike at the right edge means blown highlights, and a curve that never reaches either end means the photo uses only part of the available range and may look flat.

The aperture, shutter speed and ISO behind an exposure live in the photo's metadata, which you can inspect with the EXIF Editor.

The luminance curve

Luminance is computed with the Rec. 709 weights, roughly 21% red, 72% green and 7% blue, applied to the values as they are stored in the file. That is the convention cameras and photo editors use, so the curve here lines up with the one on your camera back.

Large photos and transparency

Images past about 4 megapixels are scaled down proportionally before counting, so even huge photos chart in a moment. The sample is still millions of pixels, which keeps the shape of the histogram and the statistics practically identical to a full count. Fully transparent pixels are skipped, since they have no visible color.

Pull the dominant colors out of any image as a ready-to-copy palette. Choose how many colors you want, copy each one as HEX, RGB or HSL, and export the whole palette at once.

See and edit the EXIF metadata inside a photo, then download it with your changes or save a copy with all metadata removed, GPS included. It reads JPEG, PNG, HEIC and more, and edits JPEG files.

Copy the EXIF metadata from one photo onto another without changing the destination's pixels. That covers camera model, lens, focal length, exposure, GPS and more. Choose to replace all metadata or only fill in what the source provides.

Draw arrows, boxes, text, highlights and numbered steps on a screenshot, blur or pixelate anything private, crop the result and add a watermark. Undo works as you expect, and the finished image downloads as PNG or JPG or goes straight to your clipboard.

Convert images between JPEG, PNG, WebP and AVIF. Drop in as many as you like, pick a format, and dial in the quality for the lossy ones. When you convert to JPEG, choose the colour that fills any transparency. Live previews, download one or all at once.

Shrink any image with as little quality loss as possible. Pick a WhatsApp, Instagram or Discord preset, or switch to Custom to hit a hard file size or a fixed quality, downscale with aspect-locked resolution sliders, and keep or strip EXIF metadata. Live preview, multiple images at once.