Change an image's background color
Three modes: fill transparency, repaint a flat colour, or key a solid background out to transparent.
- Runs in your browser
- Nothing is uploaded
- No sign-up
- No watermark
Drag & drop your image here
or tap to browse · you can also paste from the clipboard
JPG · PNG · WebP · GIF · BMP · AVIF · SVG · up to 50 MB each
Choose an imageBefore
After
Processed image will appear here.
How to use the image background color changer
Choose one of three modes: fill existing transparency with a colour, replace a flat background colour with another, or make a solid colour transparent. Pick the colour to target and raise the tolerance until the background clears without eating into your subject.
- Load the imageThe tool opens on the mode that suits the file and pre-selects the most common edge colour.
- Choose a mode and colourFill transparent areas, replace a picked colour with a new one, or make it transparent.
- Tune tolerance and downloadRaise the tolerance until the background clears without eating the subject.
About this tool
This is colour-key editing, not AI subject extraction, and the distinction matters. It selects pixels that are within a tolerance of a colour you pick, then fills, repaints or clears them. On a passport photo shot against a plain wall, or a product on a white sweep, it works well. On a person standing in a garden, it will not.
The tolerance slider controls how far a pixel may deviate and still count as background. The outer quarter of the tolerance band is feathered, which softens the transition and avoids the hard jagged edge that naive keying produces.
What you get
- Automatic detection of the dominant edge colour
- Fill / replace / remove modes
- Tolerance slider with feathered edges
- PNG and WebP output keeps transparency
- Everything processed on your device
When to use the image background color changer
Passport and ID photos
Many authorities specify a plain white or light grey background. If you photographed against an evenly lit wall, replace mode can even out the colour.
Product photos on a white sweep
Studio product shots key cleanly. Make the background transparent for use on coloured pages, or replace it with the exact white a marketplace requires.
Cleaning up scanned logos
A logo scanned from paper has an off-white background. Key it out to get a transparent PNG usable on any colour.
Flattening transparency deliberately
Fill mode paints a solid colour behind a transparent PNG, which is useful before printing or before converting to JPG.
Choosing a mode and tolerance
| Goal | Mode | Tolerance | Output format |
|---|---|---|---|
| Transparent PNG onto white | Fill | n/a | Any |
| White background → transparent | Make transparent | 12-25% | PNG or WebP |
| Grey wall → white | Replace | 18-30% | Any |
| Green screen → transparent | Make transparent | 25-40% | PNG or WebP |
| Slightly uneven backdrop | Replace | 30-45% | Any |
| Busy or detailed background | not possible (see below) | n/a | n/a |
How it works
This is colour-key editing, and the distinction from AI background removal matters. Every pixel's distance from the colour you picked is measured in RGB space; pixels within the tolerance radius are filled, repainted or cleared. There is no understanding of what a subject is, only how close each pixel's colour is to the target.
That means it works well on a plain, evenly lit backdrop and fails on a garden, a street or a patterned wall. The tolerance slider is the only control that matters: too low and patches of background survive, too high and parts of your subject that share those colours disappear with it.
Anti-aliased edges are the hard part of any colour key. The pixels along a subject's outline are a blend of subject and background, so they sit partway inside the tolerance radius. The outer quarter of the tolerance band is therefore feathered rather than cut hard, which softens the transition and avoids the jagged, halo-ringed edge that naive keying produces. Some fringing is unavoidable with any colour keyer, not just this one.
When you load an image, the most common colour around its outer edge is detected automatically and pre-loaded into the picker, since that is almost always the background you want to target. The starting mode follows the file as well: fill for an image that has transparent areas, replace for one that has none, because a fill has nothing to paint on an ordinary photo.
Common problems and how to fix them
- I picked a new colour and nothing changed
- "Fill transparent areas" only paints where the image is see-through, and a photo or JPG has no such areas. Switch to "Replace a colour", click the background in the Before image to sample it, then choose the new colour. The result also looks unchanged when the new colour is the same as the one being replaced.
- Part of my subject disappeared
- The subject contains colours within the tolerance of the background. Lower the tolerance, and in future photograph against a colour that does not appear in the subject.
- Patches of the old background remain
- Raise the tolerance gradually. If patches persist while the subject starts to erode, the background is too uneven for colour keying.
- The edges look rough or have a halo
- Lower the tolerance slightly. Anti-aliased edges always blend subject and background, so some fringing is inherent to colour keying.
- The transparency disappeared when I downloaded
- You exported as JPG, which has no alpha channel. Choose PNG or WebP.
- It cannot remove my background at all
- If the background is complex (a room, a landscape, a patterned surface) colour keying is the wrong technique. That requires AI segmentation running on a server, which this site does not do.
Frequently asked questions
Can this remove any background automatically?
No. It is a colour-key tool, which needs a reasonably flat, evenly lit background. Removing a complex background requires AI segmentation running on a server, which is a different product.
How do I make a white background transparent?
Choose "Make a colour transparent", pick white with the colour picker, and raise the tolerance until the background clears. Export as PNG or WebP, because JPG cannot store transparency.
The edges look rough. What can I do?
Lower the tolerance slightly and re-check. Edge pixels are a blend of subject and background, so they fall partway inside the tolerance. The outer quarter of the tolerance band is feathered to soften this, but some fringing is unavoidable with any colour key. Images with a strong colour contrast between subject and background key far more cleanly.
How do I change a passport photo background to white?
Use "Replace a colour", pick the current wall colour, set white as the replacement and raise the tolerance until it is even. Check the official requirements, because many authorities specify an exact shade rather than pure white.
Why did part of my subject disappear?
The subject contains colours within the tolerance of the background. Reduce the tolerance, or shoot against a background colour that does not appear in the subject.
What tolerance should I start with?
Around 18% for a clean studio background, 30% for an uneven wall. Adjust while watching the preview. The right value depends entirely on how much your background and subject colours differ.
Further reading
Longer articles covering the decisions behind this tool.