Rembg
The background? Gone in a second.
An open-source AI tool that finds the person or product in your photo and removes everything behind it, leaving a clean transparent PNG.

- Free
- Open source (MIT)
- 25k+ GitHub stars
- Runs on your computer
What it does
Rembg is an open-source tool that uses AI to detect the main subject of an image, whether it's a person, a product or a pet, and remove the background around it. You get a transparent PNG you can place on any background. It works on single images or whole folders, and it runs on your own computer.
What you can make with it
- Clean product photos on white for your online store
- Profile pictures and portraits on your brand color
- Cutouts of people, pets and objects for thumbnails and social posts
- Batch-processed folders of catalog images in one go
- Clean cutouts of illustrations and anime characters
How to use it
Easy way (In your browser)
- Install Python from https://www.python.org if you don't have it.
- Open your terminal and run:
pip install "rembg[cpu,cli]" - Start the built-in web page:
rembg s - Open http://localhost:7000 in your browser, upload your image and download the result.
Pro way (Command line)
- Remove the background from one image:
rembg i input.jpg output.png - Process a whole folder at once:
rembg p my_photos my_photos_cut - Pick a model made for your image, for example for people:
rembg i -m u2net_human_seg input.jpg output.png
Tips for the best results
- Use photos where the subject is clearly separated from the background.
- For people, try the human segmentation model; for anime and illustrations, try the anime model.
- Use the alpha matting option (-a) for softer, more natural edges around hair and fur.
- Save the result as PNG to keep the transparency.
Quick questions
- Is it free?
- Yes. It's free and open source under the MIT license.
- Are my photos uploaded?
- No. It runs locally on your computer.
- Do I need to know how to code?
- You need to paste a couple of commands once. After that, the browser page (rembg s) works with simple uploads.
- Why is the first run slow?
- The first time, it downloads the AI model. After that it's fast.
Liked this tool? Follow me on TikTok and Instagram for a new free tool every week.