How to Cut Out Hair in Photos Without Losing Detail
Why hair is the hardest part of any cutout, and how to cut out hair in photos cleanly with AI, Photoshop's refine tools and better shooting techniques.
5 min read

To cut out hair in photos cleanly, you need a method that creates a soft mask rather than a hard outline, because individual strands are thinner than a pixel and blend with the background. AI background removers do this automatically by estimating partial transparency along the edges, while Photoshop's Select and Mask workspace lets you refine hair by hand. Good lighting and a contrasting background when shooting make either method far more effective.
Why hair is so difficult to cut out
Most objects have a clear boundary. Hair does not. Flyaway strands, curls and frizz create an edge that is partly subject and partly background, often within a single pixel. Several things make it harder:
- Fine strands are thinner than a pixel at normal resolutions.
- Background color bleeds into semi-transparent hair, so strands pick up the old background's tint.
- Similar tones - dark hair against a dark background, blond hair against a white wall - leave few clues about where the edge is.
- Motion and focus blur strands into the background.
A hard-edged selection, like one made with a pen tool, chops these strands off and leaves a helmet-like outline. The goal is an alpha matte: a mask where edge pixels are partly transparent. Our explainer on how AI background removal works covers alpha mattes in more depth.
Method 1: Use an AI background remover
AI models trained for segmentation and matting are designed to predict partial transparency, which makes them well suited to hair.
- Upload the portrait to Remove Photo Bg's background remover. JPG, JPEG, PNG and WEBP files up to 16 MB are supported.
- The AI detects the person automatically and removes the background.
- Zoom in on the hairline in the preview.
- Download the transparent PNG.
For headshots and profile pictures with reasonable contrast, this is usually all you need. If a few strands are lost, that is typically the trade-off for a clean, halo-free edge.
Method 2: Refine hair in Photoshop
When you need maximum control, Photoshop's tools let you rescue fine strands by hand.
- Choose Select → Subject to create an automatic selection of the person.
- Open Select and Mask. Choose a view mode such as On Black or On White that makes the hair edge easy to see.
- Use the Refine Hair button (if available in your version) to let Photoshop analyze the hair edge.
- Paint along the hairline with the Refine Edge Brush. It tells Photoshop to search that zone for strands rather than treating it as a hard edge.
- Enable Decontaminate Colors to replace background color bleeding into the strands with nearby hair color.
- Output to a New Layer with Layer Mask and check the result against different backgrounds.
For a broader comparison of these workflows, see Photoshop vs online background removers.
Channel-based masking
For studio shots on a plain background, experienced retouchers sometimes use channel masks: duplicate the color channel with the strongest contrast between hair and background, raise the contrast with Levels or Curves until the hair is black and the background white, and load it as a selection. This is time-consuming but can capture very fine detail.
Fixing common hair problems
Halos and fringes
A light or dark outline around the hair is leftover background color. Fixes include decontaminating colors, slightly shifting the mask edge inward, or placing the cutout on a background similar in brightness to the original.
Choppy, helmet-like edges
The selection is too hard. Use a soft matting method rather than a pen path, or let an AI tool generate a soft mask.
Lost flyaways
Some flyaway strands are simply too faint to keep. In professional retouching, it is common to remove stray flyaways deliberately for a neater look, or to paint a few strands back in by hand.
Gaps inside curly hair
Background showing through curls should become transparent. Check those gaps carefully, because a model may fill them in or leave background patches behind.
Shooting tips for easier hair cutouts
The best fix happens before you edit. If you can control the photo, these habits help:
- Use a plain, contrasting background. Dark hair on a light backdrop and light hair on a darker backdrop give the clearest edges.
- Add separation light. A rim or hair light from behind makes strands stand out from the background.
- Keep distance from the backdrop. Moving the subject away from the wall reduces color spill and shadows.
- Avoid busy backgrounds. Patterns and foliage behind hair are hard for any tool.
- Focus carefully. Sharp strands are easier to separate than soft, blurry ones.
- Tidy the hair. Smoothing a few flyaways before the shot saves cleanup time.
More advice is in how to take photos that are easy to cut out.
Choosing a new background for hair cutouts
Where you place the cutout affects how natural the hair looks:
- Backgrounds with brightness similar to the original hide minor edge imperfections.
- Soft, out-of-focus backgrounds blend hair better than sharp, high-contrast ones.
- Very dark or very light solid colors reveal halos most clearly, so check edges carefully against them.
For more ideas, read how to add a new background to a photo.
Pets and fur follow the same rules
Everything in this guide applies to animal fur as well. Long-haired cats and dogs, fluffy ears and whiskers pose the same soft-edge challenge as human hair, and whiskers in particular are often too thin to survive any cutout. Photograph pets against a plain, contrasting background in good light, keep the shutter speed high enough to freeze movement, and check the fur edge closely before using the result. Accept that a few whiskers may need to be painted back in by hand for a perfect finish.
Resolution matters
The fewer pixels a strand covers, the harder it is to preserve. Low-resolution portraits often end up with blurry, mushy hair edges. If your source is small, enlarging it 4× with the AI image upscaler before removing the background can give the model more detail to work with.
Cut out hair the easy way
Hair is the toughest test for any background removal method, but a soft mask, a contrasting background and a sharp, well-lit photo make clean results achievable. Start with AI for speed and switch to manual refinement only when a photo really needs it. Upload a portrait to Remove Photo Bg to see how it handles the hairline.