Remove background
Cut the subject out of a photo and download a transparent PNG. The model runs in your browser, so the picture is never uploaded.
The code for this tool is fetched only when you open it.
What remove background does
Remove background cuts the subject out of a photo and leaves a transparent PNG behind. It handles the ordinary cases — a person, a product, a pet — where the subject is clearly in front of a background, and it produces a full-resolution cut-out rather than a soft preview.
How it works
The segmentation model from @imgly/background-removal runs inside the tab on WebAssembly and WebGPU where available. The model weights download once on first use and then sit in the browser cache; the photo itself is never sent anywhere.
The file never leaves this tab. It is decoded by the browser, worked on in memory and encoded again — no request carries it, and there is no server-side copy to delete afterwards because none is made.
Formats and limits
| Takes | JPG, PNG and WebP |
|---|---|
| Returns | PNG with an alpha channel at the source resolution |
| Keeps | Subject edges at full resolution, including hair falloff as far as the model resolves it |
| Does not keep | The original background entirely — there is no layer kept to restore it |
| Limits | 25 MB per file. The first run also downloads the model, which is tens of megabytes and is why the first cut-out takes noticeably longer than the second. |
| Price | Free, 5 runs a day, no account |
Worth knowing
- The download is one-time per browser profile; after that the model loads from cache and the run is CPU-bound on your machine rather than network-bound.
- Cluttered backgrounds, glass, and subjects the same colour as the wall are where segmentation models fail. A clearer source photo is faster than any amount of retrying.
Questions about remove background
Is the model trained on my photos?
No. It is a fixed set of weights downloaded to your browser and executed locally. Nothing about your image is transmitted, so there is nothing to train on.
Why is the first cut-out slow?
The model weights have to arrive before the first inference. On a normal connection that is the bulk of the wait; every later photo in the same browser session skips it.
What kind of photos work best?
One clear subject, reasonable contrast against the background, and the whole subject inside the frame. Portraits, product shots on a plain surface and pets work well. Transparent objects, motion blur and busy rooms do not.
Is my photo uploaded?
No. The model is downloaded to the browser and does the work locally, so the image never leaves the machine.
Why are the edges soft?
The model predicts partial coverage around hair, fur and glass, which is what makes a cut-out look real. A hard edge everywhere would look pasted.
Why does the first run take longer?
It fetches the model weights once. The browser caches them, so the second photo is much quicker.
What file types can I use?
It takes JPG, PNG and WebP. Anything the browser cannot decode is rejected with an error rather than producing a broken file.
What format is the output?
PNG with an alpha channel at the source resolution. What survives: Subject edges at full resolution, including hair falloff as far as the model resolves it. What is lost: The original background entirely — there is no layer kept to restore it.
How large can the file be?
25 MB per file on the free bench, with no page or run limit inside that size. Larger files are refused before any work starts rather than failing halfway through.
Is my file uploaded anywhere?
No. There is no upload step and no server-side copy: the browser decodes and re-encodes the file in this tab, and the network carries nothing about it.