Layer masks explained: edit without deleting anything

Last updated: 2026-10-11

A layer mask is a grayscale picture attached to a layer. Where the mask is white the layer is visible, where it is black the layer is hidden, and gray values are partly transparent. Because nothing is deleted, you can change your mind at any time.

Add a mask

Select the layer and choose Layer → Layer mask → Reveal all, or click the mask button at the bottom of the Layers panel. A white thumbnail appears next to the layer thumbnail. To start with the layer hidden instead, choose Hide all. If you already have a selection, Reveal selection creates a mask from it.

Paint on the mask

With the mask thumbnail selected, any brush paints on the mask instead of on the picture. Painting black hides, and painting white reveals. The foreground color decides which: a dark color hides, a light color reveals. Press X to swap black and white while you paint. A soft brush gives smooth edges, and a hard brush gives sharp ones.

Blend two photos

  1. Open the first photo, then place the second one as a new layer above it.
  2. Add a mask to the top layer using Reveal all.
  3. Choose the Gradient tool, set it to black-to-white and drag across the area where the photos should fade into each other.
  4. Refine the transition with a soft brush.

Useful mask commands

Common problems

If painting appears to do nothing, check that the mask thumbnail, not the picture thumbnail, has the highlighted frame. If the whole layer disappeared, the mask was probably created with Hide all or you painted black over everything; press Ctrl Z or fill the mask with white.

More guides

Open the editor