BGNINJAOpen the tool โ†’

Remove the background around hair

By ShinobiTools Team ยท Last updated: July 2026

Hair is where most cut-outs fall apart. BGNinja's segmentation model is trained to keep fine strands, and the Erase and Restore brushes let you perfect the edge by hand. Free, no account.

Remove a background now โ†’

Why hair is the hard part

A jacket or a phone has one clean outline. Hair has hundreds of thin, semi-transparent strands, and the background shows between them. Old 'magic wand' selections either chop the hair into a helmet shape or leave a halo of the old background around it. A model trained on real portraits predicts a soft edge per strand instead of one hard line, which is why the result looks natural rather than cut with scissors.

Give the model a fair chance

AI does the heavy lifting, but the photo still matters. Contrast between the hair and the background is the single biggest factor: dark hair against a light wall cuts beautifully, dark hair against a dark doorway is hard for any tool. Even, diffuse light beats harsh shadows.

  1. Shoot or pick a photo with some contrast behind the hair.
  2. Upload it to BGNinja and let it cut the subject out.
  3. Zoom into the hairline to check the edge.
  4. Use ๐Ÿฉน Erase to remove a leftover halo and โ†ฉ Restore to paint back strands the cut dropped.

When to touch up by hand

Even a good cut can leave a faint edge where the light wrapped around the hair. The Restore brush paints the original strands back exactly where you want them, and Erase clears any background that clung on. It's the same fine-tuning you'd do in an editor, minus the pen tool. See the general background remover and tips for cleaner cut-outs.

What a matte actually stores at the hair line

Almost every hair problem makes sense once you know that a cut-out isn't a yes/no decision per pixel. The alpha channel stores 256 levels, and along a hair line most pixels are partly you and partly the room behind you โ€” a strand thinner than a pixel makes that pixel maybe 40% hair, 60% wall. That's what "soft edge" means technically.

Two consequences worth knowing:

Which gives you the single most useful trick on this page: composite onto a colour in the same family as the original background and the halo becomes invisible, because the leftover colour matches what's now behind it. Photographed against a white wall and need it on a colour? Pick a light one and the fringe disappears. Need it on something dark, from a light original? That's when a pixel or two of manual work at the edge is genuinely worth it.

Hair types, roughly ranked by difficulty

Not all hair is equally hard, and the ranking isn't about how it looks but about how many sub-pixel edges it has:

  1. Smooth, dark hair against a light plain wall โ€” near-perfect. One high-contrast outline, few thin strands.
  2. Tied-back or short hair โ€” also easy, for the same reason.
  3. Curly and afro-textured hair โ€” genuinely hard, not because of the curl but because the silhouette contains hundreds of thin gaps that are each smaller than a pixel at normal resolution. This is where source resolution matters more than anything else.
  4. Wispy flyaways and static โ€” individual strands crossing open background. Some survive, some don't; nothing recovers all of them.
  5. Light blonde hair against a bright background โ€” the contrast the model needs simply isn't in the photo.
  6. Any hair over a busy patterned background โ€” leaves, bookshelves, brickwork. The pattern gives false edges everywhere.

The fix for the hard cases is upstream and physical: fill more of the frame with the head. Standing closer, or shooting at your camera's full resolution instead of a cropped screenshot, means each strand is two or three pixels wide instead of half a pixel โ€” and a strand that's actually there can be kept, while one that's implied cannot. Upscaling afterwards doesn't help; the information was never captured. This site accepts up to 99 MB and 40 megapixels, so there's no reason to downscale before uploading.

Common questions

Does it really keep individual strands?

Yes, far better than a manual selection. The model predicts a soft edge per strand. Very low contrast between hair and background is still hard for any tool.

What if there's a halo around the hair?

Paint it away with the ๐Ÿฉน Erase brush, and use โ†ฉ Restore to bring back any strands that were trimmed too far.

Does it work on fur and pets?

Yes. Fur behaves like hair for the model, so pets cut out well with the same soft edges.

What photo works best?

One with even light and some contrast between the hair and the background. That gives the cleanest hairline.