rembg
rembg removes backgrounds from images and can be used as a command-line tool, Python library, HTTP server, or Docker container.
What rembg is
rembg removes backgrounds from images and can be used as a command-line tool, Python library, HTTP server, or Docker container. It supports single-image and batch-folder processing, watch mode, RGB24 streams, and API access, with PNG as its listed export format. Models cover general images, portraits, clothing, anime, and object segmentation; bria-rmbg is the default local model. For edge refinement, options include color decontamination, alpha matting, and ViTMatte. The documentation describes integrations with FFmpeg RGB24 output, OpenCV, PIL, NumPy, Docker, and its HTTP API. rembg is free, with a free plan, and is licensed under MIT. Local ONNX models download on first use and are stored in the rembg models directory. The listed Python requirement is versions >=3.11 and <3.14, and installation instructions cover CPU, NVIDIA CUDA GPU, and AMD ROCm. The optional withoutBG backend sends images to its servers, with a documented 20 MB maximum upload size. Model weights have separate licenses; commercial use of RMBG-2.0 under the BRIA license requires a paid agreement.
Good
- Free, MIT-licensed tool
- Supports batch folders and API access
- Offers several model categories
- Includes multiple edge-refinement options
Watch out
- Requires Python >=3.11 and <3.14
- PNG is the listed export format
- RMBG-2.0 commercial use requires a paid agreement under BRIA licensing
- withoutBG uploads are capped at 20 MB
Who it suits
rembg suits users who want image-background removal through a command line, Python, HTTP API, or Docker. Its batch processing and edge-refinement options may help people building image-processing workflows.
Verdict
rembg offers several ways to remove image backgrounds, from command-line use to an HTTP server, with batch processing and edge controls. Check model licensing before commercial use, and note the Python version requirements.
Plans and prices
From rembg's own pricing page, checked 9 Oct 2026.
| Plan | Price | What it gives you |
|---|---|---|
| rembg | Free | MIT-licensed tool · local models downloaded on first use |
The facts
Each one read from rembg's own pages, with the date it was checked.
What it does
- API access
- Yeschecked 23 Sep 2026
- Batch processing
- Yeschecked 23 Sep 2026
- Cloud option
- The optional withoutBG backend sends images to withoutBG servers and has a documented maximum upload size of 20 MB.checked 9 Oct 2026
- Commercial-use limit
- The README says the BRIA license for RMBG-2.0 requires a paid agreement for commercial use.checked 9 Oct 2026
- Compute options
- Installation instructions cover CPU, NVIDIA CUDA GPU, and AMD ROCm backends.checked 9 Oct 2026
- Edge refinement
- Edge options include color decontamination, alpha matting, and ViTMatte for refining soft edges.checked 9 Oct 2026
- Export formats
- PNGchecked 23 Sep 2026
- Integrations
- The documentation shows using rembg with FFmpeg RGB24 output, OpenCV, PIL, NumPy, Docker, and its HTTP API.checked 9 Oct 2026
- Licensing
- rembg is licensed under MIT, while model weights have separate licenses that may affect commercial use.checked 9 Oct 2026
- Local storage
- Local ONNX models download on first use and are stored under the rembg models directory.checked 9 Oct 2026
- Models
- Available models include options for general images, portraits, clothing, anime, and object segmentation; bria-rmbg is the default local model.checked 9 Oct 2026
- Processing
- The command line supports single images, batch folder processing, watch mode, and RGB24 streams.checked 9 Oct 2026
- Purpose
- rembg is a tool for removing image backgrounds.checked 9 Oct 2026
- Replacement backgrounds
- Nochecked 23 Sep 2026
- Runtime requirements
- The project lists Python versions >=3.11 and <3.14 as requirements.checked 9 Oct 2026
- Security detail
- Downloaded models have hash verification, which can be disabled with the MODEL_CHECKSUM_DISABLED environment variable.checked 9 Oct 2026
- Support
- The README invites users to support the project by buying the maintainer a coffee or beer.checked 9 Oct 2026
- Ways to use
- It can be used as a command-line tool, Python library, HTTP server, or Docker container.checked 9 Oct 2026
Money
- Free plan
- Yeschecked 23 Sep 2026
Alternatives to rembg
- 1

Pixelcut
Free planAndroidiOSWebAPI9.1From $8 a month - 2

Photoroom
Free planAndroidiOSWebAPI9.1From $7.50 a month - 3
Cutout.Pro
Free planAndroidiOSWebAPI9.0From $5 a month - 4

BackgroundRemover
Free planOpen sourceWebAPILinuxmacOS9.0From $108 a year - 5

Erase.bg
Free planAndroidiOSWebAPI8.9Free plan - 6

Artguru Background Remover
Free planAndroidiOSWebAPI8.5From $39.99 a year
