How to remove the background from an image
By M Alamgir Saeed · Updated
A clean cut-out makes a product photo, a profile picture or a slide look far more professional. Doing it by hand in an editor takes patience; AI can now do most of the work in a few seconds. This guide explains how automatic background removal works, how to get the best result, and how to keep your photos private while you do it.
How automatic background removal works
Background removers use a type of AI model trained to find the main subject in a picture, a task researchers call salient object detection. The model looks at the whole image and produces a mask: a grey-scale map where white means "keep" and black means "remove". The mask is then used to make the background transparent.
Older tools sent your photo to a server to run the model. The Background Remover on this site runs the model inside your web browser instead, so the picture never leaves your device. The first run downloads the model once; after that it works quickly.
Grey values in the mask matter too. Pixels the model is unsure about, such as the edge of a strand of hair, become partly transparent instead of being cut sharply, which is why a good cut-out looks soft at the edges rather than jagged.
Step by step
- Open the Background Remover and choose Fast or High quality at the top. Fast works on every device; High quality needs a browser with WebGPU, such as Chrome or Edge.
- Drop in a JPG, PNG, WebP or AVIF image of up to 50 MB, or click to choose one.
- Wait while the AI model loads and the background is removed. A progress bar shows the model download the first time.
- Compare the original and the result side by side. The checkerboard pattern behind the result means transparent.
- Under Background, keep Transparent, or choose White or Colour to place the subject on a solid background.
- Click Download PNG. The file is saved with "-no-bg" added to the original name.
Fast or High quality?
The two modes use different AI models. Fast uses U-2-Netp, the small version of the U-2-Net model from the research paper listed below. It is about 4.4 MB, runs on any device and looks at the image at 320 x 320 pixels. High quality uses a larger model called BiRefNet lite, a one-time download of about 109 MB, which looks at the image at 1,024 x 1,024 pixels and gives sharper hair and edges.
That working size explains the difference. Whatever the size of your photo, the model draws its mask at 320 or 1,024 pixels, and the mask is then scaled up smoothly to fit your image. On a large photo in Fast mode, fine details such as loose hair or the gap between fingers can be blurred or lost. High quality keeps far more of that detail.
High quality runs on your graphics chip through WebGPU, which not every browser or device supports. If your browser lacks it, the button is disabled and says so. If it starts but fails, you will see a message suggesting Fast mode instead. The model is saved in your browser after the first download, so next time it starts much sooner.
| Fast | High quality | |
|---|---|---|
| Model | U-2-Netp | BiRefNet lite |
| Download | About 4.4 MB | About 109 MB, once |
| Mask resolution | 320 x 320 | 1,024 x 1,024 |
| Runs on | Every device | Browsers with WebGPU (Chrome or Edge) |
| Best for | Simple shapes, quick jobs, phones | Hair, fur, detailed edges |
Tips for a cleaner cut-out
The AI does best when it can clearly tell the subject from the background. A few habits make a big difference before you even take the photo.
- Use good, even light so the edges of the subject are visible.
- Choose a background that contrasts with the subject: a dark product on a light wall, for example.
- Keep the subject sharp and in focus; motion blur confuses the edges.
- Leave a little space around the subject instead of cropping it at the frame edge.
- Start from the largest original you have; tiny images give jagged edges.
Check the edges before you use it
The result depends heavily on the photo. Fine hair, fur, glass and objects the same colour as the background are the hardest cases, so look along those edges at full size.
Check the result against both a light and a dark background, since a pale halo can be invisible on white and obvious on black. The tool makes this easy: switch Background to Colour and pick a dark colour to inspect the edges, then switch back to Transparent before you download if that is what you need.
Worked example: a product photo for an online shop
Say you have a phone photo of a mug on a kitchen worktop and want a clean image on white for a listing. Photograph the mug in daylight near a window, with the worktop clear behind it. Drop the photo into the Background Remover in Fast mode; a simple solid shape like a mug usually cuts out cleanly.
Choose White under Background and download the PNG. The download keeps your photo's full size, up to 4,096 pixels on the longest side, so a 4,000 x 3,000 photo stays 4,000 x 3,000. Then use the Image Resizer to fit the dimensions the marketplace asks for, and the Image Compressor if the file is too large to upload.
For a portrait with loose hair, the steps are the same, but try High quality if your browser supports it, and check the hairline against a dark colour before you download.
Which format should I save it in?
The Background Remover downloads a PNG, which keeps full transparency and works everywhere, for example in documents, presentations and marketplaces. Do not convert a transparent cut-out to JPG: JPG cannot be transparent, so the background turns solid again.
For a website, WebP also keeps transparency and is usually much smaller. If the PNG is large, run it through the Image Compressor and choose WebP output to shrink it while keeping the transparent background.
What background removal cannot do well
Fine, semi-transparent details are the hardest part: wispy hair, glass, smoke and lace. The AI may leave a faint halo or cut a little too much. For a product listing that matters, check the edges at full size. Very busy scenes with several people or objects can also confuse the model about which one is the subject; cropping the photo around your subject first usually fixes that.
There is no brush to paint parts back in or erase leftovers by hand, so if the model keeps something you did not want, a better source photo or a tighter crop is the fix. The cut-out downloads as a PNG with a transparent background. To change other JPG images to PNG without removing anything, use JPG to PNG.
Troubleshooting
- The first image takes a long time: the model is downloading. Later images are quicker, because the model is kept in your browser's cache.
- It downloads the model every time: private or incognito windows may not keep the cache, so the model is fetched again in each session.
- "High quality mode could not run on this device": your browser or graphics chip could not run the larger model. Use Fast mode.
- The file is refused: only JPG, PNG, WebP and AVIF images up to 50 MB are accepted. Convert or shrink the image first.
- The wrong object was kept: crop the photo so the subject fills most of the frame, then try again.
- Edges look soft on a big photo: switch to High quality, which draws its mask at a much higher resolution.
Privacy: what is downloaded and what is not
Your image is never uploaded. The AI runs in your browser, so the only things fetched from the internet are the model files and the code that runs them. The Fast model comes from our own site, the High quality model from Hugging Face, and the runtime that executes the models from a public code library network. None of these receive your photo.
Try the free Background Remover
Frequently asked questions
Is it free to remove a background here?
Yes. There is no sign up, no watermark and no limit on the number of images.
Are my photos uploaded?
No. The AI model runs in your browser, so the image stays on your device.
Why does the first image take longer?
The AI model is downloaded the first time you use the tool. After that it is ready, and each image only takes a few seconds.
Can I put the subject on a white or coloured background?
Yes. After the background is removed, choose White or Colour under Background, pick a colour if you like, and download the PNG.
Does it reduce the size of my image?
Not for normal photos. The cut-out keeps the original dimensions; only images larger than 4,096 pixels on the longest side are scaled down to that size.
Why is High quality greyed out?
It needs WebGPU, which is available in browsers such as Chrome and Edge on supported devices. On other browsers, use Fast mode.