Remove the Background from a Photo (Free)
Remove Background detects the subject in a photo and writes a transparent PNG, locally. For portraits, pets and ordinary objects it is a one-click job; the interesting parts sit at the edges of that sentence. The first run downloads the model, the tool handles one file at a time, and the daily counter is spent before the result exists. This page covers those mechanics so the tool behaves predictably the first time.
Try the free tool now
100% in your browser — no upload, no account, no watermark.
Open Remove Background from Photo OnlineThe four steps, and the state behind them
- Choose a JPG, PNG or WebP up to 20 MB.
- Press Remove Background.
- Wait - the button shows the model download percentage, then a processing message.
- Download the -nobg.png file.
Internally the tool is a four-state machine: idle, processing, done and error (RemoveBackgroundTool.tsx, lines 15-17). In the done state the layout switches to a side-by-side comparison - original on the left, cutout on the right with its file size - and the only two actions are Download and Process another (lines 145-191). There is no slider to refine the edge, no background colour to pick and no way to inspect the mask itself.
The first run downloads the model
The component calls the background-removal library with a progress callback that reports one specific phase: fetch:model (lines 57-67). While that phase runs, the button text shows the download percentage. The library fetches an ONNX model and a WebAssembly runtime from a CDN on first use, and its own documentation puts the default model at roughly 80 MB.
That explains two very different experiences. On a first visit the percentage climbs slowly and the cutout can take a while; on a second run the files come from the browser cache and the work is dominated by inference. Nothing about the photo is uploaded during either step - the download is code and weights coming the other way.
| Phase | First run | Later runs |
|---|---|---|
| Model and WASM files | fetched from the CDN, percentage shown | served from the browser cache |
| Your photo | read locally, never uploaded | read locally, never uploaded |
| Button label | model download percentage, then processing | processing only |
| Result | transparent PNG | transparent PNG |
If the percentage stalls, the network is the problem, not the image. Reloading and starting again is the only retry the interface offers.
What makes a photo easy or hard
The model looks for a subject that stands out from its surroundings. Three properties decide most of the outcome, and all three are set when the photo is taken: contrast between subject and background, a boundary that is in focus, and a subject fully inside the frame. A white shirt against a white wall has almost no boundary; motion blur turns the edge into a gradient; a cropped ear or paw gives the model an edge that continues out of frame.
Hair, fur and sheer fabric are the classic hard case, not because the model is weak but because those pixels genuinely mix subject and background. The output is a soft matte rather than a binary cut, which is why hair looks natural on a new background instead of showing a staircase of hard pixels. The same softness is where a faint halo can survive.
One practical rule: change the photo rather than the settings, because there are no settings. Side light creates separation, a plain background removes clutter, and tighter framing gives the model more pixels at the boundary.
One image, twenty operations, and a counter that runs first
The tool accepts one file at a time. The free tier allows 20 operations per day, stored in the browser rather than tied to an account (FREE_DAILY_LIMIT in src/lib/stats.ts). Pro removes that ceiling and changes nothing else about the workflow.
The order inside the handler matters more than it looks: the limit is tracked before the model is called (lines 48-51), and the error path only sets a generic message (line 85). A run that fails, or that you abandon by closing the tab, has already been counted. Twenty operations means twenty attempts, not twenty successes.
There is also no cancel button. The component creates an AbortController and passes its signal to the model fetch (lines 52-60), but no control in the interface triggers it. Leaving the page is the only way to stop a run, and that spends the operation anyway.
Reading the result before you download
The done state shows the cutout on a light grey panel at up to 400 px high (line 167). That size hides exactly the defects you care about. Before downloading, open the file at 100% on a dark background and look at four places: the hairline, the shoulders or product edges, the gap between an arm and the body, and anywhere the subject was close in tone to the background.
A grey rim means the mask kept a little background. A missing sliver means it removed part of the subject. Both are input problems more often than model problems, and both are cheaper to fix by re-shooting than by fighting the tool. When the cutout is good, keep the PNG: it is the master, and every background variant later should come from it rather than from a fresh removal.
The downloaded name comes from the source file with a -nobg suffix (line 93). Two photos called image.jpg from different folders therefore land as image-nobg.png twice, and the second download replaces the first in the default folder - rename the sources before working through a set.
About this guide
- Written by
- The ImageTools Pro team
- Last reviewed
- October 2026
- How we test
- Steps run in a real browser on real PNG, JPEG and WebP files
We revise this page whenever browser APIs, format support or recommended settings change. Corrections are welcome — tell us from the contact page.
Tools we recommend
Frequently Asked Questions
Why is the first image so slow?
Because the model and the WASM runtime are downloaded on first use - roughly 80 MB for the library's default model. The browser caches them, so later runs skip the fetch and go straight to processing.
Does a failed attempt count against the 20?
Yes. The operation is recorded before processing starts, so a crash, an abandoned tab or an error toast still consumes one of the twenty daily operations.
What formats and sizes are supported?
JPG, PNG and WebP up to 20 MB, one image per run. The output is always a transparent PNG, whatever went in.
Does it work on animals and objects, not just people?
The same segmentation model handles pets, products and other subjects. Contrast, focus and framing decide the quality; a subject that blends into the background is hard regardless of what it is.
Can I get a JPG instead of a PNG?
Not from this tool - there is no output format choice, and JPEG could not store the transparency the tool exists to create. Convert the PNG afterwards if a form demands JPG.