Remove Background

An AI segmentation model traces the subject and turns every other pixel transparent.

What this does

Remove Background runs the RMBG-1.4 segmentation model directly in your browser through Transformers.js — your image is never uploaded to a server.

The first time you drop an image, the model (~44MB) downloads from the Hugging Face CDN and is cached, so later images start instantly. Inference runs in a background worker, so the page stays responsive while it works. Links to the model and library are below.

How it works

  1. 1Drop your image.
  2. 2The first time, the background-removal model downloads once (~44MB) and is cached for next time.
  3. 3Pick a transparent, white, or custom background and download the PNG.

Built with open source

  • Transformers.js Hugging Face's library for running ONNX machine-learning models in the browser, on WebGPU or WebAssembly. The model weights download from the Hugging Face CDN on first use and are cached. · Apache-2.0
  • RMBG-1.4 (BRIA AI) Image-segmentation model that separates the foreground subject from the background. · Non-commercial

Frequently asked questions

Related tools

All Edit image