The fastest way: use the bucket fill tool

Open your image in Photoshop. If your background is a single solid color or a straightforward shape separated from the rest of the image, the bucket fill tool is the quickest path. Select the bucket fill tool from the toolbar on the left — it looks like a paint bucket tipping over. Then click on the background color you want to change, and it will fill that entire connected area with your new color.

Before you click, make sure your foreground color (the top square in the color selector) is set to the color you want. You can change this by clicking that square and choosing from the color picker that opens. The bucket fill tool respects edges, so it only fills areas that are connected and similar in color to where you clicked.

Key Takeaways

  • The bucket fill tool works when ready on solid backgrounds or straightforward shapes, but only if the background is clearly separated from the rest of the image.
  • The select by color tool lets you choose the background first, then fill it, which gives you more control over what gets filled.
  • For backgrounds with soft edges, feathering, or complex shapes, use the quick selection tool or the magic wand to select first, then fill.
  • Always work on a duplicate layer so you can undo without losing your original image.

When the bucket fill tool doesn't work cleanly: select first, then fill

If your background has irregular edges, semi-transparent areas, or colors that blend into the subject, clicking with the bucket fill tool will leave gaps or color the parts you want to keep. Instead, select the background first, then fill the selection with color.

Use the select by color tool — it looks like a hand pointing at colors in the toolbar. Click on the background color, and Photoshop will select all connected pixels of that color. If the selection misses some areas, hold Shift and click again on the missed spots to add them to the selection. Once the background is selected, go to Edit menu, choose Fill, and pick your new color from the dialog that opens.

If the background color varies slightly across the image, increase the tolerance setting in the tool options before you click. Tolerance controls how similar colors need to be to get selected — higher tolerance catches more variation, but may also select parts of your subject if they are close in color.

For complex backgrounds: use the quick selection or magic wand

When the background is not a single color — for example, a gradient, a photo, or a textured surface — the select by color tool will not work well. Instead, use the quick selection tool, which lets you paint over the area you want to select. Click and drag across the background, and Photoshop will expand the selection to match the edges it finds.

If the quick selection grabs part of your subject by mistake, hold Alt and paint over that area to remove it from the selection. Once your background is selected, fill it the same way: Edit menu, Fill, choose your color. The magic wand tool works similarly but selects based on a single click and a tolerance setting, so use it if you prefer clicking to painting.

For backgrounds with very soft or blurry edges, add feathering to your selection before you fill. With your selection active, go to Select menu, choose Modify, then Feather. A feather radius of 2 to 5 pixels will create a smooth transition between your new background and the subject, rather than a hard line.

Changing the background layer itself instead of filling

If you want to replace the background with a solid color and keep the option to change it later, create a new layer below your image layer and fill that layer instead of the background itself. Go to Layer menu, choose New, then Layer. In the dialog, click OK. Then drag this new layer below your image layer in the Layers panel on the right.

Select your new layer, then use the bucket fill tool or the fill command to add your color. This way, your original image stays untouched on its own layer, and you can change the background color, hide it, or replace it with a photo without affecting the original. You can also adjust the opacity of the background layer to make it semi-transparent if you want the effect to be subtle.

Removing a background completely before adding a new color

If your image has a white or solid-color background that you want to remove entirely — so you can see through to a layer below, or export the image with transparency — use the eraser tool or the select and delete method. The select by color tool is fastest: click on the background, then press Delete. This removes the background pixels entirely, leaving transparency in their place.

For this to work, your layer must support transparency. If you are working on a Background layer (shown in the Layers panel), right-click it and choose Convert to Layer first. Once the background is transparent, you can add a new solid-color layer below, a photo, or leave it transparent when you export as PNG.

Fixing edges that look rough or unnatural

When you fill a background, the edge between the new color and your subject sometimes looks jagged or shows a thin line of the old background color. This happens because the selection did not capture every pixel perfectly. To smooth it out, go to Select menu, choose Modify, then Contract. Shrink the selection by 1 to 2 pixels, then fill again. This removes the thin edge line.

If the edge still looks hard or unnatural, undo the fill, go back to Select menu, choose Modify, then Feather with a radius of 1 to 3 pixels. Then fill again. Feathering blurs the edge of the selection slightly, so the transition between colors is softer and looks less like a cut-and-paste job.

Working non-destructively with adjustment layers

Instead of permanently filling the background, you can use a solid color adjustment layer, which lets you change the color or turn it off at any time. Go to Layer menu, choose New Adjustment Layer, then Solid Color. Pick your color from the picker that opens. Photoshop will fill the entire image with that color, but you can use the layer mask to hide the color everywhere except the background.

With the adjustment layer selected, click the layer mask (the white rectangle next to the layer thumbnail in the Layers panel). Select the paintbrush tool, set your foreground color to black, and paint over your subject to hide the colored background from that area. Paint with white to reveal the color again. This method takes more steps but gives you complete control and lets you experiment without commitment.

Frequently Asked Questions

Why does the bucket fill tool leave white spots when I click?

The bucket fill tool only fills connected pixels of similar color. If your background has slight color variation or anti-aliasing around the edges, some pixels will not match the tolerance setting and will not fill. Lower the tolerance to be more selective, or use the select by color tool instead and manually add missed areas to the selection before filling.

Can I change the background color without affecting the subject?

Yes, as long as the background is clearly separated from the subject in color or tone. Use the select by color tool or quick selection tool to select only the background, then fill. If the subject and background are similar in color, you will need to select the subject first, then invert the selection (Select menu, Inverse) to select only the background.

What is the difference between the magic wand and the quick selection tool?

The magic wand selects based on a single click and a tolerance setting — it is faster for straightforward, uniform backgrounds. The quick selection tool lets you paint over the area you want, and it expands the selection as you drag — it is better for irregular or complex backgrounds because you have more control.

How do I make the new background color look natural and not like a cutout?

Use feathering on your selection before you fill — go to Select menu, Modify, Feather, and use a radius of 2 to 5 pixels depending on how soft you want the edge. You can also contract the selection by 1 to 2 pixels before filling to remove any thin line of the old background that might still be visible.

Can I add a photo as a background instead of a solid color?

Yes. Select the background the same way, then instead of using the Fill command, paste a photo into the selection (Edit menu, Paste Into). Or create a new layer below your image, place your photo there, and resize it to fit. Both methods let you replace the solid background with an image.