How to remove the background from a photo?
- 1.
Choose a model
Fast works best for people. Precise also handles products, animals and objects (larger model, about 100 MB).
- 2.
Add a photo
Drop a JPG, PNG or WebP file, choose it from your device or paste a screenshot with Ctrl+V. You can add several photos at once.
- 3.
Wait for the model
On first use the browser downloads the AI model (about 30 MB in Fast mode). After that it loads from the browser cache.
- 4.
Download
Drag the divider on the preview (mouse or finger) to compare before and after. Pick a background and download PNG, JPG or WebP, or all results as a ZIP.
How does in-browser background removal work?
The tool uses an image segmentation neural network that scores every pixel as foreground or background. The result is a soft mask (0-255), so hair and edges stay smooth. The mask becomes the alpha channel of your original photo.
Fast mode runs on the processor (WebAssembly), where it gives the most reliable result. Precise mode uses a larger model on your graphics card (WebGPU) and falls back to the processor when WebGPU is unavailable or fails, which is noticeably slower. Processing time depends on your device.
The preview shows the cut-out and the original at the same size, so you can drag the divider across fine edges such as hair and check them before downloading.
Fast or Precise mode?
| Mode | Model and licence | One-time download | Best for |
|---|---|---|---|
| Fast | MODNet, Apache-2.0 | about 30 MB | portraits, CV photos, avatars |
| Precise | BiRefNet lite, MIT | about 100 MB | products, animals, cars, objects |
Both licences allow commercial use. Precise mode works best on a computer: with a graphics card (WebGPU) it is several times faster, and weaker phones may run out of memory.
Privacy: what is sent over the internet?
Your photos are not uploaded anywhere. Only the AI model (from Hugging Face servers) and the ONNX Runtime (from the jsDelivr CDN) are downloaded. Your browser caches them, so later visits do not download them again unless you clear site data. You can cancel the download at any time.
Tips for the best result and which format to download
- A subject that stands out from the background is cut out more cleanly.
- Motion blur or soft focus produces semi-transparent borders.
- For products and animals, use Precise mode. The portrait model may skip objects.
- Images above 4096 px on the longer side are scaled down so the browser does not run out of memory.
PNG keeps transparency, so use it to place the cut-out on another background. JPG has no transparency (empty areas become white), but the file is usually several times smaller. WebP supports transparency and is lighter than PNG, which suits websites.
Frequently asked questions
Is it free?
+
Is my photo uploaded to a server?
+
How do I get a product photo on a white background?
+
Why was my object not cut out?
+
Does it work on a phone?
+
Guides using this tool
Updated: