Adobe Photoshop logoAdobe Photoshop Beginner 15 min

How to Use Layer Masks in Photoshop (The Non-Destructive Way)

Layer masks let you hide and reveal parts of an image without deleting a single pixel. Here is the complete beginner workflow I use on every client project.

Layer Masks: Non-destructive editing – Adobe Photoshop cover image

Key takeaways

  • A layer mask hides parts of a layer without deleting pixels: black hides, white reveals, grey is partly see-through.
  • Add one with the Add layer mask button at the bottom of the Layers panel.
  • Press D for default colours and X to swap black and white while painting on the mask.
  • Combine Select Subject and Select and Mask for fast, clean cut-outs, even around hair.

If you have ever erased part of a photo and then wished you could get it back, layer masks are for you. A mask is a black-and-white “stencil” attached to a layer. It decides which parts of that layer are visible, and it never deletes anything. Almost every composite, product mockup and social graphic I build in Photoshop relies on masks.

How a layer mask works

A layer mask is a greyscale image that sits next to the layer thumbnail in the Layers panel. Photoshop reads it with one simple rule:

  • White reveals the layer.
  • Black hides the layer.
  • Grey partly hides it, so the darker the grey, the more transparent the result.

Because the original pixels stay untouched, you can change your mind at any point. That is the whole idea of non-destructive editing.

Step 1: Add a layer mask

  1. Select the layer you want to mask in the Layers panel.
  2. Click the Add layer mask button (the rectangle with a circle) at the bottom of the panel.
  3. A white thumbnail appears next to your layer. White means everything is still visible.

Pro tip: Hold Alt (Windows) or Option (macOS) while clicking Add layer mask to create a black mask that hides everything. It is handy when you only want to reveal a small area.

Step 2: Paint on the mask

  1. Make sure the mask thumbnail is selected (it gets a thin frame), not the image thumbnail.
  2. Choose the Brush tool (B) and use a soft, round brush.
  3. Press D to reset to black and white, then X to swap between them.
  4. Paint with black to hide areas, and with white to bring them back.

Lower the brush opacity or flow to build up soft, gradual blends. This is how you fade one photo into another, or make a shadow fall naturally behind a product.

Step 3: Make fast, accurate masks with selections

Painting by hand is great for blends, but for cut-outs let Photoshop do the heavy lifting:

  1. Go to Select > Subject. Photoshop’s AI detects the main subject.
  2. With the selection active, click Add layer mask. Everything outside the selection is hidden.
  3. To refine edges, choose Select > Select and Mask. Use Refine Hair or the Refine Edge Brush on hair and fur, then output to a new layer mask.

Useful mask shortcuts

ActionWindowsmacOS
View the mask on its ownAlt + click mask thumbnailOption + click mask thumbnail
Turn the mask off and onShift + click mask thumbnailShift + click mask thumbnail
Invert the maskCtrl + ICmd + I
Default colours / swap coloursD / XD / X

Layer masks vs clipping masks

A layer mask controls the visibility of one layer. A clipping mask uses the shape of the layer below to clip the layer above, which is perfect for putting a photo inside text or a shape. Create one by holding Alt (Windows) or Option (macOS) and clicking the line between two layers, or with Layer > Create Clipping Mask.

Watch out: If your brush strokes show up as black paint on the image, you are painting on the image thumbnail. Click the mask thumbnail first.

Practice idea

Take two landscape photos, stack them, add a mask to the top one and paint a soft black gradient across the horizon. In five minutes you will have a dreamy double-exposure blend, and you will understand masks for good.

Frequently asked questions

What is the difference between a layer mask and the Eraser tool?

The Eraser permanently deletes pixels. A layer mask only hides them, so you can paint with white at any time to bring them back. That is why designers call masking non-destructive.

How do I see the mask itself?

Hold Alt (Windows) or Option (macOS) and click the mask thumbnail in the Layers panel. Click it again the same way to return to the normal view.

Written by

Ain Ali

Ain Ali is an entrepreneur and professional graphic designer specialising in logo design, branding, website design, app design and UI/UX in Figma, and the founder of techngraphic.com.

More about Ain

Ask a question or leave a tip

Your email address will not be published.

Keep learning