Why background removal cuts off hair

Short answer: the cutout has to decide whether each pixel is subject or background, and at a hair edge a pixel is honestly both. That is a limit of the question being asked, not of one particular tool.

5 min read · last checked 2026-09-08

Advertisement

Short answer: a background remover produces a mask, and a mask says of every pixel that it is subject or that it is background. Along a shoulder that question has an answer. Along a strand of hair it does not — a single pixel there really is part hair and part wall — so whichever way the model decides, it is throwing away half of what was in that pixel.

This is worth knowing because it changes what you do about it. It is not a bug in one website, and trying four more will not fix it. It is a property of the question, and the fix is upstream, in the photograph.

Two panels showing the same drawn mask reduced two different ways. On the left, each pixel is forced to be in or out, and the thin strands break into scattered dots. On the right, each pixel can be partly in, and the strands stay continuous and soft. The solid round edge below looks the same in both panels.
One drawing, reduced twice. The solid edge survives either way. The strands only survive when a pixel is allowed to be partly transparent — and a mask, by definition, does not allow that.
The tool Remove Background Cut the subject out of a photo. The model runs on your device, so nothing is uploaded.

Deciding versus measuring

There are two different jobs here and they get the same name.

Segmentation draws a line around the subject. Every pixel inside is kept whole, every pixel outside is discarded. It is fast, it is what most background removers do, and on a person against a plain wall it is completely adequate.

Matting asks a harder question: how much of this pixel is subject? The answer is a number between nothing and everything, stored as transparency, and it is the only way a strand thinner than a pixel can survive at all. It is slower, it needs more of the picture to work from, and it is what the expensive tools spend their money on.

Both are guessing. The second one is allowed to guess a fraction, which is why the strands in the right-hand panel above are still there.

The three things that always struggle

  • Hair and fur. The classic case, for the reason above. Fine, flyaway strands against a busy background are the worst combination there is.
  • Anything transparent. Glass, a veil, tulle, a plastic bottle, sunglasses. Every pixel is partly the object and partly whatever is behind it, all the way through the object rather than only at its edge. There is no correct mask, only a choice.
  • Thin structures. Bicycle spokes, chain-link fence, plant stems, chair legs, a microphone stand. Same arithmetic as hair, and they tend to be in front of the very background you are removing.

Motion blur belongs on the list too, for the same reason: a blurred edge is a wide band of pixels that are genuinely part subject and part background.

What actually helps, before you take the photo

Almost everything that improves a cutout happens with the camera, not afterwards.

  • Put contrast behind the subject. Dark hair against a pale wall works; dark hair against a dark bookcase is asking the model to find a boundary that is barely there. This single change does more than every other item on this list combined.
  • Step away from the wall. A metre is enough. Standing against it puts a hard shadow right where the edge is, and a shadow is exactly the kind of ambiguous pixel that goes wrong.
  • More light, flatter light. Facing a window beats a ceiling bulb. Harsh side light carves shadows into the edge you want found.
  • Keep still. Motion blur widens every edge into a band of half-pixels.
  • Plain beats interesting. A blank wall, a door, a sheet. The busier the background, the more places the model can find an edge that is not the one you meant.

If the shot already exists and cannot be retaken, cropping in before the cutout sometimes helps for a mundane reason: a subject filling more of the frame is a subject at higher resolution, and the strands are then several pixels wide rather than a fraction of one.

When the ragged edge does not matter

Where the cutout is going decides how good it needs to be.

If it is landing on a background of a similar tone, small errors disappear — a slightly chewed dark edge on a dark page is invisible. If it is going onto white and the original background was white-ish, likewise. The cases that expose every flaw are a light subject dropped onto a dark background, or vice versa, at large size.

So if the result looks rough in the preview, look at it on the background it is actually for before deciding it failed. Quite often it has not.

Where a good cutout gets ruined afterwards

The transparency is stored in the file, and only some formats can store it. Save a cutout as a JPG and every transparent pixel has to become some colour — usually white or black — and the work is gone. That is not a bug either; a JPG has no way to say "partly transparent". The JPG or PNG guide covers which to use and when.

The same thing happens in software that flattens: pasting into some documents, some chat apps, and anything that re-encodes on upload. If the cutout matters, keep the PNG, and put the flattened version wherever it needs to go.

Doing it without uploading the photo

Most background removers want the picture on their server. The tool here runs the model in your browser instead — the photo never leaves your machine, which for a portrait or a product shot is the difference between one copy and two.

It also means retrying is free. Try the shot, look at the edge, and if the hair is chewed, take one more photo a metre away from the wall. That second photo will do more than any amount of switching tools.

Advertisement
Advertisement

Cut it out on your own machine

The model runs in your browser, so the photo is never uploaded — which also means you can try three shots without three uploads.

Common questions

Why does background removal cut off my hair?

Because a cutout has to decide, pixel by pixel, whether each one is subject or background — and at a hair edge a single pixel is genuinely part hair and part wall. Whichever way it decides, half of what was in that pixel is thrown away. That is a limit of the question, not of one particular tool, so trying another site rarely helps.

How do I get a better cutout?

Almost all of it happens before the photo. Put contrast behind the subject — dark hair against a pale wall, not a dark bookcase. Stand a metre away from the background so there is no hard shadow at the edge. Use plenty of soft light, keep still to avoid motion blur, and prefer a plain background to an interesting one.

What is the difference between segmentation and matting?

Segmentation draws a line and keeps everything inside it, so each pixel is entirely in or entirely out. Matting asks how much of each pixel is subject and stores the answer as partial transparency, which is the only way a strand thinner than a pixel survives. Most free removers do the first.

Why does my transparent background turn white?

Because the file was saved as a JPG, and a JPG has no way to record transparency — every pixel must have a colour, so the transparent ones become white or black. Keep the PNG version of a cutout, and make a flattened copy only where you need one.

Does background removal work on glass or a bottle?

Not really, and not for want of trying. A transparent object is partly itself and partly whatever is behind it across its whole surface, not only at the edge, so there is no correct mask — only a choice. Product photographers usually reshoot on the final background instead.

Do I have to upload my photo?

Not here. The model runs in your own browser, so the picture never leaves your device and there is no account. It also means you can try several shots without uploading several times.

More guides

What is a HEIC file, and why will your PC not open it?

Half the size of a JPG, and a patent licence is why Windows refuses it.

How to get a PDF under an upload limit

Most PDFs cannot be compressed at all. Ten seconds tells you which kind you have.

Why WhatsApp ruins your photos, and how to send one properly

It re-compresses every picture you send. There is one way around it, and it is not the quality setting.

JPG or PNG: which should you use?

Photographs, JPG. Hard edges or transparency, PNG. The reason is worth two minutes.

How to get a photo under a KB limit

The quality slider is the wrong first move. Pixels are the lever that works.

Are QR codes safe? What is actually inside one

Nothing inside one can run. The risks are the destination, the sticker over the original, and who owns the code.

Why video files are so big, and what actually shrinks them

Bitrate times length is the file size. Everything else follows from that.

MP3, WAV or M4A: which audio format, and at what bitrate?

128 kbps is about a megabyte a minute. Everything else follows from that.

Percentages, and the four sums people actually get wrong

20% off then 10% off is not 30% off, and adding 20% then taking it back leaves you short.

How to take a passport photo at home that is not rejected

The rule is the height of your head, not the size of the photo — and the shadow behind you is geometry.

How to make a ringtone, and why the cutting is the easy part

Android takes an MP3 straight. An iPhone wants an M4R, which is an M4A with a different extension.

Compound interest, in both directions

Savings growing and a card balance running away are the same sum. Only the side you are standing on differs.

What actually happens when a password leaks

Why one company’s bad week becomes your problem at forty other sites — and the single habit that breaks the chain.

What you can change in a PDF without Acrobat

Moving pages and stamping them costs nothing. Changing the words is the one genuinely hard edit, and this is why.

Are electronic signatures legally binding?

Valid nearly everywhere — but a drawn signature proves the mark is there, not who put it there. What that changes, and when it is not enough.

Why OCR gets text wrong

Why the mistakes land in invoice numbers rather than in sentences, what actually ruins a scan, and how to photograph a page properly.

What the numbers on a barcode mean

Three fields and a checksum. Why “690 means made in China” is wrong, and how the last digit is worked out from the others.

Why date calculators disagree with each other

One month after 31 January is 28 February, 2 March or 3 March depending on the rule. Why the calendar refuses to be arithmetic.

What fitness numbers actually tell you

Why the level a fitness formula gives you is usually wrong, why the change usually is not, and which of the two is worth watching.

What has to be on an invoice

The blocks nearly every country expects, the two that people get wrong, and why “net 30” gets paid later than a date.

Subtitles: a separate file, or burned into the video?

A file the player draws, or pixels in the picture. What each costs, and why automatic captions get names wrong and sentences right.

Why your final grade is not the average of your grades

The same four marks give 82.5 averaged and 74.0 weighted. How weighting works, and what you really need on the final.

Advertisement