BiRefNet General Heavy · MIT commercial-safe · full-resolution

Precise background remover for white-background photos.

Built for hard edges — flyaway hair, rough edges, tree branches, flower petals. Soft alpha matte at original resolution, not blocky 320px masks. Private: runs on your machine.

How it works
✓ Hair / fur / petals✓ 1024–2048px inference ✓ Transparent PNG + mask✓ No upload to cloud
demo cutout checker = transparency
Tip: keep threshold at 0 for hair. Use HR 2048 for branches/petals, Matting for portraits.

Pro editor

Drag & drop → Remove → preview on checker / white / mask → download. Original resolution preserved.

Drop image here or click to browse
JPG / PNG / WEBP · stays on your machine
Backend: checking…
Original
no image yet
Cutout
result appears here

History & gallery

Last cutouts in this browser (localStorage). Re-download anytime. Server files also in outputs/.

Why precise?

Tuned for white-background studio shots with difficult foregrounds.

◈

BiRefNet Heavy, not U²-Net

Dichotomous segmentation with gradient supervision for hair-thin structures. No 320px blocky edges.

⬢

Full-resolution soft alpha

Mask bilinear-upsampled to your original size. Threshold 0 keeps flyaways semi-transparent.

❋

White despill

Suppresses white halo on petals/hair from white studios without touching opaque pixels.

⬣

HR 2048 + Matting modes

Switch to HR for branches/petals, Matting for portraits — same tool, no reinstall.

⚿

Commercial-safe MIT

No BRIA non-commercial trap. BiRefNet weights are MIT — use in client work.

🔒

Private by default

FastAPI on localhost. Images never leave your PC. History in your browser only.

How it works

1

Drop a photo

White-background JPG/PNG. Kept at full size; model sees a 1024–2048 normalized copy.

2

Heavy inference

Swin-Large BiRefNet predicts a soft alpha matte. GPU fp16 if available, CPU fallback.

3

Refine + export

Despill whites, composite RGBA, save transparent PNG + mask to outputs/.

FAQ

Which model for hair vs trees vs petals?

Default General handles most photos. Portraits → Portrait Matting. HD BiRefNet gives the finest trees/petals edges but needs WebGPU + lots of free RAM — on weaker machines it fails, so the site auto-uses General.

Why is my first run slow?

Weights (~885MB) download from HuggingFace once to ~/.cache/huggingface, then cached. GPU does 1024px in ~1–3s; CPU takes 10–60s.

Can I use results commercially?

The in-browser default model (RMBG-1.4) is free for non-commercial use — check Bria's license before client work. For commercial jobs, run the Python backend with BiRefNet (MIT) or pick HD BiRefNet in the tool on a strong machine.

How do I get the sharpest edges?

Keep threshold 0, despill 0.5–0.7, inference 1536–2048, and inspect at 100% zoom. Avoid recompressing the PNG.

Where are files saved?

Browser history (thumbnails) + outputs/*_rgba.png on disk. GET /api/outputs lists server files.