How AI background removal actually works
Behind the one-click result is semantic segmentation: the BRIA RMBG model (compiled to WebAssembly) classifies every pixel as either foreground subject or background, then sets the background pixels fully transparent. It runs entirely in your browser — the ~5MB model downloads once and caches, after which removal works offline and your images never upload. For most product photos and portraits, the quality rivals dedicated API services like remove.bg, at zero cost and full privacy.
What makes a clean cutout
The model’s accuracy is largely decided by your source image:
| Clean results | Tricky results |
|---|---|
| Clear subject, defined edges | Hair, fur, fuzzy textures |
| Good subject/background contrast | Subject and background similar colors |
| Moderate resolution (500–4000px) | Very low resolution |
| Simple or uniform background | Busy, cluttered backgrounds |
| Solid, opaque objects | Glass, water, semi-transparent items |
The recurring theme: the model needs a clear boundary to find. Anything where the subject blends into the background — by color, transparency, or fine detail — is where edges suffer.
Why PNG, always
Background removal always outputs PNG, never JPEG, for one non-negotiable reason: JPEG has no alpha channel, so it can’t store transparency. The transparent region would fill with white or black. PNG’s alpha channel is what lets the cutout sit on any background without a halo. If you later flatten the result onto a solid background, you can re-export as JPEG — but the cutout itself must stay PNG to preserve the transparency.
Practical uses
- E-commerce — consistent white or branded backgrounds for product catalogs.
- Design — drop subjects into thumbnails, banners, and social graphics.
- Profile photos — clean headshots on a new background color.
- Compositing — layer a subject into an entirely new scene.
Large images (above ~4000px) are slow and memory-heavy, so resizing to under ~2000px on the longest edge before removal gives the best speed/quality balance. For the cleanest input, optimize first with the Image Compressor or Image Resizer.