rembg

Open-source MIT command-line and Python tool for removing image backgrounds

85.5
Score in best background removers
Check github.com (opens in a new tab)AlternativesCompareShare

Opens the official site in a new tab. Check current plans and terms there; nothing is purchased on listme.name.

Ranked 3 of 9 in best background removers

Open-source MIT tool that removes backgrounds on your own computer from the command line or Python code. Unlike the web services, it needs a Python setup, and its README documents only command-line and library use.

Best for Developers who need offline, scripted background removal

About rembg

rembg runs a background-removal model on an image file you point it at, and it can be used as a command-line program or imported as a Python library. The README covers CPU installation and GPU support for NVIDIA and AMD hardware, and it describes choosing an edge mode for the cutout. Because the work happens on your machine, the photo does not have to be uploaded to a server.

The trade-off is setup. A user needs a Python environment and the model files, and the tool is aimed at people who script image work or process many files in a pipeline. The README documents command-line and library use only, so someone who wants to click and drop a photo should pick a web tool such as Photopea or fixmint* instead.

Key features

  • Command line and Python library
  • CPU and GPU support
  • Choice of edge mode
  • MIT license

Strengths

  • Runs on your own computer, with no upload
  • Usable from the command line or from Python code
  • MIT license with CPU and GPU options

Limits

  • Needs a Python setup before first use
  • The README documents command-line and library use only

Where rembg ranks

How rembg compares

ProductScorePricePlatformsWhere the cutout runsInterfaceOutput options
#1remove.bg92.0Free plan, paid upgradesWebUploaded to remove.bg's serversWeb upload, API and Photoshop extensionTransparent PNG or white background
#2Photoroom87.0Free plan, paid upgradesWebNot stated on the pages checkedWeb tool, API and batch processingDownloadable image; format not stated
#3rembg85.5Free and open sourceCommand lineOn your own computerCommand line and Python libraryNot stated on the pages checked
#4Canva83.5Free plan, paid upgradesWebWindowsmacOSiOSAndroidNot stated on the pages checkedOption in the photo editorNot stated on the pages checked
#5fixmint*70.0FreeWebIn the browser; not uploadedSingle-purpose web toolTransparent, white, colour or blur

The full comparison table for best background removers has all 9 products.

Questions about rembg

Is rembg free?
rembg can be used without paying: Free and open source under the MIT license. Check the vendor’s pricing page for current limits.
Is rembg open source?
Yes. rembg publishes its source code under the MIT license.
Which platforms does rembg support?
rembg is available on: Command line.
What is rembg best for?
Developers who need offline, scripted background removal. In our ranking of background removers it is number 3 of 9 with a score of 85.5.
What are the best alternatives to rembg?
The highest-ranked alternatives on listme.name are remove.bg, Photoroom, Canva, Clipdrop.

Show this ranking on your site

If you make or maintain rembg, this badge links back to this page and shows its current rank. It updates when the ranking does.

Ranked #3 of 9 background removers on listme.name
<a href="https://listme.name/software/rembg"><img src="https://listme.name/badge/rembg.svg" height="28" alt="Ranked #3 of 9 background removers on listme.name"></a>

Made by, or connected to, the publisher of this site or people the publisher works with. Listed on the same criteria as everything else, with the lift described in How we rank and Disclosure.