Layer masks control the visibility of layers in image editing: black hides areas, white reveals them, and gray makes them partially visible. Masks are non-destructive and can be adjusted at any time. Tools and AI-powered features can be used to create precise masks and refine them in the “Select and Mask” dialog. Lower brush pressure creates more natural transitions.
Category: Photography – Advanced Topics > 11. Advanced Image Editing Article ID: 11.3 Created: May 2026
The essentials at a glance
- Layer masks control which areas of a layer are visible or invisible—with black (hide), white (reveal), and gray (partially visible)
- Masks are non-destructive: They hide pixels; they do not delete them
- There are different types of masks: simple layer masks, luminosity masks, and color masks for advanced selections
Explanation
What is a layer mask?
A layer mask is a grayscale image linked to a layer that determines which parts of the layer are visible:
- White → Layer fully visible
- Black → Layer fully invisible (hidden, not deleted)
- Gray → Layer partially visible (according to the brightness value)
Important: The layer’s pixels are not changed. The mask is like a curtain—you can move or remove it at any time to see all the pixels again.
Creating and editing a mask
Empty white mask (layer fully visible): In the Layers panel: Select the layer → click the rectangle-with-circle icon at the bottom
Empty black mask (layer fully invisible): Alt-click the mask icon → the mask is black → paint areas with a white brush
Painting on the mask:
- Click the mask in the Layers panel (a white frame indicates the active mask)
- Paint with a white brush → the area becomes visible
- Paint with a black brush → the area becomes invisible
- With a gray brush → partially visible (for smooth transitions)
Keyboard shortcut: X switches between the foreground and background colors (black/white)—useful when masking.
Selection → Mask
The fastest way to create a precise mask:
- Create a selection (Magic Wand, Quick Selection, Object Selection)
- Select the layer → click the mask icon → the selection is automatically converted into a mask
AI-powered selection in Photoshop: “Select Subject” and “Select Sky” create complex selections with one click that serve as the basis for masks.
Refining masks
Raw masks often have hard edges or imprecise borders. In the “Select and Mask” dialog (formerly: Refine Edge):
- Adjust the radius for softer edges
- Smart radius detection for hair and fur
- Smooth, Feather, and Contrast for clean edges
- Output to mask, new layer with mask, or new document
Practical tip
The most important masking habit: Work with low brush pressure (20–40%) and go over difficult edges several times instead of once at 100%. This creates more natural, softer transitions—especially important for hair, fur, and blurry edges. Also: Occasionally view the mask by itself (Alt-click the mask) to check whether the transitions are clean.