How to Change an Image's Background Color (and Fix the Edges)

To change the background colour of a photo, open the Change Image Background Color tool, add your image, press Remove background, then pick a swatch, type a hex code or choose a gradient, and download a PNG or JPG. The cut-out takes a few seconds; getting clean edges is where the remaining care goes, and the second half of this guide covers exactly that.

The result keeps your photo's original pixel dimensions, so a 3000 × 2000 px photo comes back as a 3000 × 2000 px image on its new backdrop. If you are still deciding which colour to use for a profile picture, product shot or brand graphic, the guide to choosing a background colour covers that side. This page is about doing it and making it look clean.

What Makes a Photo Easy to Recolour

Any JPG, PNG or WebP works, but three things decide how clean the result looks:

How to Change the Background Color in 6 Steps

Step 1Add your photo

Open the Change Image Background Color tool and drop a photo onto the upload area, or click to browse. The photo appears in the Before pane and the settings panel opens.

Step 2Remove the background

Press Remove background. On first use the tool downloads a segmentation model of about 40 MB, which your browser caches for next time. The model then separates the subject from everything behind it on your own device; the photo itself is never uploaded. When it finishes, the status line reads "Subject isolated successfully!" and the After pane shows the subject on white.

Step 3Choose a solid colour or hex code

The Solid Color tab has eleven swatches (Pure White, Light Grey, Pure Black, Slate Navy, Passport Blue, Sky Blue, Crimson Red, Emerald Green, Warm Cream, Soft Rose and Lavender) plus a Transparent swatch. For an exact brand colour, use Pick your own backdrop colour: click the colour well for a visual picker, or type a six-digit hex code such as #F5F0E6 into the box next to it and press Enter. The preview updates immediately.

Step 4Or choose a gradient

Switch to the Gradient tab for six studio backdrops: Purple Dusk, Sunset Pastel, Aurora, Studio Spotlight, Soft Steel and Warm Peach. Five run diagonally from the top-left corner to the bottom-right; Studio Spotlight is a radial fade from dark grey in the centre to black at the edges, which suits portraits and products that you want to look lit from the front.

Step 5Resize or move the subject

The Subject Position tab has three sliders. How much of the frame the subject fills runs from 50% to 150%: below 100% the subject shrinks and more backdrop shows around it, which is handy for adding breathing room; above 100% it enlarges and crops. The other two sliders move it up, down, left or right, and the readout shows the shift in real pixels of your image.

Step 6Download PNG or JPG

Download PNG saves a lossless file and keeps transparency if you chose the Transparent swatch. Download JPG saves a smaller file at quality 0.95; because JPG has no transparency, any see-through areas are filled with white first, so you never get a black background by accident.

Change your photo's background

Open Background Color Changer

How to Fix Bad Edges After Changing the Background

Most edge problems come from one fact: pixels along the outline are partly transparent, and they still contain a little of the original background colour. On a backdrop similar to the original you never notice. On a very different one, such as a person shot against a white wall placed on navy, a faint light outline appears. Here is how to deal with each case.

What you seeWhy it happensFix
Light or dark halo around the whole subjectEdge pixels carry the old background colourPick a backdrop closer in brightness to the original, or clean the edge manually (below)
Hair looks tinted or fringedFine strands are semi-transparent mixes of hair and old backgroundUse a mid-tone colour or a soft gradient rather than a strong contrast
Patches of old background left in gaps (between arm and body, inside a handle)The model treated the enclosed area as part of the subjectRemove them with the Magic Wand in the Manual Background Remover
Part of the subject missing (a held object, a chair leg)The model decided it was backgroundCut the photo out manually instead, using Magic Wand plus Restore Brush
Straight hard edge where the subject meets the frameThe subject was cropped in the original photoKeep the subject at 100% or larger so the cut edge stays at the frame edge

Clean the edge by hand, then reload

For halos and leftover patches, take the cut-out into the Manual Background Remover:

  1. In the colour tool, pick the Transparent swatch and click Download PNG.
  2. Load that PNG into the Manual Background Remover. Use Magic Wand with Only the patch I click ticked to delete leftover patches, and the Eraser Brush at a small size to trim a fringe along the edge. Undo is there if you take too much.
  3. Click Download Transparent PNG.
  4. Load the cleaned PNG back into the colour tool and do not press Remove background. The tool draws your transparent PNG straight onto whichever colour or gradient you pick.

When the model removes too much

If the cut-out loses part of the subject, start from the original photo in the Manual Background Remover instead. On a plain background, a few Magic Wand clicks at a tolerance around the default of 25 remove most of it; the Restore Brush paints back anything the wand took by mistake. Download the transparent PNG and finish in the colour tool as in step 4 above.

Tips for a Cleaner Result

Frequently Asked Questions

Can I type an exact hex colour for the background?

Yes. Type a six-digit hex code such as #F5F0E6 into the box next to the colour picker and press Enter or click away. Three-digit shorthand like #FFF is not accepted, so write it out in full.

Why is there a thin outline of the old background around my subject?

Edge pixels are partly transparent and still carry some of the old background colour. Choose a backdrop closer in brightness to the original, or clean the edge in the Manual Background Remover and reload the cleaned PNG.

Why did my JPG come out with a white background when I chose Transparent?

JPG cannot store transparency, so the tool fills transparent areas with white before saving. Use Download PNG to keep the transparent background.

Does changing the background reduce the image size or quality?

No resizing happens. The result has the same pixel dimensions as your original. PNG is lossless; JPG is saved at high quality (0.95).

Is my photo uploaded to a server?

No. Only the model files are downloaded to your browser. The photo is cut out and recoloured inside the tab.

← All How-To Guides