Image Tools

Background Remover

Cut the subject out of a photo with an AI model that runs on your own device, refine the edge with a brush, and save a transparent PNG or a new background.

Open a photoDrop, paste or click · JPG, PNG, WebP
  1. Open a photo — a person, pet, product or artwork.
  2. The AI model finds the subject on your device. It downloads once (about 4.7 MB).
  3. Fix edges with the brush, pick a background and save a PNG.
Nothing is uploaded — the model runs in this browser tab.

0 keeps the model's soft mask; higher values give crisper, tighter edges.

Brush

Paint on the image to remove leftovers or bring back lost parts. Ctrl+Z undoes a stroke.

Background
Runs in your browser — your images never leave your device.
Preview embedded tool

Works in an HTML block on WordPress, Wix, Squarespace or a custom website. Change the height if your layout needs more space.

How to use the Background Remover

  1. Open a photo. Drop it onto the box, paste with Ctrl+V, or click to browse. The first time, the page downloads the AI model (about 4.7 MB) and the engine that runs it; a progress bar shows how far along it is.
  2. Let it find the subject. A few seconds later the background is gone and the subject sits on a checkerboard, which stands for transparency.
  3. Refine the edge. Mask threshold decides how confident the model must be before a pixel counts as subject — 0 keeps its soft mask, higher values tighten it. Edge feather softens the border.
  4. Fix mistakes by hand. Set Brush to Erase to paint away leftovers or Restore to bring back lost parts; change Brush size as needed. With a transparent background and the brush on, removed areas show faintly so you can see what to restore. Undo brush or Ctrl+Z steps back.
  5. Choose a background and save. Keep Transparent, fill with a Color, or use a Blurred photo of the original for a portrait-mode look. Download PNG saves the full-size result; Download mask saves the black-and-white matte.

How the cut-out is made

The model is U²-Net, published by Qin and colleagues in Pattern Recognition in 2020 for salient object detection — finding whatever in a picture the eye goes to first. The paper offers two sizes: the full network at 176.3 MB and a small version at 4.7 MB, 37.5 times lighter. This page uses the small one, because it downloads quickly and runs comfortably on a laptop or phone through ONNX Runtime Web, Microsoft’s open-source engine for running neural networks in the browser.

Everything happens on your device. The photo is shrunk to 320 × 320 pixels, its colors are normalized the way the network was trained, and the model returns a 320 × 320 map where bright means “subject”. That map is stretched back to the photo’s size with smooth interpolation and used as the alpha channel.

That last step explains most of what you’ll see. On a photo 4000 pixels wide, each pixel of the model’s map is stretched across about 12.5 photo pixels. Smooth outlines — a mug, a shoe, a person’s shoulder — come out clean, because interpolation is good at curves. A single strand of hair, a lace edge or the gap between bicycle spokes is smaller than one mask pixel, so the model can only guess at it. That is why the threshold, the feather and the brush are there.

The model doesn’t know what a “background” is in your sense; it learned which object stands out. A product on a plain table is an easy call. A group photo or a busy market stall is ambiguous, and it may keep the most prominent person or object rather than all of them.

What it handles well, and what needs the brush

Subject What to expect What to adjust
Product on a plain surface Clean edge, often ready to use Threshold 50–60, feather 1 px
Portrait or pet, simple background Good outline, soft hair Threshold 30–40 for wispy hair, then feather 2–3 px
Painting photographed on a wall Canvas edge usually found Raise threshold to trim the shadow strip
Several people or objects One may be dropped Restore the missing one with a large brush
Glass, smoke, very thin objects Partly or wholly missed Mostly manual: Restore, then Erase
Subject the same color as the wall Edges wander Erase along the edge at a small brush size

Download mask gives you a grayscale image where white is kept and black is removed. Drop it into Photoshop, Affinity Photo, GIMP or Krita as a layer mask and you can keep refining with full-resolution tools, without losing anything already done here.

Tips from practice

Shoot for the cut-out. A subject a step lighter or darker than its background, with a little space around it, beats any amount of brushwork. A sheet of colored card behind a small object works wonders.

Use threshold 0 for hair and fur. The soft mask keeps the semi-transparent fringe that makes hair look natural. Then use Erase only where background color shows through clearly.

Work in short strokes. Each stroke is one undo step, and the last 12 are kept. Fix one stretch of edge per stroke and a slip costs you seconds, not the whole cleanup.

Pick the background before judging the edge. A cut-out that looks perfect on the checkerboard can show a dark halo on white. Switch to Color and preview it on the color you’ll actually use — white for an Etsy listing, for example.

Finish the file for posting. Add a credit with the Watermark Adder, then shrink it with the Image Compressor for Portfolios — choose WebP or PNG there, because JPEG cannot store transparency.

FAQ

Is my photo uploaded to a server?

No. The model file and the engine are downloaded to your browser, and the photo is processed there. You can disconnect from the internet after the model has loaded and the tool keeps working for the rest of the session.

Why is the first cut-out slow?

The first run downloads the 4.7 MB model plus the WebAssembly engine that executes it, then compiles them. Later photos in the same visit skip all of that and only run the model itself, and your browser normally caches the files for next time.

Can I use the result commercially?

The cut-out is your image, so yes, as long as you own the original photo. The model itself is released under the Apache 2.0 license and the engine under MIT, both of which allow commercial use.

Why is there a light or dark halo around my subject?

The edge pixels still contain a little of the old background color. Raise Mask threshold a few steps to pull the edge inward, keep Edge feather at 0–1 px, and preview on the background color you will actually use.

What resolution is the downloaded PNG?

The same as your photo, up to 4,096 pixels on the long side. The editing preview works on a copy up to 1,600 pixels, and the mask is scaled up smoothly for the final file.