Remove the background from a photo
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.
- 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.