Masking is the skill that separates quick edits from clean, professional ones. If you want to learn how to create a mask for an image in Photoshop, this guide walks you through every step. A mask lets you hide or reveal parts of a layer without deleting a single pixel. That means you can change your mind at any time.
Editors use masks for background removal, photo compositing, product photography, portrait editing, hair masking, object isolation, retouching, and creative design work. Once you understand the basics, most other Photoshop skills get easier.
What Is an Image Mask in Photoshop?
An image mask in Photoshop is a grayscale map attached to a layer that controls which parts of that layer are visible. The most common type is the Photoshop layer mask.
The rule is simple:
- White reveals. The layer shows fully.
- Black hides. The layer becomes transparent.
- Gray partially reveals. The darker the gray, the more see-through the area.
Here is a practical example. You have a portrait on a gray studio backdrop. You add a layer mask and paint black over the backdrop. The backdrop disappears, but it is not gone. Paint white over the same spot and it comes back.
That is the difference between hiding and deleting. Deleted pixels are lost once you save and close. Hidden pixels stay in the file. This is why image masking in Photoshop is called non-destructive editing.
Why Use a Mask Instead of Erasing an Image?
The Eraser Tool removes pixels for good. A layer mask only hides them.
| Feature | Eraser Tool | Layer Mask |
|---|---|---|
| Non-destructive | No | Yes |
| Can restore hidden areas | Only with Undo or History | Yes, at any time |
| Easy to adjust | No | Yes |
| Professional workflow | Rarely used | Standard practice |
| Best for complex edits | No | Yes |
Clients ask for changes. Backgrounds get swapped. An edge that looked fine on white may look rough on dark blue. With a mask, you fix the edge in seconds. With the eraser, you start over.
Types of Masks in Photoshop
Layer Mask
A layer mask is a pixel-based mask you paint on with black, white, and gray. Use it for most jobs, including background removal, blending, and retouching.
Clipping Mask
A clipping mask uses the shape of one layer to control the visibility of the layer above it. The top layer only shows where the bottom layer has pixels.
Vector Mask
A vector mask uses a path made with the Pen Tool or a shape tool. The edge stays sharp at any size, which suits logos, graphics, and hard-edged products.
Quick Mask Mode
Quick Mask Mode (press Q) shows your selection as a red overlay. You paint to add or remove areas, then press Q again to turn it back into a selection.
Selection-Based Masking
Any active selection can become a mask. Make the selection, click the mask button, and Photoshop hides everything outside it.
| Mask Type | Main Purpose | Best Use |
|---|---|---|
| Layer Mask | Hide or reveal pixels with paint | Background removal, compositing, retouching |
| Clipping Mask | Limit a layer to the shape below | Images in text, textures, targeted adjustments |
| Vector Mask | Hide or reveal with a path | Hard edges, logos, scalable graphics |
| Quick Mask | Build or edit a selection by painting | Fixing tricky selections |
| Selection Mask | Turn a selection into a mask | Fast subject isolation |
What You Need Before Creating a Mask
You need very little to get started:
- Adobe Photoshop
- An image or photo
- The Layers panel open (Window > Layers)
- Basic selection knowledge
- The Brush Tool
- Optional selection tools such as the Pen Tool or Object Selection Tool
Different images need different methods. A shoe on a white table and a model with curly hair are two very different jobs. Pick the method to match the edge.
How to Create a Mask for an Image in Photoshop
To create a mask in Photoshop, select your subject, then click the Add Layer Mask button at the bottom of the Layers panel. Here is the full process.
Step 1: Open Your Image
Go to File > Open and choose your photo. You can also drag the file into the Photoshop window.
Step 2: Unlock the Background Layer
A locked Background layer cannot hold a mask. Click the lock icon to unlock it. Better yet, press Ctrl+J (Cmd+J on Mac) to duplicate it, so the original stays untouched.
Step 3: Select the Area You Want to Mask
Choose the tool that fits the edge:
- Object Selection Tool: Drag around a clear subject and let Photoshop find it.
- Quick Selection Tool: Brush over areas with good contrast.
- Magic Wand: Click flat, solid-color backgrounds.
- Lasso Tool: Draw rough or freehand shapes.
- Pen Tool: Trace hard, smooth edges with full control.
Step 4: Add a Layer Mask
With the selection active, click the Add Layer Mask button (a rectangle with a circle inside). Photoshop fills the selected area with white and the rest with black. Everything outside your selection is now hidden.
Step 5: Understand the Mask Thumbnail
Your layer now shows two thumbnails. The left one is the image. The right one is the mask. A thin frame shows which one is active. The chain icon between them links the two so they move together.
Always click the mask thumbnail before you paint. This is the most common beginner mistake.
Step 6: Paint With Black
Pick the Brush Tool (B) and set the foreground color to black. Paint on the mask to hide areas. For example, paint over leftover background near a shoulder and it disappears.
Step 7: Paint With White
Press X to switch to white. Paint over any area you hid by mistake and it returns.
Step 8: Use Gray for Partial Visibility
Gray makes an area partly transparent. Paint with 50% gray, or lower the brush opacity, to fade glass, smoke, veils, or soft shadows.
Step 9: Adjust the Mask
Brush settings control the result:
- Use a soft brush for soft edges and a hard brush for crisp ones.
- Change brush size with the [ and ] keys.
- Lower opacity for gentle, even fades.
- Lower flow to build up the effect stroke by stroke.
Step 10: Refine the Edges
Zoom in and follow the outline. A good edge is clean but not razor sharp. Real objects have a slight softness, so match what the camera captured.
Step 11: Review the Mask
Alt-click (Option-click) the mask thumbnail to see the black and white mask on its own. Gray smudges and missed spots are easy to find this way. Alt-click again to go back.
Step 12: Make Final Adjustments
Paint black over any leftover background. Paint white over any part of the subject that went missing. Then zoom out and check the whole image.
How to Mask an Image Using the Pen Tool
The Pen Tool gives the cleanest result on hard edges.
- Select the Pen Tool (P) and set it to Path.
- Click along the object’s edge, dragging to create curves.
- Close the path by clicking the first point.
- Press Ctrl+Enter (Cmd+Return) to convert the path to a selection.
- Click Add Layer Mask.
- Refine the mask with the brush if needed.
It works best on products, cars, furniture, shoes, electronics, and other hard-edged objects. It is a poor fit for hair, fur, feathers, and soft edges, because a path cannot follow thousands of fine strands.
How to Mask Hair in Photoshop
To mask hair in Photoshop, select the subject, open Select and Mask, and paint over the hair edge with the Refine Edge Brush. Then output the result to a layer mask.
Hair is hard because strands are thin, semi-transparent, and mixed with the background. Flyaway hair and curly hair leave gaps. Blonde hair on a bright wall and dark hair on a dark wall offer little contrast. Busy backgrounds make it worse.
A reliable workflow:
- Choose Select > Subject.
- Open Select > Select and Mask.
- Brush along the hairline with the Refine Edge Brush Tool.
- Turn on Decontaminate Colors if a color fringe remains.
- Output to a new layer with a layer mask.
- Fix remaining strands by hand with a small, low-opacity brush.
For high-contrast shots, the Channels panel can help. Duplicate the channel with the most contrast, push it with Levels, and load it as a selection.
Do not chase a perfectly smooth outline. Hair cut into a helmet shape looks fake. Keep a few loose strands.
How to Mask a Product Image
Product masking needs accurate edges, because buyers judge the item by its shape. This applies to shoes, clothing, bags, jewelry, electronics, cosmetics, furniture, and accessories.
- Clean selection: Use the Pen Tool for hard edges.
- Soft shadows: Keep or rebuild a natural shadow so the product does not float.
- Reflections: Mask them on a separate layer so you can control strength.
- Transparent areas: Use gray on the mask for glass, bottles, and sheer fabric.
- White background: Place a pure white layer beneath and check for gray edges.
A bent edge on a phone or a clipped shoelace changes how the product looks. Accuracy matters more than speed here.
How to Remove a Background Using a Layer Mask
- Open the image.
- Duplicate the layer.
- Select the subject.
- Refine the selection.
- Add a layer mask.
- Check the edges.
- Place a new background layer underneath.
- Adjust the mask where edges look off.
- Match lighting and color between subject and background.
- Review the final result.
The background is hidden, not deleted. If the client wants the original scene back, you disable the mask and it is all still there.
Layer Mask vs Clipping Mask
A layer mask hides parts of its own layer using black and white. A clipping mask hides parts of a layer using the shape of the layer below it.
| Feature | Layer Mask | Clipping Mask |
|---|---|---|
| Controls visibility | Yes, of its own layer | Yes, of the layer above the base |
| Based on another layer | No | Yes |
| Uses black/white | Yes | No, it uses the base layer’s shape |
| Common use | Background removal, blending | Image inside text, targeted adjustments |
| Best for | Detailed, painted edges | Fast shape-based effects |
Think of a layer mask as a stencil you paint by hand. Think of a clipping mask as a cookie cutter: the layer below is the cutter, and the layer above is the dough.
How to Create a Clipping Mask in Photoshop
- Place the base layer (text, shape, or cut-out object) at the bottom.
- Place the layer you want to clip directly above it.
- Right-click the top layer and choose Create Clipping Mask, or press Ctrl+Alt+G (Cmd+Option+G).
The clipped layer indents and shows a small arrow pointing down. It now appears only where the base layer has pixels. Layer order matters: the base must sit directly below.
To release it, right-click the clipped layer and choose Release Clipping Mask.
Common uses include putting an image inside text, applying texture to an object, adding color to a shape, placing artwork on a product mockup, and limiting an adjustment layer to one object.
How to Refine a Layer Mask
To refine a mask in Photoshop, select the mask thumbnail and use the Properties panel along with careful brush work.
- Brush hardness: Match it to the edge. Hard for metal, soft for fabric and skin.
- Brush opacity and flow: Lower both for gradual fixes.
- Feather: Softens the whole mask edge. Use small values.
- Density: Lowers how strongly the mask hides. Useful for faded effects.
- Select and Mask: Opens edge refinement tools such as Smooth, Contrast, and Shift Edge.
Check your work at two sizes. At high zoom you catch jagged spots and halos. At normal viewing size you see if the cut-out looks natural. A mask can look perfect at 300% and still look pasted on at 100%.
Also test against different backgrounds. Add a white layer, a black layer, and a bright color under the subject. Each one shows different flaws.
Common Photoshop Masking Problems and How to Fix Them
| Problem | Cause | Solution |
|---|---|---|
| Rough edges | Poor selection | Refine the selection in Select and Mask |
| Halo around subject | Background color remains | Shift the edge inward or decontaminate colors |
| Missing hair | Over-masking | Restore with a small white brush |
| Background still visible | Mask incomplete | Paint black on the mask |
| Subject partly disappears | Wrong mask area | Paint white to restore |
| Mask looks too soft | Too much feathering | Reduce Feather in Properties |
| Jagged edges | Hard brush or poor selection | Smooth the edge, repaint with a softer brush |
| Mask is not working | Image thumbnail selected | Click the mask thumbnail |
| Wrong area is hidden | Mask is reversed | Press Ctrl+I (Cmd+I) to invert |
| Mask looks uneven | Inconsistent brush settings | Set opacity and flow, then repaint evenly |
How to Fix a Layer Mask in Photoshop
Most mask problems take seconds to fix:
- Invert the mask: Select it and press Ctrl+I (Cmd+I).
- Restore hidden areas: Paint white.
- Hide unwanted areas: Paint black.
- Repaint the mask: Fill it with white and start again.
- Adjust Feather or Density: Use the Properties panel.
- Disable and enable: Shift-click the mask thumbnail to compare before and after.
- Delete and recreate: Drag the mask thumbnail to the trash and choose Delete.
Editing a mask keeps everything flexible. Applying a mask (right-click > Apply Layer Mask) deletes the hidden pixels for good. Apply only when you are certain the edit is final, or when a file must be flattened for delivery.
Best Photoshop Tools for Image Masking
| Tool | Best For | Difficulty |
|---|---|---|
| Object Selection Tool | Clear subjects with defined shapes | Easy |
| Quick Selection Tool | Subjects with good contrast | Easy |
| Pen Tool | Hard-edged products and precise paths | Advanced |
| Brush Tool | Painting and correcting masks | Easy to medium |
| Select and Mask | Hair, fur, and soft edges | Medium |
| Lasso Tool | Rough selections and quick fixes | Easy |
| Gradient Tool | Smooth blends between two images | Easy |
| Channels | High-contrast hair and fine detail | Advanced |
Most real jobs use two or three of these together. A fast automatic selection, a pass in Select and Mask, and a final brush cleanup is a common mix.
How Professional Retouchers Use Masks
Professional masking is about more than removing a background. It is about keeping every edit reversible and every image consistent.
A typical professional workflow looks like this:
- Keep the original image untouched on a locked or hidden backup layer.
- Name and group layers so anyone can open the file and follow it.
- Use adjustment layers with their own masks for color and tone changes.
- Refine selections before masking, not after.
- Run a quality check on edges against light and dark backgrounds.
- Apply the same edge style across a full set of images.
The mask decides how believable the final image is. A great retouch with a poor edge still looks wrong.
Image Masking for Ecommerce
Online stores use masks every day for product background removal, white backgrounds, product catalogs, apparel images, jewelry, shoes, and cosmetics. The same applies to product images for Amazon, Shopify stores, and other marketplaces.
Consistency is the real goal. When fifty products sit side by side in a catalog, uneven edges, mixed shadow styles, or gray-tinted backgrounds stand out right away. Clean masks make a catalog look like one brand.
Each marketplace sets its own image rules, so check the current guidelines for the platform you sell on.
Image Masking for Photography and Retouching
Photo masking in Photoshop goes well beyond cut-outs:
- Portrait photography: Mask skin, eyes, or hair to retouch each area on its own.
- Fashion photography: Isolate garments to correct color without shifting skin tone.
- Wedding photography: Brighten the couple while holding detail in a bright sky.
- Commercial photography: Combine several exposures into one clean image.
- Product photography: Separate product, shadow, and reflection onto their own layers.
- Real estate photography: Replace a dull sky or blend window views into interiors.
- Creative composites: Merge subjects from different photos into one scene.
Manual Masking vs Automated/AI Masking
| Method | Speed | Control | Best For |
|---|---|---|---|
| Manual Masking | Slow | Highest | Complex edges, hair, high-end work |
| Automated Selection | Fast | Medium | Clear subjects on simple backgrounds |
| AI-Assisted Masking | Very fast | Medium | First-pass selections and large batches |
Automated and AI-assisted tools are a strong starting point. They often get most of a simple subject right in one click. Complex images, such as fine hair, glass, lace, or low-contrast edges, usually still need manual refinement.
Common Masking Mistakes to Avoid
- Using the Eraser Tool too early: Use a mask so you can undo anything later.
- Edges too hard: Add a small feather so the subject does not look cut out with scissors.
- Edges too soft: Reduce feather so the outline does not blur or glow.
- Removing natural shadows: Keep them on a separate layer to ground the subject.
- Cutting off hair: Use Select and Mask instead of a hard path.
- Leaving background halos: Shift the edge inward slightly.
- Ignoring small details: Check straps, gaps between fingers, and handle openings.
- Using poor selections: Spend more time on the selection and less on repairs.
- Working destructively: Duplicate the layer first.
- Forgetting the mask thumbnail: Click it before painting, or you paint on the photo.
- Overusing feathering: A value that suits hair will ruin a product edge.
- Skipping the normal-size check: Zoom out before you export.
Tips for Creating Professional-Looking Masks
- Start with the selection method that best fits the edge.
- Work on a duplicate layer.
- Zoom in for difficult edges, and zoom out often.
- Use a soft brush for soft edges and a hard brush for hard edges.
- Preserve natural shadows and fine hair.
- Check the mask against different backgrounds.
- Keep masks editable instead of applying them.
- Save the layered PSD when future edits are likely.
DIY Masking vs Professional Image Masking Services
| Factor | DIY Masking | Professional Service |
|---|---|---|
| Cost | No service fee, but takes your time | Paid per image or project |
| Time | Slow while you learn | Faster for large volumes |
| Skill | Depends on your experience | Handled by trained editors |
| Complex Objects | Can be hard | Routine work |
| Hair/Fur | Steep learning curve | Routine work |
| Bulk Editing | Hard to keep up | Built for volume |
| Consistency | Varies from image to image | Follows a set style guide |
| Quality Control | Self-checked | Usually a separate review step |
DIY masking makes sense for a few simple images or when you want to build the skill. A professional service may be worth it for complex subjects, tight deadlines, or batches of hundreds of images.
How Much Does Image Masking Cost?
There is no single price for image masking. Cost depends on:
- Image complexity and object shape
- Number of objects in the frame
- Hair or fur detail
- Shadows and transparency
- Number of images
- Turnaround time
- Required output and level of refinement
Providers usually price per image, per object, per batch, or by custom quote. The most accurate way to get a number is to send sample images and ask for a quote.
Need Help With Image Masking? About Clipping Area
Clipping Area is a Post-Production Photo Retouching Agency. The team provides professional post-production and photo retouching services for photographers, ecommerce brands, businesses, agencies, and other clients who need consistent image editing.
Services include image masking, clipping path, background removal, photo retouching, ecommerce image editing, product photo editing, apparel photo editing, jewelry retouching, ghost mannequin editing, bulk image editing, and Photoshop post-production.
If you have complex hair masking, detailed products, or a large batch that would take days to finish in-house, you can send a few images and review the result before you decide.
Get a Free Sample | Get a Free Quote
Practical Photoshop Masking Checklist
- Open the original image
- Duplicate the layer
- Select the correct masking method
- Create the mask
- Check the mask thumbnail
- Use black to hide areas
- Use white to restore areas
- Use gray for partial visibility
- Refine the edges
- Check hair and fine details
- Check shadows
- Review at 100%
- Review at normal size
- Save the layered PSD
- Export the final image correctly
Frequently Asked Questions
What is an image mask in Photoshop?
An image mask is a grayscale layer attachment that controls visibility. White shows the layer, black hides it, and gray makes it partly transparent. No pixels are deleted.
How do I create a layer mask in Photoshop?
Select a layer and click the Add Layer Mask button at the bottom of the Layers panel. If a selection is active, Photoshop keeps the selected area visible and hides the rest.
What does black do on a Photoshop mask?
Black hides. Any area painted black on the mask becomes transparent on that layer.
What does white do on a layer mask?
White reveals. Painting white brings hidden areas back into view.
What is the difference between a layer mask and a clipping mask?
A layer mask hides parts of its own layer with black and white paint. A clipping mask shows a layer only inside the shape of the layer directly below it.
How do I mask hair in Photoshop?
Use Select > Subject, open Select and Mask, and brush over the hair edge with the Refine Edge Brush. Output to a layer mask, then touch up stray strands by hand.
How do I remove a background using a mask?
Select the subject, click Add Layer Mask, and the background is hidden. Place a new background on a layer underneath and refine the edge.
How do I fix a layer mask?
Click the mask thumbnail, then paint white to restore or black to hide. If the mask is reversed, press Ctrl+I (Cmd+I) to invert it.
Why is my layer mask not working?
You probably have the image thumbnail selected instead of the mask. Click the mask thumbnail and check that your brush is set to black or white at Normal blend mode.
Is the Pen Tool better than automatic selection for product images?
For hard-edged products, the Pen Tool usually gives cleaner and more accurate edges. Automatic selection is faster and works well as a first pass.
How much does professional image masking cost?
It depends on complexity, hair or fur detail, number of images, and turnaround. Most providers quote per image or per batch after seeing samples.
Can image masking be done in bulk?
Yes. Large batches are common for ecommerce catalogs. The key is a clear style guide so every image gets the same edge quality, shadow style, and background.




