Layer masks: edit without destroying anything
· 8 min read
A layer mask is a greyscale sheet attached to a layer that decides which parts are visible and which are not, without erasing a single pixel.
The golden rule: black hides, white shows
- White: that area of the layer is visible.
- Black: that area is hidden (but it is still there).
- Greys: semi-transparency. A mid grey leaves the layer at 50 %.
Mask vs eraser
The eraser removes pixels forever. If you go too far, all you can do is undo. With a mask, if you hide too much, you paint white and the image comes back. That is why a professional workflow always uses masks.
How to use it in OnlinePSD
- Select the layer and click the mask icon in the layers panel.
- Click the mask thumbnail: the colors switch automatically to black and white.
- Paint with the brush, fill with the bucket or drag a gradient for smooth blends.
- Click the thumbnail again to leave: you get your colors back.
Three classic uses
- Cutting out a subject: Select › Subject and then Layer › Mask from selection.
- Blending two photos: a black-to-white gradient on the mask of the top photo.
- Fading text: like on a poster where the words fade downwards (it also works with a folder's mask).
What about the clipping mask?
It is something else: it makes a layer visible only inside the shape of the layer below. It is used to put a photo inside text. It is turned on with Ctrl + Alt + G.
Tip: if an AI cut-out leaves a halo, shift the mask edge 1 or 2 px inwards with Select and mask.
Learn more in the free course · Next: Smart object or rasterized layer: differences and when to use each →