Updated
How it works
There are three ways to find the background. The tool picks one for you and you can switch at any time.
- Photo uses IS-Net (the "general use" model from the DIS project by Xuebin Qin and colleagues), an AI model that separates the main object from its background in any kind of picture: people, animals, products, vehicles, furniture.
- Graphic uses no AI at all. It reads the colour around the edge of the picture, removes that colour, and then cleans the smooth edges so no halo is left. This is what logos, text, signatures and icons need, and it is instant.
- Person uses MODNet, a portrait matting model. It only understands people, but it keeps wisps of hair a little finer than Photo mode.
The AI models run inside your browser with ONNX Runtime Web, Microsoft's engine for running AI models in WebAssembly, on a background thread so the page stays responsive. The model files and the engine are served from this site, not a third party.
Photo mode: your picture → a 1024 × 1024 copy → IS-Net marks every pixel from 0 (background) to 100% (subject) → that mask is enlarged to full size → your original pixels with the mask as transparency → PNG
Graphic mode: the 2-pixel border → its most common colour is the key → remove the key from the border inwards (and, if ticked, inside letters) → un-mix the key from the edge pixels → PNG
When it switches to Graphic mode by itself
Two tests, both on your picture. First, at least 90% of the pixels in a 2-pixel ring around the edge must be within a colour difference (CIE ΔE) of 10 of one colour, which is about how far apart two shades of white look on paper. Second, the picture must be flat: its 16 most common colours (after rounding) must cover at least 80% of it. A logo on white passes both. A product photo on white usually fails the second, because the product's shading uses thousands of colours, so it stays on Photo.
Worked examples
A photo. You drop a 4032 × 3024 phone photo of a dog on grass. Its border is grass, not one colour, so the tool uses Photo mode. IS-Net looks at a 1024 × 1024 copy (squashed to a square, which is what the model expects), returns a 1024 × 1024 mask, and the mask is stretched back to 4032 × 3024 and applied to your original pixels. The download is a 4032 × 3024 PNG of the dog with a transparent background.
A logo. You drop a 1200 × 600 logo on white. The 2-pixel ring around it has 7,184 pixels; all of them are white, and the logo's handful of flat colours cover 98% of the picture, so Graphic mode takes over. Every white pixel joined to the edge is removed, and so are the white holes inside letters such as "o" and "e". A grey pixel on the edge of a black letter, half black and half white, becomes black at 50% opacity, so the letter edge stays smooth on any background you put it on later.
What it is good and bad at
| Picture | Best mode | What to expect |
|---|---|---|
| Product, food, a pet or a car | Photo | Usually a clean outline. Shadows under the object are normally removed. |
| One person, head and shoulders | Photo or Person | Both work. Person keeps finer hair; Photo can leave patterned clothing partly see-through, which Restore fixes. |
| Logo, text, icon or clip art on a plain colour | Graphic | Crisp, halo-free edges at full resolution. Works on white, black or any solid colour. |
| Scanned signature | Graphic | Clean ink on transparency. Raise the tolerance if paper texture is left behind. |
| Glass, smoke, a veil or other see-through things | Photo | Hard for any model. Expect to touch up with the brush. |
| Busy scene with several possible subjects | Photo | The model may keep the wrong thing. Erase what you do not want. |
| A photo with a plain studio background | Photo | Fine, and if the background is perfectly flat Graphic mode may be even sharper. |
Privacy and download size
Nothing you choose is uploaded. Graphic mode needs no download at all. The first time you use Photo mode, the page fetches its 44 MB model in two parts and checks that it arrived intact; Person mode fetches a 25 MB model. Both come from this site, and your browser keeps them for later visits. The finished PNG is a fresh image, so it carries no EXIF data such as GPS location or camera details. Close the tab and everything is gone.
Photo mode is the slow one: in our tests on a recent Windows laptop it took about 11 seconds per picture once the model was downloaded, because the browser runs the large model on a single processor core. Phones and older computers take longer. Person mode took under 2 seconds and Graphic mode is close to instant. The tool shows a running timer while it works.
Tips for a cleaner cut-out
- Use a sharp, well-lit picture where the subject stands out from what is behind it.
- Check the edges against black and against white with the preview swatches; a halo that hides on the checkerboard shows up there.
- For a white background on a shop or profile photo, choose Solid color and White, and keep the Edge on Natural.
- Zoom to 100% and use a small, hard brush for straight product edges; a large soft brush is quicker for hair and fur.
Questions people ask
Is my picture uploaded to a server?
No. The picture is opened, cut out and saved inside your browser tab. Graphic mode downloads nothing at all. Photo mode downloads its AI model (about 44 MB) the first time you use it, and Person mode its own (about 25 MB), both from this site. Your browser keeps a copy, so later visits skip the wait, and the tool keeps working if you go offline after that.
Which mode should I use?
Photo for photographs of anything: a person, a pet, a product, a car, food. Graphic for logos, text, signatures, icons and other flat artwork on a plain background; the tool switches to it by itself when the edge of the picture is one plain colour. Person for portraits when you want finer hair edges than Photo gives. You can switch at any time and the result updates.
Does it work on products, pets and cars?
Yes. Photo mode uses IS-Net, a model trained to separate the main object from its background in all kinds of pictures, not only people. It handles products, animals, vehicles and furniture well. It struggles with glass and see-through objects, very fine fur or hair against a busy background, and photos where it is unclear which of several things is the subject. Fix what it gets wrong with the Erase and Restore brushes.
How do I fix a part it got wrong?
Choose Erase to paint away leftover background, or Restore to paint back anything that was removed; Restore brings back the original pixels. Set the brush size and softness, and zoom to 100% for fine work. Undo and Redo are buttons, or Ctrl+Z and Ctrl+Y (Cmd on a Mac). The [ and ] keys make the brush smaller or larger. The brush works in every mode, and your touch-ups stay if you switch mode.
Is the cut-out full resolution?
Yes. The PNG has the same width and height as your picture (pictures over about 16.7 megapixels are scaled to that limit so phones can cope). Photo mode judges the outline on a 1024 × 1024 copy and Person mode on a copy about 512 pixels on the short side; the outline is then smoothly enlarged and applied to your original pixels. Graphic mode works on every pixel of the full-size picture.
Why does a logo come out with no white halo?
Graphic mode does more than delete the background colour. Along the edges, smooth (anti-aliased) pixels are a blend of the artwork and the background. The tool works out how much of each pixel is background and takes it out, so a grey edge pixel on white becomes a partly transparent black one. The logo then sits cleanly on any colour. Turn "Also remove the same colour inside shapes" off if your artwork contains areas of the background colour that should stay, such as white text inside a white-backed badge.
Can I use this for passport or ID photos?
Usually not. The US State Department rejects passport photos that have been digitally altered, and replacing the background counts. Take the photo against a plain white or off-white wall instead, then size it with our passport photo maker.
