Rembg

Rembg removes backgrounds from images through a command-line tool and software library.

github.com/danielgatis/rembg
Rembg homepage screenshot

About Rembg

Rembg removes backgrounds from images. It can be used as a command-line tool, Python library, HTTP server, or Docker container.

It handles single files and batch folder processing, with options to select a model, output only the mask, apply alpha matting, and reduce color fringing on soft edges. Use requires Python 3.11 to under 3.14 and a hardware-specific install for CPU, NVIDIA/CUDA, or AMD/ROCm.

Key features

  • Remove backgrounds via CLI, Python library, HTTP server, or Docker
  • Process single local files or piped remote image input
  • Batch-process folders with watch mode for new files
  • Select models and pass extra model parameters
  • Output mask only, apply alpha matting, clean edge fringing
  • Pre-download models and migrate legacy ~/.u2net models
Best for: People who want to add background removal to Python projects or command-line workflows.
Good for
  • Works as CLI, library, HTTP server, and Docker container
  • Offers CPU, NVIDIA/CUDA, and AMD/ROCm installation options
  • Supports batch folder processing and pre-downloading models
Watch out for
  • Requires Python >=3.11 and
  • NVIDIA GPU use may require onnxruntime-gpu, CUDA, and cudnn-devel
  • GPU setup requires checking system compatibility with onnxruntime

Rembg at a glance

Type
Open-source project
Pricing
Not confirmed. Check the site
Open source
Yes · Source code
Language
English
Last checked
Oct 5, 2026 · Online when checked
Listed
Oct 5, 2026

Rembg alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 24 alternatives

Popular in Image Creation & Editing

Well-known listings from the same topic.

All 244

Rembg FAQ

What Python version does Rembg require?
Python >=3.11 and
How do I install Rembg for CPU use?
Use pip install "rembg[cpu]" for the library, or pip install "rembg[cpu,cli]" for library plus CLI.
How do I process a folder of images?
Use rembg p path/to/input path/to/output, adding -w to watch for new or changed files.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing