How to

How to remove the background from a photo without uploading it

Background removal runs perfectly well inside a browser tab now, which means your photo never has to reach anyone's server. Here is how it works and how to check the claim.

Most free background removers work the same way: you choose a file, it goes to a server, something happens there, and a cut-out comes back. That is fine for a photo of a chair. It is a different decision for a photo of your face, or a picture of your child, or a document you were only trying to tidy up.

It is also no longer necessary. Removing a background is a small enough job that your own computer can do it, in a browser tab, in about a second. Nothing has to be uploaded.

What background removal actually is

It helps to know what the software is doing, because it explains why it can run locally and why it sometimes gets hair wrong.

A model looks at your image and decides, for every single pixel, how likely it is to be part of the subject rather than the background. The output is not a yes or no. It is a number between 0 and 1 for each pixel, which is what lets the edge of your hair be partly you and partly the wall behind you.

That map is called a matte, and once you have it, the rest is arithmetic. Keep the pixels where the number is high, drop the ones where it is low, and blend the in-between ones. Replace the dropped pixels with white, or grey, or a colour, or a blurred copy of the original.

The model that produces the matte is small. The one this site uses is about 16 MB, which is roughly three photographs. That is the entire reason this can happen on your machine instead of someone’s server: you are not running something enormous, you are running something that fits in a browser cache.

Doing it without an upload

In a browser, the sequence is:

  1. You pick a file. The browser hands the page a reference to bytes already on your disk. Choosing a file does not send it anywhere, which is the part most people assume is untrue.
  2. The page draws it into a canvas, which is just an area of memory.
  3. The model runs there, on your processor or graphics card, and produces the matte.
  4. The page composites the result and offers it back to you as a download.

At no point is there a request carrying your image. The only large thing that moves is the model, and it moves towards you, once, and then sits in your browser cache. After the first run you can turn your Wi-Fi off and it still works.

How to check that, rather than taking our word for it

This is the useful part, and it applies to any tool making this claim, not just ours.

Open your browser’s developer tools with Control+Shift+J, or Command+Option+J on a Mac, and click the Network tab. It only records while it is open, so reload the page once with the panel showing. Leave the filter on All so nothing is hidden.

Now remove a background and watch the list.

On the first run you will see a large download arrive: the model. That is inbound, and it is the biggest thing in the list. What you should not see is anything of comparable size going the other way. A request carrying a photo is not subtle; a few megabytes leaving is obvious next to a list of small files.

Then do the stronger version of the test. Run it once so the model is cached, turn off your network, and run it again. If it still works, nothing on that page needed a server. That is difficult to fake.

If you are curious what the answers look like for the services that do upload, we went through the questions worth asking.

Where it goes wrong, and what to do

Local or not, every background remover struggles with the same things. Knowing them saves a lot of frustration.

Fine hair against a busy background. This is the hardest case there is. Flyaway strands are semi-transparent and the model has to guess. Standing further from the wall behind you fixes it better than any software setting.

Low contrast between you and the wall. A dark jacket against a dark bookcase gives the model very little to work with. You do not need a bright background, you need a different one.

Things in the foreground. An arm across the frame, a coffee cup, someone’s shoulder. These are often kept as part of the subject, because they are in front, and they turn up in the cut-out looking odd. Check the edges of the result, not just the face.

Motion blur. A soft edge cannot be cut cleanly, because there is no edge to find.

The general rule: separation in the original beats cleverness in the software. Two metres between you and the wall is worth more than any tool.

Putting a background back

A cut-out on its own rarely looks finished. A subject dropped onto a flat colour reads as a sticker, because two things are missing that your eye expects.

The first is a contact shadow. Real objects darken the surface behind them slightly, just off to the side of wherever the light is coming from.

The second is a rim light: a thin brighter edge along the side of you that faces the light. Without it, the cut-out edge looks like a cut-out edge.

Both are cheap to add and they do most of the work of making a composite look photographed rather than assembled. If you are doing this by hand in an editor, they are worth the two minutes.

If you would rather not, this site does the whole sequence in one go: matte, studio background, contact shadow, rim light, relight, retouch and a proper headshot crop. It runs in your browser, takes about four seconds, and the photo never leaves the tab.

Frequently asked questions

Is it safe to upload a photo to a background remover?

It depends entirely on the service, and the honest answer is that you usually cannot tell from the outside. The reliable way to avoid the question is to use something that does not upload at all, and then verify that in the Network tab.

Does removing a background need the internet?

Only the first time, to fetch the model. After that a local tool works offline, which is also the easiest way to prove it is local.

Why does the hair look wrong?

Fine hair is partly transparent, so the model has to estimate how much of each pixel is you. It struggles most when the background behind the hair is busy or close in brightness. More distance between you and the wall helps more than any setting.

Can I get a transparent PNG?

That depends on the tool. This site produces a finished headshot on a background rather than a cut-out, because the goal here is a profile photo rather than an asset for a design file.

What resolution should I start with?

Bigger than you need, within reason. Detail can be thrown away later; it cannot be invented. A modern phone photo at full size is more than enough.

background removalprivacyhow tobrowser
Free Headshots

Written by the people who build Free Headshots. We test what we write about on our own photos, and we say so when we cannot verify something. About the site.

Make a headshot now. Free, in your browser.
Make a headshot