Remove background from image files and keep the cut clean
You want to remove background from image files and end up with a tidy cut-out, not a ragged blob. This guide covers what a good result depends on, how to make the background transparent and save it correctly, where the edges go wrong and what to do about it.
What a clean cut-out depends on
When people remove background from image files and get a bad result, the cause is usually the photo, not the tool. The program has to decide, pixel by pixel, what belongs to the subject. That decision is easy when the subject differs from its surroundings in color, brightness and sharpness, and hard when it does not.
Three things help most. First, contrast: a dark jacket against a light wall is simple, a grey jacket against a grey wall is not. Second, a sharp subject: motion blur turns the outline into a smear, and a smear has no clear edge to follow. Third, a single main subject. If three people stand at different distances, the program may keep one and drop another. Retaking the picture against a plain wall for ten seconds often beats ten minutes of repair afterwards.
How to remove background from image files, step by step
The names below are the real buttons on the page. It runs in your browser, so there is nothing to install and no account to create.
- Press ‘Choose files’, or drop the photo onto the page. A picture you copied can be pasted with Ctrl+V (Command+V on a Mac). HEIC photos from a phone open as well.
- Press ‘Remove background’. The first run downloads a model of about 45 MB, so give it a moment. After that your browser keeps it and later photos start much sooner.
- Look at the preview. The checkerboard pattern or plain area behind the subject is the part that will be gone.
- Under ‘Background’ keep ‘Transparent’ if you want to make the background transparent. Choose ‘Color’, ‘Blur’ or ‘Image’ if you want something behind the subject instead.
- Choose the format under ‘Save as’ and press ‘Download’. For a whole batch, ‘Download all (ZIP)’ saves one file per photo, each named after the original with -no-bg added.
Make the background transparent and keep it that way
A transparent background only survives in a format that can store transparency. Here that means PNG, and the page switches to it by itself whenever ‘Transparent’ is selected. JPG has no transparent pixels at all, so a JPG cut-out always shows some solid color where the background used to be.
This explains a common surprise: you open the saved PNG in a viewer and see a white or black rectangle. The pixels are still transparent; the viewer is simply painting its own backdrop under them. Place the file onto a colored slide, a web page or a design layout and the real background shows through.
PNG files with a cut-out are larger than a JPG of the same picture. If the file only needs a flat white behind it, choose ‘Color’ and the ‘White’ swatch, then JPG or WebP, and the size drops a great deal.
Which background should go behind the subject
Decide by where the picture will be used, not by habit. A transparent PNG suits slides, posters, banners and anything you will place over another picture. A flat color suits a shop listing or an ID-style photo where the rules ask for plain white or light grey. The tool offers eight swatches and ‘Pick any color’.
‘Blur’ is a different idea: the original scene stays, only softened, with a strength you set under ‘Blur strength’. It works for a portrait where the room matters but should not compete with the face. ‘Image’ lets you put the subject in front of another photo, trimmed rather than stretched if the shapes differ.
A tip that saves trouble: when you place a cut-out onto a very different background, look at the edge. A light halo around dark hair shows that bits of the old background were kept.
When the edges fail: hair, glass and soft shadows
Some things are hard for any automatic cut-out. Loose hair and fur are made of thin strands with gaps in between. Glass, a wine glass or a window let the background show through the subject itself. Smoke and thin fabric do the same. A shadow on the floor is another trap, because it may be treated as part of the subject or thrown away entirely.
The tool states this limit itself: it works best when the subject stands out clearly, and hair, fur and see-through objects may need a touch-up. It also cannot choose which of several objects you mean. It picks what it finds most prominent, and if nothing clear stands out you see a message asking you to check the result.
Before you spend time repairing, compare with the original using ‘Hold to compare’. Sometimes the cut is fine and only looks odd on the checkerboard.
Fixing a rough edge with Refine
If a part is missing or a piece of background was left behind, press ‘Refine’. A large editor opens where you paint on the result. ‘Erase’ removes what should not be there, and ‘Restore’ brings back what was cut by mistake. There are sliders for ‘Brush size’ and ‘Edge softness’, buttons to zoom in, and a ‘Move’ tool to slide the picture around.
Zoom in far enough to see single pixels along the problem area, use a small brush and a soft edge, and work in short strokes. A hard edge on hair looks like a sticker; a soft one blends. If you overdo it, ‘Undo’ steps back and ‘Reset to AI result’ returns to the starting point. Press ‘Apply’ when the cut looks right.
There is no generative filling. The tool never invents missing parts of a subject; it only keeps or hides pixels that already exist in your photo.
What to do after the cut-out
Most cut-outs need one more small step. If the subject sits off-center or there is too much empty space, trim it with the crop tool before you use it. If the picture is too big for a page or an upload form, the resize tool brings it down to the right pixel size.
For brightness, color or adding text on top, the photo editor handles the finishing touches. If your goal is a profile picture with a new background, the profile picture maker is built for that and works from a selfie directly.
Last, keep your original file. The saved image is a new, separate file, and it does not carry over the camera data and location of the original, which is useful before you share it.
Questions and answers
How do I remove background from image files for free?
Add the photo, press ‘Remove background’, choose ‘Transparent’ under ‘Background’ and press ‘Download’. It is free, needs no sign-up and adds no watermark.
Why is my transparent PNG showing a white box?
The pixels are transparent, but some viewers paint a white or black backdrop behind them. Place the file on a slide, a web page or a colored layer and the background shows through.
Can I save a cut-out as JPG?
Only after you pick a color, a blur or an image as the background, because JPG cannot store transparency. With ‘Transparent’ selected the file is always saved as PNG.
Is my photo uploaded to a server?
No. Only the model file is downloaded to your device, once. The cut-out itself is calculated in your browser.
Why do hair and glass look wrong?
Their edges are partly solid and partly see-through, which is hard to separate automatically. Use ‘Refine’ with ‘Erase’ and ‘Restore’ to correct them.
Can I remove the background from many photos at once?
Yes. Add as many as you like. They are cut out one after another with the same background setting, and ‘Download all (ZIP)’ saves them together.