What a mask layer does and why you edit it

A mask layer in Photoshop is a separate channel attached to any layer that controls what parts of that layer show and what parts hide. Instead of permanently deleting pixels, a mask lets you paint areas invisible or visible again without losing the original image. You edit the mask itself — not the photo underneath — by painting on it with black (to hide), white (to show), or gray (to make semi-transparent).

The reason to edit a mask after you create it is straightforward: your first attempt is rarely perfect. You might mask out too much of a subject's edge, leave a halo of unwanted background, or realize you need the hidden part back. Editing the mask takes seconds. Redoing the whole selection and mask from scratch takes minutes.

Key Takeaways

  • Click the mask thumbnail (not the layer thumbnail) in the Layers panel to make sure you are painting on the mask, not the photo.
  • Paint with black to hide more, white to reveal more, and gray to make areas semi-transparent — the mask itself is always grayscale.
  • Use the Brush tool with soft edges and lower opacity to blend mask edges smoothly instead of creating hard lines.
  • Hold Alt (Windows) or Option (Mac) and click the mask thumbnail to see the mask as a full grayscale image, which makes small mistakes easier to spot.

Finding and selecting the mask to edit

Open the Layers panel (Window > Layers if it is not visible). Find the layer with a mask — it will show two thumbnails side by side: the layer thumbnail on the left (showing the photo) and the mask thumbnail on the right (showing a white or gray rectangle). The mask thumbnail has a white border around it when it is selected and ready to edit.

Click the mask thumbnail directly. If you click the layer thumbnail instead, you will paint on the photo itself and ruin it. The white border around the mask thumbnail confirms you are in mask-editing mode. If you see a white border around the layer thumbnail instead, click the mask thumbnail once to switch.

Painting on the mask with the right settings

Select the Brush tool from the toolbox (or press B). Check your foreground and background colors in the toolbox — they should be black and white. If they are not, press D to reset them to default. Black is your painting color when you are ready to start.

Before you paint, adjust the brush hardness and opacity. In the brush settings at the top of the screen, set Hardness to 0% (a soft brush) so your mask edges blend smoothly instead of creating visible lines. Set Opacity to 100% if you want to hide areas completely, or lower (50% to 80%) if you want to gradually fade the mask edge. A lower opacity lets you paint multiple times over the same spot to build up the effect.

Paint black onto the mask to hide parts of the layer. Paint white to reveal parts again. If you make a mistake, press X to swap your foreground and background colors, then paint over the mistake with the opposite color.

Fixing hard edges and halos around masked objects

A common problem after masking is a hard line or a thin halo of the unwanted background still showing around your subject. To fix this, zoom in close (View > Zoom > Fit in Window, then use the scroll wheel or + key to get closer). Click the mask thumbnail again to confirm it is selected.

Use a small, soft brush with black paint and low opacity (30% to 50%). Paint along the edge where the hard line or halo appears. Because your opacity is low, you can paint multiple times to gradually hide the edge without creating a new hard line. If you hide too much of the subject, press X and paint white to bring it back.

For very fine edges like hair or fur, reduce your brush size further and lower the opacity to 20%. Multiple light passes work better than one heavy pass.

Viewing the mask as a grayscale image

Sometimes it is hard to see exactly what your mask is doing while you look at the photo. Hold Alt (on Windows) or Option (on Mac) and click the mask thumbnail. The canvas will show the mask as a pure grayscale image — white areas are fully visible, black areas are fully hidden, and gray areas are semi-transparent. This view makes small mistakes and rough edges much easier to spot.

Edit the mask while viewing it this way if you want precision. When you are done, Alt-click or Option-click the mask thumbnail again to return to the normal photo view. The mask is still there and still working — you are just looking at the result instead of the mask itself.

Adjusting mask density and feathering after the fact

If your entire mask is too strong (hiding too much) or too weak (not hiding enough), you do not have to repaint it. With the mask thumbnail selected, go to Image > Adjustments > Levels or Curves. These tools let you lighten or darken the entire mask at once. Dragging the middle slider in Levels to the left makes the mask lighter (reveals more), and dragging it to the right makes it darker (hides more).

To soften a mask edge that is too sharp, go to Filter > Blur > Gaussian Blur with the mask selected. A blur radius of 2 to 5 pixels softens the transition without destroying the mask. This is especially useful if you created the mask with a hard-edged selection tool and now regret it.

Removing or disabling a mask without losing it

If you want to turn off the mask temporarily without deleting it, right-click the mask thumbnail and choose Disable Mask. The mask is still there but no longer hiding anything — the layer shows fully. Right-click again and choose Enable Mask to turn it back on.

If you want to delete the mask permanently, right-click the mask thumbnail and choose Delete Mask. Photoshop will ask whether you want to explore the mask (permanently hide those pixels) or discard it (keep the full layer unchanged). Choose Discard if you want to keep all the original pixels and just remove the mask.

Frequently Asked Questions

Why does my mask look inverted — hiding what I want to show?

You painted with white when you meant to paint with black, or vice versa. The fix is straightforward: go to Image > Adjustments > Invert with the mask thumbnail selected. This flips all the blacks to white and whites to black. Your mask will now work the opposite way.

Can I copy a mask from one layer to another?

Yes. Right-click the mask thumbnail on the layer with the mask you want to copy and choose Copy Mask. Then right-click the layer you want to paste it onto and choose Paste Mask. The mask will copy exactly, including all the soft edges and gray areas.

What if I paint on the mask but nothing changes?

Check that the mask thumbnail (not the layer thumbnail) has a white border around it. If the layer thumbnail has the border, click the mask thumbnail to switch. Also confirm your brush is actually painting — try painting a thick black line across the canvas to test. If nothing appears, your brush opacity may be set to 0%.

How do I make a mask edge fade gradually instead of stopping abruptly?

Paint the mask with gray instead of pure black or white. Gray makes areas semi-transparent. Use a soft brush with low opacity (20% to 40%) and paint multiple light passes along the edge where you want the fade. Each pass adds more gray, creating a smoother transition.