EditSafely

Generate PNG Luminance Histogram

Chart the brightness levels of a PNG from black to white, with the mean, median, range and spread.

Runs on your device, nothing uploaded

Drop an image anywhere on this page

or paste with Ctrl / ⌘ + V ·

Accepts PNG

Your PNG files never leave this tab

Generate PNG Luminance Histogram is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, 200 photos straight off a camera means 1.6 GB uploaded, a wait in somebody's queue, and 240 MB downloaded again. Here it means 0 bytes up and 0 bytes down.

  • No upload
  • No file size limit
  • Works offline once loaded
  • Nothing stored or logged

How to use Generate PNG Luminance Histogram

  1. 1. Add the PNG. Drop a PNG file. Its stored pixel values are read in your browser and each visible pixel is turned into a brightness from 0 to 255.
  2. 2. Read the chart. Dark pixels pile up on the left, bright ones on the right. Switch to the logarithmic scale when one huge peak, such as a plain background, flattens the rest.
  3. 3. Use the numbers. Mean, median, most common level, range and standard deviation sit beside the chart. A low standard deviation means a flat, low-contrast picture.

When to use Generate PNG Luminance Histogram

The luminance histogram shows the tonal range of a picture. Brightness is computed with the Rec. 709 weights (0.2126 red, 0.7152 green, 0.0722 blue), which match how bright each colour looks to the eye. Fully transparent pixels are left out.

  • Checking exposure. A chart crowded against the left edge means an underexposed or dark picture; crowded on the right means overexposed, with highlights at risk.
  • Judging contrast. A narrow hump in the middle means a flat, grey picture. A spread from 0 to 255 means the full tonal range is used.
  • Preparing levels or curves edits. The range figure tells you where the darkest and brightest real pixels are, which is where to set the black and white points in an editor.

Examples

Chart the luminance

Input

image.png

Output

A 256-bar brightness chart plus mean, median and range

About the Generate PNG Luminance Histogram tool

Generate PNG Luminance Histogram is a free online tool that works entirely inside your web browser. Chart the brightness levels of a PNG from black to white, with the mean, median, range and spread. Because the processing happens on your own device, nothing you enter is uploaded, logged or stored anywhere.

This page is one of 292 PNG utilities on EditSafely. Each one does a single job well, and all of them follow the same rule: your input stays on your machine.

You can shape the output with the Height scale setting; the result is redone automatically when you change one. A worked example further down the page shows exactly what the tool produces for a real input.

Because nothing leaves your device, the tool is suitable for sensitive images such as ID scans, screenshots of internal systems or personal photos. It is also quick, since the pixels are processed on your own machine rather than by a remote API.

Frequently asked questions

Does Generate PNG Luminance Histogram cost anything?

Yes, it is completely free. All 2,943 tools on EditSafely work without an account, a subscription or usage limits.

Are my files uploaded to a server?

No data leaves your device. The whole tool is JavaScript that runs inside your browser tab, so there is no upload, no server-side processing and no log of what you did. If you disconnect from the internet after the page loads, it keeps working.

Which files does Generate PNG Luminance Histogram accept?

It accepts PNG images. There is no file size cap imposed by a server; very large files are limited only by your device's memory.

Do I need to sign up or install anything?

Nothing to install and no account needed. Open the page in any up-to-date browser, including on a phone or tablet, and the tool is ready.

Can I save what the tool produces?

Yes. Use the download or copy controls in the output panel to keep the rendered result once it looks the way you want.

Related tools

All PNG Tools →