Instructions
Remove the background
How to use
- Choose a photo, say whether it shows people or something else, then press Remove background.
- Fix anything missed or taken by setting the brush to Keep or Erase and rubbing over the preview.
Supported input
- JPG, PNG and WebP up to 40 MB.
- The subject is found on a copy of up to 2,400 px on the long side, and the result is saved as a transparent PNG at the original size.
- The background can be filled white or black, the edge softened, and the mask corrected with a keep or erase brush, by mouse or finger (the last ten strokes can be undone).
- Where the browser offers a GPU (WebGPU) the model runs on it, otherwise on the CPU, with the same downloads.
Input example
product.jpg
Result example
A PNG with a transparent background
Troubleshooting
- If the model cannot be downloaded, check the connection and press again.
- Older devices and browsers may be slow or unable to run it.
Limitations
- On first use the model that finds the background is downloaded once from huggingface.co (about 4.4 MB for general pictures, 24.7 MB for people), and the runtime that runs it from cdn.jsdelivr.net (about 27 MB).
- Those are outside requests; your photo is not sent.
- Fine detail such as hair, and areas the same colour as the background, may not come out clean; fix them with the brush.
How it works
- Finds the subject of a photo and makes the background transparent.
- The work is done on this device; the photo is not uploaded.