Remove the background from a photo

🔒 Runs in your browser — files are never uploaded

Cut the subject out and put white, light blue or nothing behind them — the backgrounds passport offices and exam portals insist on. The recognition runs on your own device, so your photograph is never uploaded.

How it works
  • Choose a photo. It is read straight into the page — nothing is uploaded.
  • Leave it on “a person” for a portrait. The first run downloads a 6 MB recognition model, once, and it is cached after that.
  • Pick white, light blue or transparent, and adjust the edge softness if you want.
  • Download the result.

Two different jobs, two different methods

Cutting a person out of a photograph and cutting a logo off a white card are not the same problem, and a tool that pretends otherwise does one of them badly. This page offers both methods and asks you which you have.

A person is handled by a segmentation model — Google's open-source MediaPipe selfie segmentation — running as WebAssembly inside your browser. It has been trained on photographs of people, so it recognises a human figure rather than matching colours. That matters more than it sounds: a light grey shirt in front of a light grey wall is, to a colour-matching tool, indistinguishable from the wall, and the shirt disappears. A model that knows what a person looks like keeps the shirt.

An object on a plain background is handled by colour instead, spreading inwards from the edges of the picture for as long as the colour keeps matching. For a logo on white, a product on a sweep, or a signature on paper, this is faster, needs no download, and gives a cleaner edge than a model would.

The model is about 6 MB and is fetched the first time you use it, not when the page loads. Your browser keeps it afterwards, so the second photograph is instant and works offline.

Why passport and exam photos are the point of this

Almost every identity photograph specification says the same thing in different words: plain light background, even, no shadow, no pattern. Indian exam portals, passport offices, visa applications and employer ID systems all converge on it, and a photograph taken at home against a cream wall in a lit room fails all three.

Replacing the background outright fixes it in one step. Pick white for most forms, or light blue, which a handful of government IDs require instead. If your instructions name an exact shade, use the colour picker and match it rather than guessing.

Once the background is right, what remains is size and framing. The passport photo sheet lays the result out at exactly 35 × 45 mm for printing, and the exam photo resizer gets it inside a portal's kilobyte limit.

What the model does well, and where it struggles

It is reliable on the ordinary case: one person, facing the camera, head and shoulders, reasonable light. That is what it was trained for and what a form photograph is.

It is weaker on fine detail at the edges. Loose or curly hair against a busy background comes out approximate, because the mask it produces is lower resolution than your photograph and is then scaled up. Raising the edge softness hides a ragged edge; it does not add detail that was never there. Objects held in the hand, a second person partly in frame, and hats or headwear that extend well beyond the head are the other common misses.

If it finds no person at all, it says so rather than handing you a blank image. When that happens the subject is usually not a person, or is very small in the frame — switch to the colour method, or crop closer first.

Transparent, or a solid colour

A solid colour gives a JPG, which is what upload portals accept, and it is the default here because forms are what most people come for.

Transparent gives a PNG with nothing behind the subject, for a logo or a product shot that will sit on a coloured page later. Note that JPG cannot store transparency at all — save a cut-out as JPG anywhere and the empty area comes back as black or white.

Frequently asked questions

Is my photo uploaded to remove the background?
No. The model runs as WebAssembly inside your browser and the image never leaves your device. The only thing downloaded is the model itself, which is the same for everybody and says nothing about your photo.
How big is the download, and how often?
About 6 MB, the first time you use the person method. Your browser caches it, so later photographs need no download and work with no connection at all. The colour method downloads nothing.
It removed my shirt along with the background.
That is the colour method doing what colour methods do when your clothing is close in tone to the wall behind you. Switch the selector to “a person”, which uses the model and does not make that mistake.
It says no person was found.
The model did not recognise a human figure — usually because the subject is not a person, is very small in the frame, or is turned away. Crop closer, or switch to the colour method if the background is plain.
The edge around the hair looks rough.
The mask is produced at a lower resolution than your photograph and scaled up, so very fine detail is approximate. Increase the edge softness to blend it, and prefer a photograph taken against a contrasting background where you can.
Which background colour do passport and exam forms want?
Plain white is the usual requirement, and a few government IDs ask for light blue instead. Both are offered, and the colour picker will match an exact shade. Always check the specification you were given.
Why is my transparent image black when I open it?
Because it was saved or converted to JPG somewhere along the way, and JPG cannot store transparency. Keep it as a PNG, or choose a solid background colour instead.