Background Remover

Use this background remover to cut the main subject out of a photo and download it as a transparent PNG, with the photo staying on your device the whole time.

Photo

Drop a file here, paste from the clipboard, or choose one

PNG, JPG, GIF, WebP, SVG, BMP, processed in this tab

Cut-out

The cut-out appears here. The first run downloads a 4.6 MB model and a 12 MB engine, then both stay cached.

Background Remover result image
Runs locally in your browser

About the Background Remover

A small neural network, U2-Net-p, looks at your photo and decides which pixels belong to the main subject. The model file is 4.6 MB and runs in your browser through ONNX Runtime Web, a WebAssembly engine of about 12 MB, so nothing is uploaded and nothing is sent to an API. Both files come from this site, download once, and are then served from your browser cache. The model reads the picture at 320 by 320 pixels, so its raw mask is coarse; the tool then snaps that mask to the real edges of your full-size photo with a guided filter, which is what removes the halo you would otherwise see around hair and shoulders.

It works best on a clear subject with some contrast against its surroundings: a person or pet, a product on a table, a plant or a toy. It is weaker on fine hair against a similar-coloured background, glass and other see-through objects, group shots where it may keep only part of the crowd, and scenes with no single subject such as landscapes. If the cut-out eats into the subject, lower Threshold; if background remains, raise it. Show the mask displays the black and white mask so you can judge the edge, and Feather softens it. Crop to the subject trims the empty border so the PNG is only as large as the cut-out. The result is limited to 4096 pixels on the long side, and files up to 40 MB or 48 megapixels are accepted.

Once you have a transparent PNG you can shrink it with the image optimizer, place it on a coloured card in the online image editor, round its corners with round image corners, or turn it into a JPG with the image converter if the destination does not support transparency.

How to use

  1. Drop a photo on the left pane, paste one from the clipboard, or choose a file. The first run downloads the model and then shows its progress.
  2. Check the cut-out on the checkerboard. Move Threshold down if part of the subject is missing and up if background is left; the picture updates without running the model again.
  3. Pick Solid colour behind for a flat backdrop such as white for a product photo, or Show the mask to inspect the edge.
  4. Press Download to save the PNG.

Common questions

Is my photo uploaded anywhere?
No. The model and the engine are downloaded to your browser, and the photo is processed there. Apart from the usual page assets and analytics, the only downloads are those two files.
How much does the first run download?
About 17 MB: the 4.6 MB model and the 12 MB WebAssembly engine, which compresses in transit. Both are cached by your browser, so later runs, and later visits, do not download them again.
Why is the cut-out wrong around hair or a busy background?
The network sees a 320 by 320 version of the photo and makes one decision per region, so wispy hair, transparent objects and low-contrast edges are guesses. Try the Threshold slider, or start from a photo where the subject is clearly lit and separated from what is behind it.
What happens to very large photos?
Photos up to 40 MB and 48 megapixels are accepted. The result is scaled down so its long side is at most 4096 pixels, and the status line says so when that happens.
Can I use the result commercially?
The tool and the model are free to use, and the model is released under the Apache-2.0 licence. Whether you may use a given photo or the person in it is a question about the photo, not about this tool.