Cutting a person, a product or a pet out of its background used to take careful work in a photo editor. Our Remove Background tool does it automatically with a machine-learning model trained to find the main subject. It is fast and good on clear photos, and it has predictable weak spots. We ran five different pictures through it to show both.
How it works
The image is uploaded over HTTPS to our server, where rembg, an open-source tool built on the U²-Net model, works out which pixels belong to the subject and which to the background. You get a PNG in which the background is transparent; edge pixels, such as strands of hair or fur, are partly see-through so the cut-out blends onto a new background. The upload and the result are deleted from our server within 2 hours. JPG, PNG and WebP images up to 10 MB are accepted.
What we tested
| Image | Time on our server | Result |
|---|---|---|
| Portrait, 512 × 512 | 3.3 s | Person cut out cleanly; a patch of background in one corner was partly kept |
| Product photo of a coffee cup, 600 × 400 | 1.9 s | Clean cut-out, background fully removed |
| Cat, 451 × 300 | 1.9 s | Subject kept; about a quarter of all pixels came out partly see-through, around the fur and in parts of the background, so check before use |
| Portrait enlarged to 2000 × 2000 | 2.6 s | Similar cut-out; the PNG was 2.4 MB |
| Simple logo on a gray background | 1.6 s | Clean, background fully removed |
Where it does well, and where to look closely
- Clear subjects on plain backgrounds came out clean: the product and the logo needed no touching up.
- Hair and fur get soft, partly transparent edges. That looks natural on a similar new background but can show a faint halo of the old background color on a very different one. Check at 100% zoom.
- Busy scenes with things that could be part of the subject (a flag, a chair, a second person) are where it guesses. In our portrait a piece of the background in a corner was partly kept.
- Bigger images cost file size more than time: the 2000-pixel version took about as long as the small one but made a much larger PNG.
Getting a cleaner cut-out
- Photograph the subject against a plain wall or sheet, in a color different from the subject's clothes or fur.
- Use even light, without strong shadows on the background right next to the subject.
- Crop to the subject before uploading, so there is less background to decide about.
- Upload the original photo, not a small copy from a chat app.
After you remove the background
- The PNG keeps its transparency in documents, slides and design tools. To put it on white for a form that needs a JPG, convert it with PNG to JPG; our guide to transparent PNG to JPG explains what happens to the edges.
- Large PNGs are heavy for websites: Compress Image turns them into WebP, which keeps transparency (in Safari, which cannot save WebP, it makes a JPG with a white background instead).
- For ID photos, keep in mind that official rules usually ask for a real plain background at the time the photo was taken; check the requirements before using an edited photo.
