Portrait Background Remover

Create a transparent PNG from a portrait photo. The model runs in your browser; your image is not uploaded for processing.

Choose a portrait photo to begin.

First use: This page downloads the Transformers.js runtime from jsDelivr and MODNet model files from Hugging Face. These downloads may take time and may be cached by your browser. Only the model/runtime requests go to those providers; image inference runs locally. Results are portrait-focused and may not cleanly separate every subject or background.

Model: Xenova MODNet, an Apache-2.0 portrait-matting model. Based on MODNet.

How it works

  1. Select an image on your device.
  2. Choose Remove background. On first use, the browser fetches the model and JavaScript runtime.
  3. Preview the transparent result and download the PNG.

This model is intended for portrait matting, not general-purpose object selection. Large photos may require substantial memory and processing time.