Background Removal: Clean Cutouts Without an Upload
Background removal looks like a single click until you inspect the space between a shoulder and a strand of hair. A segmentation model can find the person or the product, but the boundary is where a cutout either holds up or falls apart. This tool runs two models inside the browser, exposes the resulting mask as something you can edit, and keeps the source file on your machine. It accepts up to 20 images at a time, including a ZIP or a folder, and exports PNG, WebP or JPEG.
The sections below explain what the models compute, how to choose between the Universal and Portrait options, which edge controls are worth changing, and how to prepare a file for a marketplace, a slide or a print job. The focus is on what the tool can verify by its own output, not on generic promises about artificial intelligence.
What background removal actually computes
A background remover does not delete a layer in the way an image editor deletes pixels. It estimates an alpha value for every pixel: one means the foreground is fully present, zero means it is fully absent, and the values between describe partial coverage. That middle range is what makes hair, fur, smoke and glass difficult, because a single pixel may contain both subject and background.
The two models in this tool produce an alpha matte from a single image, without a user-drawn trimap. ORMBG, the general model, is trained to find a salient object in a scene; MODNet is a portrait matting model built around human subjects. The output is a grayscale mask, which the interface then uses to composite the source over a new background.
A segmentation model is not reading the scene like a person. It responds to contrast, shape and learned cues about what usually counts as a subject. A white shoe on a white sweep, a glass bottle in front of a window, or a dark dog on a dark sofa can produce a mask that looks plausible at thumbnail size and wrong at full resolution. The model also cannot invent the pixels behind the subject: when the background is removed, that area becomes transparent, a color, a gradient, an uploaded image or a blurred copy of the original. The tool is a cutout and compositing instrument, not a scene generator.
That is why the review step matters. The automatic pass gives you a strong first mask; the sliders and brush decide whether the edge survives a close look.
Universal or Portrait: matching the model to the subject
Universal is the default choice for products, animals, cars, furniture and mixed scenes. Its model file is about 44 MB in Fast mode and 88 MB in High mode; the larger fp16 file can preserve more detail, at the cost of a longer first download and more memory. Portrait is much smaller, around 7 MB in Fast and 13 MB in High, and is tuned for people, headshots and hair. A smaller model is not automatically worse for its subject; it is simply trained on a narrower problem.
The practical rule is to ask what occupies most of the frame. A person holding a product is still a portrait problem if the face and hair matter, while a product on a table is a Universal problem even if a hand enters the frame. Group photos with small faces, full-body shots at a distance and images where the subject is mostly clothing often do better with Universal; close headshots, shoulders and flyaway hair usually do better with Portrait.
| Model | Best for | Weak spots | Fast / High download |
|---|---|---|---|
| Universal (ORMBG) | Products, objects, animals, scenes | Glass, very fine fur, subjects close in color to the background | ~44 MB / ~88 MB |
| Portrait (MODNet) | People, headshots, hair | Products, landscapes, tiny faces in a group | ~7 MB / ~13 MB |
Quality is a separate decision from model choice. Fast uses a q8 model, High uses fp16; both run through ONNX Runtime Web, and Auto picks WebGPU when the browser exposes it before falling back to CPU WebAssembly. If the first image takes a while, the model download is usually the reason, not the image itself. Switch the model and use Reprocess all when the first result suggests the other model is a better fit; the settings are applied to the queue rather than stored separately for each file.
A clean cutout in five passes
- Add the files. Drop PNG, JPG, JPEG or WebP files, open a folder, load a ZIP, paste from the clipboard or enter an image URL. The queue accepts up to 20 images; each can be 25 MB and 6000 px on the long side, and a ZIP can be 100 MB. Folder, ZIP and URL inputs also handle AVIF and HEIC, which are converted in the browser before the model sees them.
- Choose the model and quality. Start with Universal for an object and Portrait for a person. Fast is the sensible first pass on a laptop; High is worth the wait when the edge has fine hair or a complicated silhouette. If the browser supports WebGPU, leave the backend on Auto.
- Adjust the mask. Begin with Shrink at 1 or 2 px to pull the edge inward and remove the pale halo that often comes from the old background. Add Feather only when the edge looks hard, then use Smooth sparingly because it adds blur to the same mask. Cleanup raises the contrast of weak gray pixels; it can tidy a soft edge but can also make a hairline look chopped, so compare it at 100% zoom.
- Set the destination. Choose Transparent for an editor, Solid color for a marketplace, Image for a designed layout, Gradient for a social post or Blurred original for a portrait effect. Crop to the subject with 0–64 px of padding, or pick the 1200×1200, 1080×1350, 1920×1080 or 1080×1920 preset before exporting.
- Export and check. PNG keeps the alpha channel; WebP is smaller; JPEG is flattened onto white. Use Download All to get a ZIP, add alpha masks to that ZIP if another editor needs them, and keep the individual download for a one-off correction.
The edge controls, in plain numbers
The four edge sliders are not interchangeable, even though they all change the border. Feather runs from 0 to 12 px and applies a blur to the mask; it is the control for a transition that feels too abrupt. Shrink runs from 0 to 20 px and contracts the mask by comparing shifted copies, which is useful when a thin light fringe from the old background survives the model. Smooth runs from 0 to 10 and adds a smaller blur on top of Feather, with a factor of 0.6; two units of Smooth add about 1.2 px of blur, so the range is more powerful than the label suggests. Cleanup runs from 0 to 10 and remaps weak mask values toward black or white, up to a threshold of 160; it can remove a faint ghost at the edge, but it also hardens the transition.
A sensible starting point is Shrink 1, Feather 1 and everything else at zero. Inspect the cutout against the final background, not against the checkerboard in the preview. A checkerboard hides a light halo, while a dark background exposes it immediately. If the subject has hair, zoom to 200% and work on a small section with the Restore brush; if a strap or a corner disappeared, switch to Restore and paint it back at a brush size between 4 and 100 px. Erase does the opposite when the model kept a piece of the old scene.
The brush is not a substitute for a better model. It is a repair tool for the few percent of the edge that the model missed. The history keeps up to 20 snapshots, so a bad stroke can be undone without reprocessing, and Reset edits returns the active image to the model's original mask. Apply to all is useful after the first image establishes the edge and background settings; check one result before sending the same values to the rest of the queue.
Backgrounds, crops and output formats
The background modes solve different problems. Transparent is the right choice when the cutout will be placed in another editor, because the alpha channel remains editable. Solid color is predictable for marketplace rules that require pure white; the color picker also covers brand colors. Image places a cover-fitted backdrop behind the subject, which is useful for a designed slide or a mockup. Gradient blends two colors across the canvas, and Blurred original keeps the context of the original scene while softening it from 0 to 40 px. None of these modes generates a new room, shadow or landscape; they composite the cutout over a supplied or calculated background.
Crop is a separate decision from background. Original frame keeps the source composition and fits it into the chosen preset; Trim to subject finds the visible bounds of the mask and removes empty space, with 0–64 px of padding so the result does not feel cramped. The presets are exact: 1200×1200 for a square listing, 1080×1350 for a 4:5 feed, 1920×1080 for a video thumbnail and 1080×1920 for a story. A preset does not add content, so a tall subject in a square frame may need padding rather than a tighter crop.
For output, PNG is the safe master when transparency matters. WebP usually produces a smaller file at the same visual quality, but some upload forms still reject it; if the browser cannot encode WebP, the tool falls back to PNG. JPEG has no alpha channel and is flattened onto white, which is appropriate for a listing that requires a white background and inappropriate when the background should remain transparent. The quality slider applies from 60 to 100% to WebP and JPEG; PNG is lossless. The alpha-mask checkbox only controls whether masks are included in the batch ZIP, while Download alpha mask saves the active image's mask as a separate PNG.
Batch work without a server
A batch is a queue, not a folder sync. Add up to 20 images, let the tool process them one after another, and use Apply to all when the edge, background, crop and preset settings should match. Download All produces a ZIP named for the date, with duplicate names numbered; the optional alpha masks travel in the same archive. This is useful for a supplier folder where every product needs the same white background, or for a set of headshots that will share a neutral color.
The limits are deliberate. Each image can be 25 MB and 6000 px on its longest side, and a ZIP can be 100 MB with 100 MB of unpacked content. A phone photo that exceeds the pixel limit is rejected before inference; a ZIP over the size limit is rejected before it is unpacked. If a batch fails, split it into smaller groups and check the file names and formats rather than assuming the model failed.
Nothing in that queue is uploaded. The model runs in the browser, the canvas compositing happens locally, and the downloaded ZIP is assembled in memory. The first run has to fetch the model weights from a CDN, which is why a cold start can take longer than the second run; the image itself never leaves the machine. That matters for client product photos, unpublished portraits and anything under an NDA, but it also means the speed depends on the visitor's hardware. A recent laptop with WebGPU can finish a small batch faster than an older machine running WebAssembly, and a 20-image batch at High quality is not the moment to test an old phone.
When the result is not good enough
The most common failure is not a broken model but a boundary that contains two different materials. A white shirt against a white wall, a glass object on a windowsill or a dark product on a dark table gives the model little evidence to separate foreground from background. Try the other model, add Shrink to remove the fringe, then use Erase at a small brush size on the remaining background. If the subject is transparent, accept that a single-image matte will need manual work; the tool can produce a useful starting mask, but it cannot recover refraction that was never recorded as a separate layer.
Motion blur is the second common problem. A hand moving during the shot produces a smear that belongs partly to the subject and partly to the background, and no edge slider can decide which is which. Choose the sharper frame, or paint the boundary by hand and inspect the result at 100%. Very fine fur and flyaway hair are a third case: Portrait is usually better than Universal, but a little Feather and a careful Restore stroke will do more than raising Smooth to its maximum.
Finally, check the destination's rules before exporting. A marketplace may require a square image with pure white behind the product; a design tool may need a transparent PNG; a social platform may compress a WebP differently from a PNG. The tool gives you the formats and the presets, but the upload form and the review process decide which one is acceptable. Export a test file early, especially when the batch is large.
Frequently Asked Questions
Which model should I use for people?
Choose Portrait for people, hair and headshots. Use Universal for products, animals and mixed scenes; a person holding a product can go either way, so compare one image before reprocessing the queue.
What image formats can I upload?
The picker accepts PNG, JPG, JPEG, WebP and ZIP. A folder, ZIP or image URL can also bring AVIF, HEIC and HEIF, which are converted in the browser. Each image can be 25 MB and 6000 px; a ZIP can be 100 MB.
How many images can I process at once?
Up to 20 images per batch. Add them from files, a folder, a ZIP, the clipboard or a URL, then process the queue and use Download All for one ZIP.
Why are the edges around hair still rough?
A single-image model estimates fractional alpha, and fine strands are the hardest part. Raise Feather slightly, add a little Smooth, then restore missing strands with a small brush at 200% zoom.
Can I blur the original background instead of replacing it?
Yes. Set Background to Blurred original and choose 0–40 px. The subject stays sharp while the rest of the frame is softened, and transparent, solid, image and gradient modes remain available.
Does the tool upload my photos?
No. The models run through ONNX Runtime Web in the browser, with WebGPU or WebAssembly. The first run downloads model weights, but the image is not sent to a server and no account is required.
Which output format should I choose?
PNG for transparency or a lossless master, WebP for a smaller file, JPEG for a white-background listing. The quality slider covers 60–100% for WebP and JPEG; PNG is lossless.
Can the tool generate a new scene behind the subject?
No. It can use a solid color, an image, a gradient or a blurred copy of the original. It does not generate furniture, landscapes or shadows that were not in the photo.
Zurich, Switzerland · SO reputation 2000 · Badges: 5🥇34🥈43🥉 · SO member since 2013