What Are Levels in Image Editing?

The Levels tool is a fundamental feature in image editing software designed to correct exposure, balance contrast, and remove color casts by adjusting an image's tonal range. This article explains how Levels function, focusing on the histogram, the manipulation of shadows, midtones, and highlights, and how editors use this tool to restore dynamic range and achieve natural, balanced visuals.

Understanding the Histogram

At the core of the Levels tool is a histogram, a visual graph representing the distribution of pixels across an image from pure black (left) to pure white (right). The height of the graph indicates the concentration of pixels at each luminance value. When an image is improperly exposed, the histogram often bunches toward one side or fails to stretch across the full tonal spectrum, resulting in a dull or flat appearance.

Setting Black and White Points

The primary function of Levels is establishing the proper black point and white point to maximize dynamic range:

  • Black Point Slider (Input Shadows): Moving this slider to the right redefines where pure black begins. Any pixels at or to the left of this slider become absolute black. This eliminates muddy shadows and deepens dark tones.
  • White Point Slider (Input Highlights): Moving this slider to the left redefines pure white. Any pixels at or to the right of this point become absolute white. This brightens dull highlights and restores crisp lighting.

Aligning these sliders with the edges of the histogram data ensures the image utilizes the entire contrast range from true black to true white.

Adjusting Midtones (Gamma Correction)

The center slider controls the midtones, or gamma. Unlike linear exposure tools, adjusting the midtone slider shifts the balance between shadows and highlights without clipping the extreme values:

  • Sliding to the left redistributes pixel brightness to lift overall exposure and reveal shadow details.
  • Sliding to the right compresses tones downward, darkening the image to create mood or add density.

Because the black and white points remain anchored, midtone adjustments preserve highlight details and shadow depth.

Color Cast Correction

Beyond global luminance, Levels can be applied to individual color channels—typically Red, Green, and Blue (RGB). By selecting an individual channel, an editor can adjust its specific tonal balance:

  • Correcting an unnatural blue tint by adjusting the blue channel's sliders.
  • Neutralizing yellow or magenta casts in indoor photography.
  • Setting neutral gray points using dedicated eyedropper tools to automatically balance RGB values.

Controlling Output Levels

Most Levels tools also include "Output Levels" sliders at the bottom of the interface. While input levels compress or expand tones, output levels set absolute limits on brightness and darkness:

  • Reducing the white output slider prevents highlights from exceeding a certain brightness, useful for preventing blown-out areas during commercial printing.
  • Raising the black output slider lifts the deepest blacks, preventing heavy shadow clipping or creating a vintage, faded matte look.