Download Assets
This tutorial includes 2 sample images, 1 sample PSD and 1 PDF guide. Downloads are free with a PHLEARN account.
- Download the sample images and PSDs from every free tutorial on PHLEARN
- New free tutorials published every week
- One free account — sign up once, then download anything
Free PDF Guide · 4 Pages
This Tutorial as a Step-by-Step PDF
Walks through creating a mask with Select Subject and the layer mask icon, the Black & White and Overlay views, painting white and black with X to swap, Select and Mask with Shift Edge for a white outline, copying a mask with Alt/Option-drag and Ctrl/Command+I, unlinking the chain, and masking a whole group. Keep it next to your keyboard.
description
Layer masks in Photoshop hide and reveal without deleting a pixel. This tutorial covers building a mask from a selection, refining the edge by painting, copying a mask to another layer, unlinking it so the artwork can move independently, and masking a whole group at once.
Enjoying This Free Tutorial?
We publish a new free tutorial every week, each one with sample images and PSDs you can download and follow along with. Sign up and they land straight in your inbox, along with early word on sales, events and subscriber-only offers.
Image Source


How to Create and Use Layer Masks in Photoshop
A layer mask controls which parts of a layer are visible, without deleting anything. Paint white to reveal, paint black to hide, and change your mind as many times as you like — the pixels underneath are never touched.
That reversibility is why layer masks sit at the center of almost every serious Photoshop workflow. An eraser makes a decision permanent; a mask keeps it open forever.
This tutorial covers creating one, refining it, moving it independently of its layer, copying it between layers, and masking a whole group at once.
Create a Mask From a Selection
Select your subject layer and click Select Subject. With the selection active, click the layer mask icon — in the Contextual Task Bar or at the bottom of the Layers panel.
The background disappears. Put another image on a layer beneath and it shows through where the mask is black.
White Reveals, Black Conceals
The one rule that governs everything: white areas of a mask are visible, black areas are invisible, and grays are partially transparent.
Look at the mask thumbnail and you will see your subject in white against a black background. That is the whole mechanism.
Layer or Mask — Check Which Is Selected
A layer and its mask are separate targets. Whichever has the white border around its thumbnail is the one receiving your next action.
This trips people up constantly — painting on the layer when you meant the mask damages your image instead of adjusting visibility. The Contextual Task Bar changes to match, so if it is offering Select Subject and Remove Background you are on the layer; mask options mean you are on the mask.

Ways to View and Disable a Mask
With the mask selected, the View menu in its properties offers three modes. On Layers is the normal composited view. Black & White shows the mask itself, which is the clearest way to spot gaps. Overlay shows the image with masked areas in red.
To disable a mask temporarily, Shift-click its thumbnail — a red X appears and the full layer returns. Shift-click again to re-enable. Useful for checking what the mask is actually hiding.
Density and Feather
Two sliders in the mask properties. Density reduces how strongly the mask hides — lowering it lets some of the hidden content show through, turning black into gray. Feather softens the mask edge, which quickly smooths a selection that is slightly too crisp.
Refine It by Painting
A mask is never finished. Take the Brush Tool with the mask selected and paint.
Black hides more. White brings content back. Press X to swap the foreground and background colors, which makes switching between hiding and revealing instant.
Zoom in and look for background still showing at the edges, or parts of the subject wrongly hidden. Paint them in or out. If you overshoot, swap colors and paint back — nothing is destroyed, so there is no wrong move you cannot reverse.
This is worth internalizing: masks are meant to be improved over time, not perfected in one pass. Get it roughly right, keep working, refine when you notice a problem.
Select and Mask for Difficult Edges
For hair and other fine edges, double-click the layer mask to open the Select and Mask workspace.
Under Global Refinements, Feather softens the edge, Contrast sharpens the transition, and Shift Edge moves the boundary inward or outward.
The Fix for a White Fringe
A pale halo around a cut-out subject is the most common flaw in a composite, and it comes from the selection sitting fractionally outside the true edge.
Shift Edge inward slightly and it disappears. A little feather and contrast alongside it usually finishes the job. This one combination solves most edge problems.
The Refine Edge Brush
For hair specifically, take the Refine Edge Brush Tool and paint over the messy boundary. Photoshop recalculates that region for fine detail and picks up individual strands. Do not try to be precise — paint across the whole edge and let it work.

Copy a Mask to Another Layer
Once you have a good mask, reuse it. Hold Alt or Option and drag the mask thumbnail onto another layer.
Add a text layer, copy the subject mask onto it, and the text is confined the same way — no need to reselect anything.
Invert When It Comes Out Backwards
Frequently the copied mask hides exactly what you wanted to show. Press Ctrl+I or Cmd+I, or use Invert Mask in the Contextual Task Bar.
For text meant to sit behind a subject, inverting the subject mask is precisely what makes it work — the text is hidden where the person is and visible everywhere else.
Unlink to Move the Layer Independently
By default a layer and its mask are chained together, so moving one moves both — and text sliding behind a subject immediately breaks the illusion, because the mask travels with it.
Click the chain icon between the two thumbnails to unlink them.
Now select the layer thumbnail and drag: the text moves while the mask stays locked to where the subject actually is. The text passes behind the person as it travels. Select the mask thumbnail instead and you move the mask while the layer stays put.
Watch which thumbnail has the border — moving the wrong one is easy and the result is confusing until you notice.

Mask a Whole Group
When several layers need the same mask, mask the group rather than each layer.
Select the layers and press Ctrl+G or Cmd+G to group them. Alt/Option-drag the mask onto the group itself, then delete the individual masks from the layers inside — drag each to the trash.
Everything in the group is now masked together. Better still, anything you add later inherits it. Drop a gradient fill layer into the group and it sits behind the subject automatically, with no masking work at all.
This is the technique for building a composite where multiple elements all need to sit behind one subject.
Masks Work on Everything
Regular layers, Smart Objects, text layers, adjustment layers, gradient fills and groups all accept masks, and they behave identically on each. Learning masks once means understanding local control across all of Photoshop.

Worth Remembering
White reveals, black conceals. Check whether the layer or the mask is selected before you paint. Press X to swap colors while refining. Double-click a mask for Select and Mask, and use Shift Edge inward to kill a white fringe. Alt/Option-drag to copy a mask, Ctrl/Cmd+I to invert it. Unlink the chain to move a layer while its mask stays put. Mask the group when several layers need the same treatment.
And nothing here is permanent. That is the entire point.
Quick Reference: Keys, Menus and Settings
- Create a maskSelect Subject, then the layer mask icon in the Contextual Task Bar or at the bottom of the Layers panel
- See the maskMask properties > View: Black & White or Overlay; Shift-click the thumbnail to disable it
- RefineB, paint black to hide and white to reveal; X swaps the colors
- Edges and hairDouble-click the mask for Select and Mask: Feather, Contrast, Shift Edge inward; Refine Edge Brush on hair
- Copy and invertAlt/Option-drag the mask to another layer; Cmd/Ctrl + I inverts it
- Move the layer onlyClick the chain icon to unlink, then select the layer thumbnail and move
- One mask for manyCmd/Ctrl + G to group, Alt/Option-drag the mask onto the group

Free Downloads
Follow Along on the Same Photos
Get the portrait to cut out, the balloon backdrop, the finished masked PSD and the 4-page PDF guide to every step. Free with a PHLEARN account.
Layer Masks: Common Questions
Why use a layer mask instead of the Eraser?
A mask hides pixels without deleting them. Paint white to bring anything back, at any time. The Eraser makes the decision permanent.
Does white or black hide part of the layer?
Black hides and white reveals. Grays are partly see-through, which is what the Density slider and Feather produce.
I painted on my photo instead of the mask. What happened?
The layer thumbnail was selected. Whichever thumbnail has the white border gets your next brush stroke. Undo, click the mask thumbnail and paint again.
How do I see what the mask is hiding?
In the mask’s properties, set View to Black & White to see the mask itself, or Overlay to see hidden areas in red. Shift-click the mask thumbnail to switch the mask off and on.
How do I get rid of a white outline around my cut-out?
Double-click the mask to open Select and Mask, then move Shift Edge inward a little. A touch of Feather and Contrast usually finishes it.
How do I mask hair?
In Select and Mask, paint over the hair with the Refine Edge Brush. Photoshop recalculates that area and picks up fine strands.
Can I reuse a mask on another layer?
Yes. Hold Alt or Option and drag the mask thumbnail onto the other layer. If it comes out backwards, press Cmd/Ctrl + I or click Invert Mask.
How do I move text behind my subject without the mask moving too?
Click the chain icon between the layer and its mask to unlink them. Then select the layer thumbnail and move it; the mask stays where the subject is.
Can several layers share one mask?
Put them in a group with Cmd/Ctrl + G and mask the group. Anything you add to the group later, like a gradient fill, is masked too.
Are the sample files free?
Yes, with a free PHLEARN account. You get 2 sample images, 1 sample PSD and 1 PDF guide: the portrait, the balloon backdrop and the finished masked file.
From the Magazine View all
Stories, interviews and guides for photographers, new every week.
EditingLightCraft vs Lightroom: I Edited the Same RAW Files in BothThe free clone on the same RAW files: what matches, what breaks and who should switch.
InspirationRare Historical Photos: 13 of the Rarest Pictures Ever TakenFrom the earliest surviving picture of a person to the last passenger pigeon: who took each one and why it survives.
EditingArtCraft: Photoshop Cloned by AI in Two Weeks. Is It Legal?ArtCraft cloned Photoshop and Lightroom with AI and gave them away. Any good? Legal? Safe?
Master Photoshop, Lightroom and Photography
Join PHLEARN PRO for $12.99 a month, or $99.99 a year (save 36%). Cancel anytime, with a 100% money-back guarantee.
