🪄GenieToolsAll Tools

Replace a Photo's Background with Any Image

By Yasir Yaseen · Updated November 2026

Two uploads, one result: a subject photo and the scene to put behind it. The cutout and the compositing both happen in your browser.

Step 1 — Subject Image

Upload the photo to cut out

Drop here or browse — PNG, JPG, WebP

Step 2 — New Background

Upload your background image

Drop here or browse — PNG, JPG, WebP

What this tool does, step by step

  1. The subject photo goes through the same background-removal model as the Background Remover, producing a transparent cutout. The first run also downloads the model files (about 30 MB, per the code), so it is slower than later runs.
  2. A canvas is created with the subject photo's exact pixel dimensions.
  3. Your background image is scaled to cover that canvas, centred, and drawn first. Overflow is cropped.
  4. The cutout is drawn on top at its original position, and the canvas is exported as a PNG named after the subject file.

That is the whole pipeline. There are no controls for position, scale, shadow, edge softening or colour matching, and it handles one subject and one background per run (no batch). Knowing this tells you where to put effort: into choosing the two source images.

Making the composite believable

Because the tool does no blending, believability comes from how well the two photos already agree. Check these before you upload.

Light direction

If the subject is lit from the left, the new scene should have its light and shadows on the same side. A cutout with strong side light placed in a scene lit from behind is the most common giveaway.

Horizon and camera height

A subject photographed from above looks wrong against a background shot at eye level. Match the angle: ground-level horizon lines should sit roughly at the subject's chest or eye height for a standing portrait.

Resolution and sharpness

The output takes the subject photo's dimensions. A small background image is enlarged to cover that canvas, so it turns soft while the subject stays crisp. Use a background at least as large as the subject photo.

Colour temperature

Warm tungsten light and a cool blue-sky scene clash. Choose a background with a similar white balance, or colour-correct beforehand.

Depth of field

A sharp subject on a razor-sharp landscape feels flat. Backgrounds that are naturally blurred (shallow depth of field, bokeh, studio backdrops) sit more convincingly behind a cutout.

Which kind of background to pick

BackgroundBehaviourSuits
Plain studio backdrop or gradientForgiving. Hides edge fringing and needs no perspective match.Headshots, ID-style photos, product cards
Blurred interior or streetNatural depth. Match the light colour.Profile photos, team pages
Sharp landscape or cityscapeHardest to make believable; light, horizon and scale must agree.Creative composites, thumbnails
Pattern or busy textureCompetes with the subject and makes rough edges obvious.Avoid unless stylised on purpose

Rights matter here too: you need permission to use both the subject photo and the background image, especially for anything published or sold.

After the composite

The result is a PNG, which is lossless and can be large for a full photographic scene. The Continue with bar under the result sends it to Resize, Compress, Convert format, Add text or Make a PDF without re-uploading. For web or email, converting to JPG or WebP after compositing usually cuts the size considerably, and since the background is now opaque, nothing is lost by dropping transparency. If the cutout edge was rough, go back to the Background Remover with a cropped, sharper version of the photo, and then bring the cleaner PNG here as the subject.

When this page is opened through a Continue with link from another tool, only the first file is loaded, as the subject. You still choose the background yourself.

Questions about this tool

Can I move or resize the subject on the new background?
No. The subject keeps the exact position and size it had in its original photo, and the result has the same pixel dimensions as that photo. Only the background is scaled. If you need the subject lower, smaller or off-centre, crop or resize the subject photo before uploading it, or extend the canvas in another editor.
My background image is a different shape from my subject photo. What happens?
The background is scaled up or down until it covers the whole subject canvas, keeping its aspect ratio, and is centred. Whatever sticks out past the edges is cropped away. A wide panorama behind a portrait photo will therefore show only its middle section.
Why does my subject look pasted on?
The tool only layers the cutout over the background. It does not add a shadow, adjust colour or match brightness. The usual causes are mismatched light direction, a colour cast (warm indoor light against a cool daylight scene) and different sharpness. The section above lists what to check before you upload.
Can I use a solid colour or gradient as the background?
The background slot expects an image file (PNG, JPG or WebP). For a flat colour, Add background gives you a colour picker and presets and also supports batches. For a gradient, save a gradient image from any design tool and upload it as the background.
Does the background image get cut out too?
No. Only the subject photo goes through the background-removal model. The background image is drawn as it is, so any people or objects in it stay in the final picture.