How AI background removal works in your browser
Most background removers upload your photo to a server and send back the result. On this site, an AI model runs inside your browser instead, so the photo never leaves your device. That has costs as well as benefits. Here is what happens, step by step, and how to get the cleanest result.
Published November 18, 2026
What happens, step by step
- The browser downloads the AI model, once: 78.2 MB, packed from a model file of 101 MB. The browser keeps it, so later photos start right away.
- The photo is scaled down to a square copy of 512 × 512 pixels, the size the model was made for. A photo that is not square is squeezed to fit; only the mask is made from this copy.
- The model looks at this copy and decides, for every pixel, how likely it is to belong to the subject. The result is a mask: a gray image that is white on the subject and black on the background.
- The mask is scaled back up to the size of your photo, with smoothing, and becomes the transparency of the result.
- You get a PNG with a transparent background, as wide and as high in pixels as your photo.
Why it runs on your device, and what that costs
Running the model in the browser means the photo is not uploaded: nobody else gets to see it, store it or use it. The price is paid by your device:
- The download. The model starts downloading in the background when you open the page, so it is often ready by the time you choose a photo. If your browser asks sites to save data, it waits until you choose one.
- Time. On a laptop with an Apple M3 processor, one photo takes about 6 seconds once the model is ready. Phones and older computers take longer.
- Memory. While it works, the model needs about 1.3 GB. On a phone with little free memory, the browser may close the page; closing other apps helps.
The model
The tool uses BiRefNet_lite, an open model published under the MIT license, in a version adapted for browsers. It was trained to separate the main subject of any photo from its background: people, animals, products and objects, not only portraits.
At first the site used a smaller model trained only on people. It cut objects, animals and products wrongly, so we compared both on 11 test photos and switched to BiRefNet_lite, which was clearly better on them.
What is hard for the model
- Hair and fur. The model sees a 512-pixel copy. On a 12-megapixel photo of 4032 × 3024 pixels, one pixel of that copy covers about 8 × 6 pixels of your photo, so single strands of hair are thinner than what the model can see. The smoothing makes the edge soft rather than jagged, but loose strands can disappear.
- Colors close to the background: a white shirt against a white wall, a black dog on a dark sofa.
- Things you can see through, such as glass, a veil or smoke. The model has to guess how much of them belongs to the subject.
- Several subjects, or none that clearly stands out. The model picks what looks like the main subject, which may not be the one you mean.
How to get cleaner edges
- Crop first. If the subject fills more of the photo, it gets more of the 512 pixels the model sees, and the edges come out more precise.
- Choose a photo where the subject stands out from the background in color or brightness.
- Check the result with the before and after divider, especially over hair, fur and thin parts such as glasses or plant stems.
- Keep the PNG. JPG has no transparency, so saving as JPG fills the background with a color; WebP keeps it.
To crop before you remove the background, use “Crop and rotate”.
What the tool does not do yet
There is no brush yet to fix spots by hand, and no way to put a new background behind the subject on the same page. The PNG has a transparent background, so you can place it on any color or picture in another program.
Try it on your own photo
The tool works in your browser. Your photo is not uploaded.
Frequently asked questions
Is my photo uploaded?
No. The background is removed in your browser, on your own device. Only the model itself is downloaded to your device.
Why does the page download 78 MB?
That is the AI model. It is downloaded once, in the background when you open the page, and the browser keeps it for the next time. On a slow or limited connection, set your browser to save data: then the download waits until you choose a photo.
Do I get the full size, without a watermark?
Yes. The PNG has the same width and height in pixels as your photo, and nothing is added to it. On very large photos the edges can be a little softer, because the model works on a smaller copy.
Why does it take longer on a phone?
The model runs on the processor of your device, and phones are usually slower than computers at this kind of work. The first photo can also wait for the rest of the model download.
More guides
- JPEG, WebP or AVIF? We measured 10 photosWe saved 10 photos as JPEG, WebP and AVIF with the encoders this site uses: file sizes, similarity scores, speed, and which format to pick.
- How to get a photo under 100 KB, 200 KB, 500 KB or 1 MBForms often limit photos to a few hundred KB. Measured on 10 photos: which pixel size and JPEG quality get a phone photo under each limit.
- How to remove the location from a photo before you share itPhone photos often store where they were taken. How to check it, how to stop it on iPhone and Android, and how to remove it from photos you already took.
- What is a HEIC file, and how do you open or convert it?iPhones save photos as HEIC. Why, which devices open it, how to make an iPhone save JPG instead, and how to convert HEIC to JPG without uploading it.
- Pixels, megapixels and DPI: how big is a photo really?What megapixels mean, how many pixels a screen, a website or a print needs, why DPI changes nothing on screen, and how much memory a photo needs.