Before-and-after of a man with a detailed curly afro holding a camera, cleanly cut from a busy street background onto a plain white background, illustrating Select and Mask hair cutout in Photoshop
  • Cut Out Hair with Select and Mask – Classic Day 27

  • by Aaron Nace
    January 28, 2020
  • Add to
    favorites

Download the Sample Image

Download Assets

This tutorial includes sample images and a PDF guide. Downloads are free with a PHLEARN account.

  • Free sample files with every tutorial on PHLEARN
  • New tutorials published every week
  • Unlimited downloads with your free PHLEARN account
Download

description

2020 Edition

This lesson is from the original 30 Days of Photoshop. Photoshop has changed a great deal since — there is an updated version of this lesson in the 2025 Edition: How to Use Select Subject in Photoshop, Day 9.

Working with hair in Photoshop can be a major challenge–especially when you need to cut it out from the background. Learn how to use smart tools like Select Subject and Select and Mask to make the process of cutting out hair easier than ever!

This is Day 27 of our 30 Days of Photoshop series. Follow along with all 30 episodes as we explore the magic of Photoshop together!

Before and after photo of a man with an afro holding a camera, background removed for the cut out hair tutorial

Cut Out Hair with Select and Mask

Hair is the hardest thing to separate from a background. Automatic selection tools grab the outline of a person well enough, but fine strands and semi-transparent edges are usually lost. The technique in this lesson combines Select Subject, the Refine Edge Brush inside Select and Mask, and a simple Overlay-mode brush trick to get a clean hair cutout in a few minutes, even on a busy background.

For the body of a subject, the Pen Tool lesson from yesterday gives cleaner results. Use that for the hard edges and this method for the hair.

Start with Select Subject

  1. Run Select Subject

    Go to Select > Subject. Photoshop analyzes the image and draws a selection around the person. It will not be perfect on the hair, and it may miss small objects, but it is a strong starting point.

  2. Clean Up with the Lasso

    Press L for the Lasso Tool. Hold Shift and draw to add missed areas; hold Alt/Option to subtract. Hold Alt/Option while clicking to switch to straight polygonal segments. Rough is fine here; the hair is what matters.

  3. Add a Layer Mask

    Click the Add Layer Mask icon at the bottom of the Layers panel. The subject is cut out, but the hair edge looks chunky. That is what we fix next.

Refine the Hair in Select and Mask

  1. Open Select and Mask

    Click the layer mask thumbnail, then go to Select > Select and Mask. Set the View to Overlay so the masked-out area shows as red; it makes stray hair easy to see. Adjust the overlay opacity if needed.

  2. Choose the Refine Edge Brush

    On the left, select the Refine Edge Brush Tool (second from the top). Wherever you paint, Photoshop samples the texture and color under the brush and searches for more of it, adding fine hair to the selection and removing background between the strands.

  3. Paint Along the Hair Edge

    Click inside the hair near the edge and drag outward along the outline of the hair. Cover the whole edge in one or two continuous strokes. Stay on the boundary; painting deep inside the hairline can remove hair that doesn’t match the sample.

  4. Output to the Layer Mask

    Let Photoshop finish calculating, then set Output To to Layer Mask and click OK. Hold Alt/Option and click the mask thumbnail to view it in black and white. The strands should now be visible in the mask.

Fix the Mask with an Overlay-Mode Brush

If part of the mask is gray where it should be black, or background is still bleeding through, this trick cleans it without destroying the fine detail.

  1. Set the Brush Mode to Overlay

    With the mask selected, press B for the Brush Tool and change the Mode in the options bar from Normal to Overlay.

  2. Paint Black to Darken, White to Brighten

    Painting black in Overlay mode darkens the gray areas of the mask toward black while leaving the pure white (the hair) untouched. Painting white does the reverse, protecting the dark areas. Paint along the edge until the mask is crisp.

  3. Switch the Brush Back to Normal

    Set the brush Mode back to Normal as soon as you finish. A brush stuck in Overlay mode is a very common reason the Brush Tool “stops working” the next day.

Check the Result

  1. Drop In a New Background

    Add a Solid Color fill layer set to white and drag it below the subject. Press F for full-screen and inspect the hair. Fine strands should be intact, with no halo of the old background.

When You Need More

Hair varies enormously, from dark hair on a light background to blonde flyaways against a busy scene, and each situation has its own best technique. This method works most of the time; for the difficult cases, PHLEARN has a full PRO course on cutting out hair. Tomorrow we take a cut-out subject and match its light and color to a new background.

Master Photoshop, Lightroom and Photography

Join PHLEARN PRO for $12.99 a month or $99.99 a year. Cancel anytime, with a 100% money-back guarantee.

As featured in

  • 500px
  • Adobe
  • Fstoppers
  • HuffPost
  • Inc.
  • PetaPixel