rembg

rembg is a Python library that removes image backgrounds locally using U2-Net and ONNX models. No uploads, no API calls, no cost, and fully offline processing.

Visit website
Preview of rembg

What rembg does

rembg is an open-source Python library for background removal that runs entirely on your machine. It uses U2-Net and other ONNX models and processes images without sending anything to a third-party server. Install it with pip, use it as a CLI for batch jobs, import it as a Python library, or run it as a local HTTP server. It is free (MIT license), private, and has no usage limits.

rembg features

  • Fully offline: no uploads, no API keys, no internet required
  • CLI for batch processing from the terminal
  • Python library for integration into scripts and pipelines
  • Local HTTP server mode for service-style usage
  • Multiple model options: u2net, u2netp, silueta, isnet-general-use, and more

Who rembg is for

  • Developers and researchers who need privacy-first background removal
  • Anyone processing sensitive images who cannot use cloud services
  • High-volume batch jobs where per-image cloud costs add up

rembg FAQs

Is rembg free?

Yes. rembg is fully open-source under the MIT license, free to use with no usage limits or API keys.

What hardware does rembg need?

rembg runs on CPU or GPU. A GPU speeds up batch processing significantly; a modern CPU handles occasional use fine.

rembg vs remove.bg

Here is how rembg stacks up against remove.bg on pricing, free tier, output resolution, batch support, and API access, drawn from each product's published documentation.

Feature rembg remove.bg (until 1 Dec 2026)
Pricing Free (open source, MIT license) $0.22/image
Free tier Unlimited (runs locally, no credits) Free previews until 1 Dec 2026
Free output resolution Full resolution 0.25 MP (~626 x 417 px)
Processing On your device Uploaded to servers
Watermark on free output No No (lower resolution)
Batch processing Yes (CLI and Python library) Yes
API Yes (local HTTP server) Yes
Signup required No Yes

Verdict: Pick rembg over remove.bg when privacy, cost, or offline processing matter. remove.bg wins on ease of use and edge quality on difficult subjects like hair.

remove.bg values checked 2026-09-23 (source) ยท rembg values checked 2026-09-23 ( source )

Categories

Tags

More Open Source tools

Leonardo.ai

Official remove.bg API successor with sync and async requests.

remove.bg

remove.bg is the reference tool this directory measures every alternative against.

Stay Updated

Get useful new tools and launch notes by email. No spam.