A close-up of a woman in a pink puff-sleeve dress against a blue sky, from a tutorial on refining selections with Select and Mask in Photoshop.
  • Refine Selections with Select & Mask in Photoshop

  • Aaron Nace
    by Aaron Nace
    February 24, 2022
  • Add to
    favorites

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
Download

Free PDF Guide · 4 Pages

This Tutorial as a Step-by-Step PDF

The guide walks through extending the sky with Edit > Content-Aware Fill, an Object Selection cutout of the couple, the Refine Edge tool on hair in Select and Mask, rounding corners with Feather, Smooth and Contrast, a 10 pixel stroke with Select > Modify > Expand, and Quick Mask for a soft glow and signatures. Keep it next to your keyboard.

Download the PDF Guide · 0.4 MB

description

Learn how to refine selections with Select and Mask in Photoshop on one real project: extend a background with Content-Aware Fill, cut out two subjects with their hair intact, and build a graphic that sits believably behind them. You’ll use Refine Edge for hair, Feather and Smooth to round off corners, the Select menu to modify selections, and Quick Mask mode to edit a selection as if it were a paintable layer, plus common mistakes to avoid.

Free Selection Series

Image Source

Photo by Barbara Ribeiro via Pexels

Couple embracing against a blue sky, cut out onto a transparent background
Couple embracing against a blue sky, composited into a wedding invitation design
AfterBefore

How to Refine Selections with Select and Mask in Photoshop

This final entry in the selections series ties everything together on one real project: extending a background, cutting out two subjects with hair intact, and building a wedding invitation graphic that sits believably behind them. Select and Mask is the centerpiece — the tool built specifically for cleaning up a rough selection into something genuinely usable, including notoriously tricky detail like hair.

Extending the Background with Content-Aware Fill

Before any subject work happens, the background itself often needs more room, which selections combined with Content-Aware Fill can generate rather than requiring a wider original photo.

  1. Crop to Reveal More Canvas

    Press C for the Crop tool and drag out beyond the current image edge to add blank canvas space where the background needs to extend.

  2. Select the New Empty Area

    Use the Rectangular Marquee tool to select the newly added blank area.

  3. Run Content-Aware Fill and Refine the Sample

    Go to Edit > Content-Aware Fill. In the preview, paint away any part of the highlighted sampling area you don’t want included, like a subject’s hair, so the fill pulls from clean background only.

  4. Output to a New Layer

    Set the output to a new layer so the extended background stays independent and can be toggled on or off at any time.

Why Output to a New Layer Instead of the Original

Keeping the Content-Aware Fill result on its own new layer, rather than applying it directly onto the original background, means the extension can be hidden, adjusted, or redone at any point without touching the original photo underneath it — a small habit that pays off the moment you want to compare the extended and original versions side by side.

Making an Initial Cutout of Your Subjects

With more background space to work with, the subjects need to be cut out and moved onto their own layer, using the automatic tools covered earlier in this series as a starting point.

  1. Select Your Subjects with the Object Selection Tool

    Choose the Object Selection tool, confirm Object Finder is active, and click each subject — holding Shift to add a second person to the same selection.

  2. Load the Selection into a Layer Mask

    With your subjects selected, click the layer mask icon to load that selection directly into a mask on their layer.

  3. Duplicate for a Separate Background Layer

    Duplicate the subjects layer, then fill its layer mask entirely with white to create a full, unmasked background layer to work with separately.

Refining Hair and Edges with Select and Mask

An automatic selection is rarely perfect right out of the gate, especially around hair, which is exactly the problem Select and Mask’s Refine Edge tool is designed to solve.

  1. Open Select and Mask on Your Layer Mask

    Click on your subject’s layer mask, then go to Select and Mask to open the dedicated refinement workspace.

  2. Use the Refine Edge Tool Directly on Hair

    Select the Refine Edge tool and paint directly over hair strands. The tool automatically distinguishes hair detail from the background, producing a far more natural edge than the original automatic selection.

  3. Use a Brush Sized to the Detail You’re Refining

    Choose a brush size roughly matching the scale of the detail being refined — a smaller brush for fine hair strands works better than a large, imprecise one.

  4. Apply the Refinement Back to Your Layer Mask

    Set the output to update your existing layer mask directly, so the refinement becomes a permanent part of your subject’s cutout.

Why Refine Edge Works So Well on Hair

Refine Edge analyzes fine, high-frequency detail like individual hair strands against the background behind them, rather than treating the whole area as one uniform edge the way a basic selection tool would. It performs best against simpler, more uniform backgrounds, since there’s less conflicting detail for it to have to distinguish from the hair itself.

Rounding Corners with Feathering and Smoothing

Select and Mask isn’t limited to organic subjects like hair — the same global refinement sliders can reshape a hard-edged graphic like a rectangular invitation into a softened, rounded one.

  1. Turn a Layer into a Selection and Open Select and Mask

    Hold Ctrl/Cmd and click a layer’s thumbnail to select its shape, click the layer mask icon, then open Select and Mask on that new mask.

  2. Raise Smoothing and Feathering

    In the Global Refinements panel, raise Smoothing to round out sharp corners and raise Feathering to soften the edge.

  3. Add Contrast Back for Crispness

    Raise Contrast slightly afterward to sharpen the now-softened edge back up, avoiding an overly blurry result.

  4. Shift the Edge and Output to the Mask

    Use Shift Edge to move the boundary in or out as needed, then set the output to update the existing layer mask directly.

The Select Menu and Select and Mask Overlap

Many of the same operations available inside Select and Mask — expanding, contracting, feathering — are also accessible individually through Select > Modify, without opening the full workspace. Select and Mask is generally the better choice for a full refinement pass with live preview, while the Select menu’s individual commands are quicker for a single, specific adjustment like expanding a selection by an exact pixel amount.

Modifying Selections Through the Select Menu

Beyond Select and Mask, Photoshop’s Select menu includes its own set of selection-modifying tools useful for effects like adding a clean stroke around a shape.

  1. Turn a Shape into a Selection

    Hold Ctrl/Cmd and click a layer mask’s thumbnail to load its exact shape as a selection.

  2. Expand the Selection

    Go to Select > Modify > Expand and enter a pixel amount (10 pixels, for example) to grow the selection outward evenly.

  3. Fill the Expanded Ring and Invert as Needed

    Create a new layer, invert the selection with Select > Inverse, fill with your stroke color (white in the video), then invert back so the inside is selected, expand by another 10 pixels, invert once more and press Delete, leaving a clean, evenly sized 10 pixel stroke around your original shape.

Editing Selections as Pixels with Quick Mask Mode

Quick Mask mode turns an active selection into a temporary, paintable, and filterable set of pixels — a genuinely different way of thinking about what a selection can be.

  1. Enter Quick Mask Mode

    With a selection active, press Q to enter Quick Mask mode, turning your selection into an editable, semi-transparent overlay.

  2. Paint or Apply Filters to the Mask

    Paint directly with the Brush tool to add to the selection, or apply a filter like Gaussian Blur to soften the selection’s edge as if it were a real pixel layer.

  3. Exit Quick Mask to Return to a Selection

    Press Q again to convert your edits back into a normal active selection, ready to be loaded into a new adjustment layer’s mask.

  4. Draw Directly in Quick Mask for Custom Shapes

    Enter Quick Mask mode on a blank new layer and paint any custom shape freehand — a signature, for instance — then exit Quick Mask and use that selection with a solid color fill layer to turn the drawing into a finished graphic.

A Blurred Selection Behind an Adjustment Layer

Blurring a selection in Quick Mask mode before loading it into a Curves adjustment layer’s mask produces a soft, gradual glow rather than a hard-edged brightness change — a simple way to add a subtle lighting effect behind a graphic using nothing but selection tools and a blur filter.

Common Mistakes to Avoid

The most common mistake is expecting Select and Mask’s Refine Edge tool to work equally well on any background — it performs best against simpler, more uniform backgrounds, and a busy or textured background behind hair can still need manual touch-up afterward. It’s also easy to forget that Quick Mask mode is temporary and needs to be exited (pressing Q again) before the edits you made actually take effect as a usable selection.

Why This Approach Works

Select and Mask exists because a raw selection, however it was made, is rarely the finished product — hair needs edge-aware refinement that a basic Lasso or Magic Wand selection can’t provide, and a hard geometric shape sometimes needs the opposite treatment, softened and rounded rather than sharpened. Running both very different jobs through the same tool works because Select and Mask’s global refinements (feathering, smoothing, contrast, edge shift) are really just controls over how a boundary transitions from selected to unselected, which applies just as well to a strand of hair as it does to the corner of a rectangle. Quick Mask mode extends that same idea one step further, treating a selection as literal pixels you can paint or filter directly, which is what makes an effect like a soft glow behind a graphic possible using nothing beyond tools already covered across this series. Put together with the automatic cutout tools from the previous episode, like selecting subjects and refining edges, this closes the loop from a rough automatic selection to a polished, presentation-ready composite.

Final Thoughts

Across this three-part series, the pattern has been consistent: simple tools for building a rough selection, advanced tools for speeding up subject cutouts, and Select and Mask for turning either of those into something genuinely clean. Treat Select and Mask as the step you almost always run before calling a selection finished, whether the subject is a person’s hair or a hard-edged graphic, and Quick Mask mode as the tool to reach for whenever you want to edit a selection as if it were a real, paintable layer.

Quick Reference: Keys, Menus and Settings

  • Extend the canvasC to crop wider, Rectangular Marquee over the gap, Edit > Content-Aware Fill, Output To: New Layer
  • Cut out the coupleObject Selection with Object Finder, Shift-click the second person, layer mask icon
  • Fill a maskShift + Delete/Backspace opens Fill; fill the copy’s mask with white
  • Refine the hairSelect > Select and Mask, Refine Edge tool, View: Overlay or On Layers, Output To: Layer Mask
  • Round the cornersCmd/Ctrl-click the thumbnail, mask icon; Select and Mask on black: Feather, Smooth, Contrast, Shift Edge
  • Even strokeCmd/Ctrl-click the mask, Select > Modify > Expand 10 px, Select > Inverse, Edit > Fill > White
  • Quick MaskQ on and off; Filter > Blur > Gaussian Blur to soften the selection; Cmd/Ctrl + I if a fill comes out backwards
Page 1 of the free Refine Selections in Photoshop PDF guide

Free Downloads

Follow Along on the Same Photos

Get both sample images, including the couple against a blue sky, the finished wedding invitation PSD and the 4-page PDF guide. Free with a PHLEARN account.

Select and Mask: Common Questions

How do I extend a background that is too small?

Press C and drag the crop out to add canvas, then drag the Rectangular Marquee over the empty strip. Go to Edit > Content-Aware Fill, paint any hair out of the green sample area so only sky is used, and set Output To: New Layer.

How do I select two people at once?

Use the Object Selection tool with Object Finder checked. Click one person, then hold Shift and click the other. If the blue highlight is hard to see on a blue sky, change the highlight color.

How do I keep a full background under the cutout?

Duplicate the masked layer, then on one copy’s mask press Shift + Delete (Shift + Backspace) to open Fill and fill the mask with white. That copy is the background; the other stays as the subjects.

How do I cut out hair in Photoshop?

Click the layer mask and go to Select > Select and Mask. Take the Refine Edge tool, right under the top tool, and paint over the edge of the hair with a brush about the size of what you are refining. Switch the View to Overlay to spot edges that still need it.

Why doesn’t Refine Edge work well on my photo?

It works better when the background is simple. The plain blue sky here is easy for it; behind a busy or textured background, expect to touch up the mask by hand.

Which Output To setting should I use in Select and Mask?

Layer Mask, when you opened Select and Mask on a mask. It simply updates the mask you already have.

How do I round the corners of a graphic?

Cmd/Ctrl-click its thumbnail, click the layer mask icon, then open Select > Select and Mask on that mask and view it On Black. Raise Feather and Smooth to round the corner, bring Contrast up for a crisp edge, and use Shift Edge to move it in a touch.

How do I add an even stroke around a shape with selections?

Cmd/Ctrl-click the mask, go to Select > Modify > Expand and enter 10 pixels. On a new layer, Select > Inverse and Edit > Fill with white. Inverse back, expand another 10 pixels, Inverse again and press Delete.

What is Quick Mask mode for?

Press Q and your selection becomes editable pixels you can paint on or blur with Filter > Blur > Gaussian Blur. Press Q again and the result is your selection. In the video it makes a soft glow with a Curves layer and hand-drawn signatures with a Solid Color fill layer.

Are the sample files free?

Yes, with a free PHLEARN account. You get 2 sample images, 1 sample PSD and 1 PDF guide: the couple photo, the finished wedding invitation file and a 4-page walkthrough of every step.

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.

As featured in
  • 500px
  • Adobe
  • Fstoppers
  • HuffPost
  • Inc.
  • PetaPixel