rembg

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

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

How rembg compares with remove.bg on the parameters that matter for choosing a background removal tool.

Parameter rembg remove.bg
Pricing Free (open source, MIT license) $0.22/image
Free tier Unlimited (runs locally, no credits) 1 preview/day (50 API calls/mo)
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 · rembg values checked 2026-09-23 · Source

Categories

Tags

More Open Source tools

Adobe Firefly

Free full-resolution background removal from Adobe Firefly.

Photoroom

AI background removal with editing tools for product photos.

Stay Updated

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