Version2.0.86
Revision3
LicenseMIT
Confinementstrict
Basecore26

Remove image backgrounds from the command line or a local web UI


rembg removes the background from images with pretrained segmentation
models (U2-Net, BiRefNet, BRIA RMBG, SAM and others) run on the CPU with
ONNX Runtime. It processes single files, whole folders, binary streams,
or serves an HTTP API with a browser interface.

Examples

rembg i ~/Pictures/photo.jpg ~/Pictures/photo-cut.png
rembg i -m birefnet-general -a ~/Pictures/photo.jpg out.png
rembg p ~/Pictures/input ~/Pictures/output
cat photo.jpg | rembg i > photo-cut.png
rembg s
rembg d bria-rmbg


Models

Models are downloaded on first use and kept in
~/snap/rembg/common/models, which survives snap refreshes. Custom models
passed with model_path must be placed under ~/snap/rembg/common.

File access

rembg can use images in your home directory. To also use USB drives and
other removable media (/media, /mnt), run:

sudo snap connect rembg:removable-media

Update History

2.0.86 (3)
2 Nov 2026, 21:15 UTC

Published2 Nov 2026, 20:38 UTC

Last updated2 Nov 2026, 20:44 UTC

First seen2 Nov 2026, 21:15 UTC