Replace an Image Background (Chroma Key)

Upload a green-screen or solid-background photo, pick the color to remove, and composite the subject onto a transparent, solid, or gradient background — all in your browser, nothing uploaded.

Try:
Image with the background replaced

Replace a green-screen or solid background, in your browser

Upload a photo shot against a green screen (or any solid-color backdrop), name the color to remove, and the subject is cut out and dropped onto a new background — a transparent cut-out, a solid color, or a two-color gradient. Everything runs locally with ffmpeg compiled to WebAssembly: your image is never uploaded, there is no account, and it's free.

This is a chroma-key tool: it removes pixels close to one color you choose. It shines on green/blue screens and clean studio backdrops. It does not use AI to guess the subject, so it can't cleanly cut a person out of a busy street photo — for that you need a solid or single-color background behind the subject.

Worked example

Upload a portrait shot on a green screen and click the Green screen → white example, or set the fields by hand:

The green backdrop turns white and the subject stays put — the output keeps the exact input dimensions. Switch New background to transparent for a see-through PNG you can drop onto any design, or to gradient with a second color (say #87ceeb#ffffff) for a soft sky backdrop. If your green lightens at the edges, raise Similarity to 40–50; if the cut-out edge looks jagged, raise Edge softness to 15–25.

Tuning the key

New-background options

Limits and edge cases

FAQ

Does this remove the background automatically, like an AI tool?

No. This is a chroma-key remover: it deletes pixels close to one color you choose, so it needs a solid, green, or blue-screen background behind the subject. It does not use an AI model to detect the subject, so it can't cut a person out of a cluttered photo. For clean, controllable results, shoot against a single-color backdrop and set that color as the one to remove.

What similarity and edge-softness values should I use?

Start with Similarity 30 and Edge softness 10. If bits of the backdrop remain (common with uneven studio lighting), raise Similarity to 40–50. If the subject starts vanishing, lower it. Raise Edge softness to 15–25 to smooth a jagged or fringed cut-out edge; keep it low for crisp graphics. Very high values make the whole subject partly transparent, so nudge in small steps.

Can I get a transparent PNG instead of a colored background?

Yes. Set New background to transparent and Output format to png (or webp) — the subject comes back with a see-through background you can layer onto any design. A jpg output can't hold transparency, so it's rejected with a hint if you combine it with a transparent background.

Can I use a blue screen or a custom backdrop color?

Yes. Set Background color to remove to your backdrop's color — #0000ff for a blue screen, or any name/hex for a custom solid backdrop. A slightly higher Similarity (35–45) often helps with blue screens because skin tones sit closer to blue than to green. Avoid a key color your subject is wearing, or it will be cut out too.

Can I replace the background with my own image?

Not directly — the page accepts a single upload, so it can composite onto a solid color or a two-color gradient, but not onto a second uploaded photo. The workaround is to export a transparent PNG here and place it over your background image in any editor or design tool.

Is my photo uploaded anywhere?

No. The page downloads an ffmpeg WebAssembly build once, then processes your file entirely in the browser tab. The image never leaves your device, and there's no account or sign-in.

Developer & Automation Access

Run it from the terminal

Same engine as this page, headless — via the gizza CLI:

gizza tool image-bg-replace 'url=https://example.com/input' 'similarity=30' 'blend=10' 'bg_type=solid' 'direction=vertical' 'format=png'

New to the CLI? Get gizza →

Open it by URL

Pre-fill and auto-run this tool with query parameters — the names match the API/CLI:

https://gizza.ai/tools/image-bg-replace/?url=https://example.com/input&similarity=30&blend=10&bg_type=solid&direction=vertical&format=png