Skip to content

Change an image's background for another photo

Replace a photo's background with another image: the AI cuts out the subject and composites it onto the background you choose, directly in your browser.

Processed on your device via WebAssembly. Nothing is sent to any server.

or click to select it

Computes the subject's transparency mask with a segmentation model (U²-Net) via WebAssembly, then composites both images on a canvas: the new background is scaled "cover"-style and the cut-out subject is drawn on top.

Use cases

  • Giving a studio background to a photo taken at home.
  • Changing the setting of a product photo.
  • Compositing a montage onto a themed background (landscape, texture, brand color).

How it works

  1. 1

    Upload the main photo

    The one with the subject you want to keep. Click "Remove background": the first time it downloads a model (~19 MB).

  2. 2

    Upload the background image

    It's automatically scaled to cover the whole frame, cropping the excess centered.

  3. 3

    Download the result

    Get the final photo with the new background, in PNG.

Frequently asked questions

What if the new background has a different aspect ratio?

It's scaled to cover the whole frame and the excess is cropped centered, like CSS's "object-fit: cover" — it's never distorted and never leaves empty strips.

Can I try several backgrounds without redoing the cutout?

Each new background recomposes the image, reusing the same already-decoded subject; to start over with a different subject photo, upload it again.

← Image