Layer Mask

Instead of cutting a photo with scissors, it is like placing a cutout sheet of black paper over it to hide parts you do not want to see.

Definition A layer mask is a digital image editing technique that hides or reveals specific parts of an image without altering the original pixels. Instead of permanently erasing areas, it applies a grayscale shield that controls visibility.

Covering with Paper Instead of Using an Eraser

You might remember using stencils or masking tape in art class to paint only where you wanted. A layer mask works on that exact same principle.

When editing a photo, you might think of using an eraser tool to remove the background behind a person. But if you accidentally erase too much, undoing it later can be a nightmare. Once you save the file and close the app, those erased pixels are gone forever.

Using a layer mask is like laying a protective sheet over your original photo. Without touching the original image, you simply mark which areas to show and which to hide. That way, you can bring back hidden parts anytime you want.

Layer Mask Principle Diagram Original Cat + BG Mask Layer Pass White Only Final Out Background Removed

Black Hides, White Reveals

Layer masks follow a simple and intuitive rule based entirely on grayscale brightness. Once you remember this golden rule, masking becomes second nature.

On a mask, anything painted black becomes hidden and transparent. In contrast, anything painted white stays fully visible, as if a window were cut open to show the photo underneath. What happens if you paint with a 50% gray? The area becomes semi-transparent, making it perfect for blending two photos seamlessly together.

Painting with black feels like erasing, but switching your brush to white brings the hidden picture right back. It gives you the total freedom to adjust your work back and forth at any time.

Going Deeper: Why Pros Never Use the Eraser

To be more precise, layer masks are the foundation of what digital artists call non-destructive editingโ€”a workflow that never destroys original data. In digital design, lost pixels are hard to recover, making it essential to protect the source image.

Technically, a mask acts as an 8-bit grayscale channel (an alpha channel) assigning a transparency value from 0 to 255 to every pixel. 0 means completely transparent (black), while 255 means completely opaque (white). Your software calculates these values in real time to decide whether each pixel shows up on screen.

While an eraser permanently destroys image data, a layer mask merely switches a transparency filter on or off. This is why layer masks are an absolute industry standard in graphic design, photo retouching, and film compositing where revisions are routine.

๐Ÿค” Common misconceptions

โœ• Myth

Hiding the background with a layer mask is just like deleting it, so it reduces the file size.

โœ“ Fact

A mask simply hides pixels rather than deleting them. The original image data remains intact, plus the mask data is added, so it does not reduce file size.

๐Ÿงบ Where you meet it

1 Hiding a photo's background to cleanly composite a person onto a new landscape.
2 Using a soft gray gradient mask to seamlessly blend the edges of two overlapping photos.
๐Ÿ’ก In one sentence

A layer mask is a non-destructive editing tool that uses grayscale values to hide or reveal parts of an image without permanently erasing original pixels.