Remove the background from an image

An AI model finds the subject and cuts it out. Transparent, solid colour or your own picture. It runs on your device.

How it works

  1. Add a picture with a clear subject
  2. Wait for the preview, then choose a transparent, colour or picture background
  3. Adjust the edge softness and download the result

How the background is removed

This tool removes the background by running an AI model, silueta (a reduced U-2-Net), inside your browser tab. The model looks at a 320 by 320 pixel copy of your picture and returns a mask of the same size: one value per pixel, near 1 for the subject and near 0 for the background. The tool then stretches that mask to the full size of your picture and uses it as the opacity of each pixel. A 4000 by 3000 photo has 12 million pixels, and the model sees 102,400 of them, less than 1%, so each mask value covers a block about 12.5 pixels wide. That is why edges are the weak point: the outline is placed by a coarse mask, enlarged with a Lanczos filter. The Edge softness slider is an optional extra on top. At 0 (the default) the enlarged mask is used as the model returned it. From 1 to 10 an S-curve is added: 1 is a crisp edge and 10 fades over a wide band. Changing the slider does not run the model again, so the preview updates at once.

What it works well on and where it fails

It works best on a clear subject that stands apart from its surroundings: a person against a wall, a product on a table, a pet on a lawn, a bottle on a sweep of paper. It is rough on fine detail. Loose hair, fur, glass, smoke and a chain-link fence are hard for a 320 pixel mask, so expect a soft or slightly ragged outline there, and try a higher softness value. It can also keep a shadow, a hand holding the product, or a second object next to the subject, because the model decides what counts as the main subject on its own and you cannot paint corrections in this version. If the background is one flat colour, such as a logo on white, the colour-based Make background transparent tool gives sharper edges and keeps every pixel of the subject's colour. This tool does not remove people from a crowd or pick one of several subjects.

Transparent, colour or your own background

Transparent saves a PNG or WebP with an alpha channel, so the cut-out can be placed over any design; the preview shows a checkerboard behind the clear parts. Solid colour blends the subject over a colour you pick, such as white for a product listing, and can be saved as a JPG, which has no transparency. Your picture crops a photo you choose to fill the frame, centred, and puts the subject on it; the subject is blended over it with the same soft edge. The colours of the kept pixels are not changed, only their opacity, so a subject with a pale rim from its old background can keep a faint halo; a higher softness hides it. Pictures over 8 megapixels (4 on phones and tablets) are made smaller first to keep memory in check, so a 4000 by 4000 photo is saved at 2828 by 2828, and the result shows both sizes. Photo details such as location are not copied into the saved file.

What is downloaded and what stays on your device

The first time you use the tool, your browser downloads two files from this site: the model, about 43 MB, and the ONNX Runtime WebAssembly engine that runs it, about 3.5 MB when compressed. The page shows the model download as megabytes received. The model is large on purpose: a smaller 4.6 MB model was tried and it missed most subjects in a picture with several characters, while this one keeps them, and also cuts out cartoons and products better. The price is a slower first visit, especially on mobile data. The browser keeps both files in its cache, so later visits are fast and need no new download unless the cache is cleared. Your picture is never sent anywhere: it is resized and processed by code running in this tab, in a background worker so the page stays usable. U-2-Net is published under the Apache License 2.0, the silueta model file is distributed by the rembg project under the MIT licence, and ONNX Runtime is under the MIT licence. On a slow phone the first result can take several seconds; a very large picture is reduced before saving. If your browser cannot run WebAssembly workers, the tool shows a message instead of a result.

Frequently asked questions

How do I remove the background from a photo for free?

Add the photo, wait for the preview to show the cut-out, then press Remove the background and download the PNG. The first run downloads about 43 MB for the model and 3.5 MB for the engine (your browser keeps them, so later runs are quick), and the work happens on your device, so there is no sign-up and no upload.

Why are the edges of my cut-out rough around hair?

The model works on a 320 by 320 pixel mask, so a 4000 by 3000 photo gets one mask value for every 12.5 pixels or so. Fine hair is thinner than that. Raise Edge softness to 5 or more for a gradual fade, or use a photo where the hair is against a plain, contrasting background.

How do I make the background white instead of transparent?

Choose Solid colour under Background and keep the colour at #ffffff, which is the default. Save as JPG or PNG. A JPG has no transparency, so the white is part of the picture, which suits a product listing that asks for a white background.

Can I put my subject on a different photo?

Yes. Choose Your picture and pick a JPEG, PNG or WebP. It is cropped from the centre to fill the same frame as your subject, so a 1600 by 900 background behind a 1000 by 1000 subject is cut to a square. The subject stays where it is in its own picture; only the background is cropped.

Why did it keep a shadow or the wrong object?

The model picks the main subject by itself. A shadow touching the subject, a hand, or an object of similar size can be kept with it. There are no brush tools in this version, so try another picture, crop the extra object out first, or use Make background transparent for a flat background.

Is my picture uploaded?

No. The model and the ONNX Runtime engine are downloaded to your browser once and run in a worker in this tab, so no server receives your picture. The page counts visits with Google Analytics using rough groups such as 1 to 10 MB, never a file name or an image. Your background choice, colour, softness and format are remembered on this device; the picture is not.