Input image
Equalized image

Upload a flat or low-contrast image—the equalized preview appears automatically.

Global histogram equalization stretches each RGB channel using its cumulative distribution—boosting contrast when tones were bunched in a narrow range.

Equalize image online

Equalize images online: global histogram equalization per RGB channel, automatic preview, PNG download in your browser. Boost flat or low-contrast photos.

What is image histogram equalization?

Histogram equalization remaps pixel intensities so the tonal distribution spreads across more of the 0–255 range, which increases perceived contrast. This page builds a histogram and cumulative distribution function (CDF) for each RGB channel, then maps every pixel through that CDF—the standard global equalization used in many online tools. Upload, preview beside the original, and download PNG. All processing runs in your browser with no extra controls.

Histogram equalization features

Global contrast stretch in the browser.

  1. Automatic equalize: One pass from upload—no sliders or apply button.
  2. Per-channel CDF: Red, green, and blue histograms mapped independently.
  3. Side-by-side panels: Compare flat input and equalized output before download.
  4. Alpha preserved: Transparency on PNG uploads is left unchanged.
  5. PNG download: Save as equalize-image.png.
  6. Client-side only: No server upload or account.

How to equalize a photo

Steps for online histogram equalization.

  1. Upload your image: Drop or click in the input panel (15 MB max).
  2. Review the equalized preview: Check that shadows and highlights look balanced—not overdone.
  3. Download PNG: Save the contrast-boosted image for web or further editing.

Tips for equalized images

Better results and realistic expectations.

  1. Try flat sources first: Low-contrast inputs show the biggest improvement.
  2. Watch color shifts: Independent channel equalization can tint skies or skin—compare carefully.
  3. Avoid already punchy photos: High-contrast images may clip highlights or look unnatural.
  4. Pair with brightness: Use /brightness-contrast-image if you need fine control after equalize.
  5. Keep the original: Equalization is destructive—archive your source file first.
  6. Export PNG: Preserve the remapped tones without extra JPEG loss.

When to equalize images

Typical uses for histogram equalization.

  1. Flat phone photos: Recover separation when the whole shot looks gray.
  2. Fog and haze: Stretch tones when atmosphere compressed dynamic range.
  3. Scanned documents: Make faint text and paper texture more readable.
  4. Astronomy and microscopy: Reveal detail in scientifically flat captures.
  5. Quick contrast fix: One step before manual curves in a heavier editor.
  6. Teaching histograms: See how CDF remapping changes a real photo.

Why use this equalize tool

Benefits of browser-based histogram equalization.

  1. No settings: Upload and preview—ideal when you want a fast contrast boost.
  2. Private: Images stay on your device.
  3. Free: Unlimited previews and downloads.
  4. Instant: Equalized output appears as soon as the image loads.
  5. No install: Works in modern browsers with Canvas 2D.
  6. Honest scope: Global equalization only—not local area or CLAHE.

Technical details

How global histogram equalization works here.

  1. Algorithm: Per channel: CDF lookup T(z) = round((cdf(z) − cdf_min) / (N − cdf_min) × 255).
  2. Channels: R, G, B equalized separately; alpha unchanged.
  3. Scope: Whole-image histogram—not tiled or local CLAHE.
  4. Input limits: 15 MB; longest edge 8192 px.
  5. Rendering: Canvas 2D getImageData / putImageData.
  6. Browser support: Chromium, Firefox, Safari with Canvas 2D.

Frequently Asked Questions

Have questions? We have answers.

More tools from Image & Conversion.