rembg
Tool that removes image backgrounds locally with AI, via the command line or through a small web interface.
- By
- Daniel Gatis
- Use
- Command line and web interface in the browser (Gradio via „rembg s“)
- Price
- free
- License
- MIT
- Version
- 2.0.85 (Sep 20, 2026)
What is rembg?
rembg removes the background from photos and images completely on your PC. You can use it in the command line or start a small web interface in the browser with „rembg s“. It comes with many models, for example for people, anime, or general subjects, including BiRefNet and u2net. The default model is large and accurate, but for commercial use only with a paid license. Good for anyone who needs cutouts for product photos or graphics and doesn’t want to use the cloud.
For you if you want to cut out lots of images locally and aren’t afraid of a few Python commands.
Strengths
- Runs completely locally, even without a graphics card
- Many models for different subjects
- Is updated regularly
- Also usable as a local HTTP server with API
Weaknesses
- No real desktop app, setup via Python
- Default model commercially only with a BRIA license
- The model withoutbg is a cloud service, not local
Does it run on your system?
| Operating system | Hardware | ||
|---|---|---|---|
| Windows | yes | NVIDIA | yes |
| Linux | yes | AMD | limited |
| macOS | unclear | Intel Arc | unclear |
| Apple (M chips) | unclear | ||
| processor only | yes |
Runs on the CPU; NVIDIA via onnxruntime-gpu with CUDA, AMD via onnxruntime-rocm.
Installation
Install with Python 3.11 to 3.13 via pip, for example pip install "rembg[cpu]" or with the GPU extra; after that, „rembg s“ starts a local server with a web interface.
Download programs only from the official site or the official repository.
License
rembg itself is free (MIT), but the default model bria-rmbg (RMBG-2.0) requires a paid agreement with BRIA for commercial use; for commercial purposes, you’re better off choosing a different model and checking its license.
The program license is something different from the model licenses you use in it. Whether you may sell results depends on the model; see Licenses. Not legal advice.
Models that run on it
- Cut out BiRefNet Sales allowed
- Cut out BRIA RMBG 2.0 Non-commercial
Alternatives
Known errors and solutions
Sources
- https://github.com/danielgatis/rembg
- https://github.com/danielgatis/rembg/blob/main/README.md
- https://github.com/danielgatis/rembg/releases
- https://pypi.org/project/rembg/
Checked on Oct 21, 2026. Questions about rembg? Ask in the forum.