How to Remove the Background From a Photo (Free, and Without Uploading It)
Removing a background used to be the job you saved for last. You would zoom in to 400 %, pick the Pen tool and trace around a person's hair for half an hour. Today most of that work can be done by a model in a few seconds, and the interesting part is what you do with the remaining 5 %.
This guide shows three ways to do it in Photomania, a free photo editor that runs in the browser. They go from fastest to most precise. In practice you will usually combine them: start with the automatic one, then clean up with the other two.
One thing first, because people ask: when you remove a background in Photomania, the photo never leaves your computer. The AI model is downloaded to your browser once and runs there. Nothing is uploaded to a server for processing, which matters if you are working with client photos, ID pictures or anything private.
Method 1: one click with Remove BG
Open your photo (drag it into the window, or use File › Open…, Ctrl+O). Then choose Select › Remove BG.
The first time you use it, Photomania asks to download the background model. It is a one-time download of a few dozen megabytes, and after that it works even offline. On a computer with a recent graphics card it runs on the GPU; otherwise it falls back to the processor, which is slower but gives the same result.
When it finishes, the background is gone and you see the transparency checkerboard behind your subject. That is it for most product photos and portraits with a clear outline.
What it is good at:
- people, including most hair, when the background is reasonably different from the subject
- products on a table or a plain wall
- pets, cars, food, plants
Where it struggles:
- glass, smoke and other semi-transparent things
- a subject that has the same colour as the background (a white cat on a white sofa)
- very busy scenes where it is not clear what the "main" object is
For those, keep reading.
Method 2: select the subject, then decide what to do with it
Sometimes you do not want to delete the background. You want to blur it, darken it, replace it or keep it as a separate layer. In that case use Select › Subject instead.
It runs the same kind of model, but instead of deleting pixels it gives you a selection: the marching ants around your subject. Now you can:
- press
Ctrl+Jto copy the subject to its own layer and keep the original untouched below it - invert the selection with
Shift+Ctrl+Iand blur only the background (Filter › Blur › Gaussian Blur…) for a fake shallow depth of field - add a layer mask (the mask button at the bottom of the Layers panel) so the background is hidden, not deleted
That last option is the one professionals use, and it is worth understanding why.
Why a mask is better than the eraser
Deleting pixels is final. If the model cut off a strand of hair or a corner of a shoe, it is gone, and you can only get it back with Undo.
A layer mask hides pixels instead of deleting them. White in the mask means "show", black means "hide". If something was cut off, you take a soft white brush, paint over that area of the mask and it comes back. If some background is left, you paint black.
To turn a selection into a mask, select the subject and click the mask button in the Layers panel, or use Layer › Layer Mask › Reveal Selection. To see the mask on its own, Alt+click its thumbnail in the Layers panel.
A good routine:
- Select › Subject
- Layer › Layer Mask › Reveal Selection
- Press
Bfor the Brush, set a soft brush, and paint white or black on the mask to fix the edges - Press
Xto swap between black and white while you paint
Method 3: refine the edges
Hair and fur are where cut-outs usually look fake. The edge is either too hard (a cardboard cut-out) or it has a light halo from the old background.
With a selection active, open Select › Refine Edge… (Alt+Ctrl+R). Photomania draws a grey band along the edge of your selection; Border sets how wide it is. Inside that band the edge is worked out again from the colours of the image, strand by strand. Paint over the hair or fur that sticks out with the brush to add it to the band, then choose the output: a new selection, a layer mask or a new layer. Look at the result on a dark and on a light background before you confirm it: a halo that is invisible on white is very visible on black.
If the edge is right but sits a pixel too far out, Select › Modify › Contract… by 1 px followed by Select › Modify › Feather… (Shift+F6) of about 0.5–1 px pulls it in and softens it.
If the halo is already baked into a cut-out layer, try Layer › Matting › Defringe… with a value of 1 or 2 pixels. It replaces the coloured fringe with colours from just inside the edge. Remove White Matte and Remove Black Matte in the same menu help when a subject was cut out from a pure white or black background.
Manual tools, for the cases the model gets wrong
When the automatic result is close but not right, these tools finish the job quickly:
- Quick Selection Tool (
W): paint over an area and the selection grows to the nearest edges. HoldAltto subtract. - Object Selection Tool (
W, press it again to cycle): draw a rough rectangle around an object and it selects the object inside. - Magic Wand Tool (
W): selects areas of similar colour. Perfect for a flat studio background. Lower the tolerance if it selects too much. - Background Eraser Tool (
E): erases colours similar to the one under the centre of the brush. Useful for hair against the sky. - Pen Tool (
P): the slow but exact option for hard-edged products. Draw a path, then turn it into a selection.
Saving the result with transparency
This is where a lot of people lose their work: they export as JPG and the transparent background turns white.
JPG cannot store transparency. Use one of these instead:
- PNG (File › Export As › PNG, or File › Quick Export as PNG,
Alt+Shift+Ctrl+S): the safe choice, works everywhere. - WebP (File › Export As › WebP): much smaller files with transparency, good for websites.
- PSD (File › Save as PSD,
Alt+Ctrl+S): keeps the layer and the mask, so you can come back and fix the edges later.
If you are not sure, save a PSD for yourself and export a PNG for everyone else.
Replacing the background
Once the subject is on its own layer, add a new layer below it (Shift+Ctrl+N, then drag it down in the Layers panel or use Ctrl+[). Fill it with a colour (Edit › Fill…), a gradient (the Gradient Tool, G) or drop in a new photo with File › Open & Place….
Two tips make a replaced background believable:
- Match the light. If your subject is lit from the left, the new background should be too. Use Image › Adjustments › Color Balance… on the subject to warm it up or cool it down to match.
- Add a little shadow. A soft, dark, low-opacity brush stroke under the feet or under a product grounds it. Without a shadow, things look pasted on.
Quick answers
Is it really free? Yes. There is no account, no watermark and no limit on how many images you process.
Does it work on a phone? It works in a mobile browser, but a computer with a mouse is much more comfortable for fixing edges.
Why is the first run slow? The model is being downloaded. Every run after that starts immediately.
Can I process many photos at once? For a batch of product photos, look at File › Automate › Batch…, which can apply the same steps to a folder of images.
Background removal is no longer the hard part of a photo edit. What still takes a good eye is the edge, the light and the shadow, and those are exactly the parts the tools above let you control.
Try it yourself. Photomania is free, works in your browser and needs no account.
Open Photomania