How to Mask in Photoshop to Hide Layers

Online Tech Tips is reader-supported. We may earn a commission when you buy through links on our site. Learn more.

Masking is an important technique to learn when you’re starting with Photoshop. You can use it for many purposes, such as removing a portion of a photo or hiding unwanted objects. Fortunately, understanding how to mask in Photoshop is easy to start doing within a few minutes!

In this article, you’ll learn how to mask and use masking to hide portions of layers you don’t want to appear in your final photo.

Table of Contents
    How to Mask in Photoshop to Hide Layers image - photoshop

    What Are Masks?

    When you add a mask to a layer, it essentially gives you the ability to add or remove parts of that layer. Beside the layer, after adding a mask, you’ll see a greyscale square showing you what parts of the layer the mask has changed. 

    When you use the Brush tooland go over the layer in black, it will remove that part of it. If you paint it in white, it will add it back. You can be more precise by using a selection tool and filling in the selection with either color. 

    You may wonder why you should use a mask instead of just erasing portions of a layer. Masks are non-destructive, meaning when you remove parts of the layer, you aren’t deleting anything. So if you decide you want a particular part back, the image will not lose quality. You can also use masks to achieve many more effects than just the eraser tool alone would allow.

    How to Add a Mask in Photoshop

    To add a new mask to a Photoshop layer, follow the steps below.

    1. If you want to add a mask to the Background layer, turn it into a regular layer by right-clicking on it and going to Layer From Background. Then name the layer and select OK.
    How to Add a Mask in Photoshop image - 2backgroundlayer
    1. Select the layer you want to add a mask to from the Layers panel.
    1. At the bottom of the Layers panel, click on the Add layer mask icon. Photoshop will then add the mask to your chosen layer.
    How to Add a Mask in Photoshop image 2 - 3addlayermask
    1. To delete the mask, right-click on it and select Delete Layer Mask.
    How to Add a Mask in Photoshop image 3 - 4deletelayermask

    How to Use a Mask to Hide Parts of Layers

    Now that you’ve added the mask, it’s time to use it. In this example, I’m going to change the background behind the coffee in the image. 

    1. First, I added in the background image on a new layer and placed it behind the coffee image layer.
    How to Use a Mask to Hide Parts of Layers image - 5addimage
    1. Now, to use the mask, select it first.
    1. Choose a selection tool, and select the part of the layer you wish to keep.
    How to Use a Mask to Hide Parts of Layers image 2 - 6selectiontool
    1. Go to Select and Mask in the options bar and click it.
    How to Use a Mask to Hide Parts of Layers image 3 - 7select
    1. In the Output dropdown in the bottom right, select Output to Layer Mask.
    How to Use a Mask to Hide Parts of Layers image 4 - 8output
    1. The mask should now hide the unselected portion, and any layers below will be visible.

    You can clean up the selection if you wish by going in with the brush tool, removing it with black, and adding white.

    How to Use a Mask to Hide or Show an Entire Layer

    Another way to use a mask in Photoshop is to hide or reveal the entirety of any layer. To do this:

    1. In the Layers panel, select the layer you want to hide or show.
    1. Go to Layer > Layer Mask> Hide all or Reveal all, depending on which you want.

    Unlinking Masks From Layers

    A mask is automatically linked to a chosen layer, meaning when you move the layer, the mask moves with it. If you unlink them, you’ll be able to move them independently of each other.

    1. In the Layers panel, look for the small chain link icon between the layer’s image and mask.
    Unlinking Masks From Layers image - 9link
    1. Click on this icon to unlink them from each other.
    1. To link a mask to a layer, click in between the image and mask again.

    Change Mask Transparency or Feathering

    Changing the opacity of the mask, as well as feathering mask edges, can help you achieve the desired look in your photo.

    Here’s how to change a mask’s transparency:

    1. Find the layer with the mask you want to change, and select the mask itself.
    1. In the Properties panel above the Layers panel, find the Density slider.
    Change Mask Transparency or Feathering image - 10density
    1. Moving the slider closer to 0% will make the selected mask more transparent, while 100% will completely cover the bottom layer(s).

    To change mask feathering:

    1. Do the same as in step one above.
    1. In the Properties panel, find the Feather slider. Moving this slider will change the value of the feather effect on the mask’s edges. A higher value will mean more feathering.
    Change Mask Transparency or Feathering image 2 - 11feather

    Feathering can be a good way to make layers blend more naturally instead of having rough edges.

    Refining Mask Edges

    It can be hard to select the edges of an object perfectly, so there are ways you can refine your selections. An easy way to do this with masks is through the Select and Mask workspace in Photoshop.

    1. Select the layer with the mask you want to edit, then click the mask thumbnail to select it.
    1. In the options bar, choose Select and Mask.
    Refining Mask Edges image - 12selectmask

    You’ll enter the Select and Mask workspace. Here, you can choose from multiple options to refine your edge. An easy one to try is the different refine modes. 

    Refining Mask Edges image 2 - 13refine

    13- refine

    Object aware is good to choose when you select complex shapes such as hair or the background is fuzzy. Color aware is good if the image has easily defined, solid colors.

    Masking Is an Essential Basic Skill

    The ability to hide, reveal, or isolate parts of an image makes masks a powerful Photoshop editing tool at your disposal. For instance, layer masks can help you replace a color in any photo.

    Have you tried layer masking in Photoshop for quick edits yet?