Change an image's background for another photo
Replace a photo's background with another image using AI, directly in your browser.
or click to select it
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.
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
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
Upload the background image
It's automatically scaled to cover the whole frame, cropping the excess centered.
- 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.
Related tools
- Auto Crop PersonCuts out a person from a photo with AI.
- Blur Image BackgroundBlurs a photo's background with AI.
- Change Background ColorChanges a photo's background to any color.
- ID PhotoGenerates an ID or passport photo with a white background.
- Remove Background from ImageRemoves a photo's background with AI.
- Transparent PNGTurns a photo into a transparent PNG.