The fastest way depends on what program you're using
Changing a background color is one of the first things most people learn in design and photo editing. The steps are different depending on whether you're working in Photoshop, GIMP, Canva, or a web design tool — but the core idea is the same: you select the area you want to change, then fill it with a new color.
This guide covers the most common programs and walks you through each method step by step. You'll learn which tool to reach for depending on what you're trying to do, and what to do when the automatic selection doesn't work the way you expected.
Key Takeaways
- Most programs use either the Magic Wand (automatic selection) or the Bucket Fill tool to change backgrounds quickly.
- In Photoshop and GIMP, you select the background first, then fill it; in Canva, you often just click the background layer and change its color directly.
- If the automatic selection leaves rough edges or misses parts, use the Refine Edge or Feather option to smooth the transition.
- Web design tools like Figma and Adobe XD let you change background color without selecting anything — just click the background and pick a new color from the panel.
- Always work on a copy of your original image so you can go back if the change doesn't look right.
Changing the background in Photoshop
Open your image in Photoshop. Go to the toolbar on the left and find the Magic Wand tool (it looks like a wand with sparkles). Click it once to activate it. Then click anywhere on the background color you want to change. Photoshop will automatically select all the pixels that match that color.
Once the background is selected, you'll see marching ants (a dotted line) around the selected area. Now go to Edit in the menu bar, then choose Fill. A dialog box will open. Pick Foreground Color, Background Color, or Color depending on what you want. If you choose Color, a color picker will appear. Select your new color and click OK.
If the selection looks rough or missed some spots, undo the fill (Ctrl+Z or Cmd+Z) and try again. Before you fill, go to Select in the menu, then Modify, then Feather. Enter 2 to 5 pixels and click OK. This softens the edge of your selection so the new background blends better. Then fill again.
Changing the background in GIMP
GIMP is free and works similarly to Photoshop. Open your image, then go to the toolbox and select the Fuzzy Select tool (it looks like a magic wand). Click on the background you want to change. You'll see the marching ants selection appear around it.
Next, set your foreground color by clicking the foreground color square in the toolbox (usually black by default). A color picker will open. Choose your new color and click OK. Now go to Edit in the menu, then Fill with FG Color. The background will change instantly.
If you need to smooth the edges, go to Select, then Feather, and enter 2 to 5 pixels before you fill. This works the same way as Photoshop and gives you a cleaner result, especially if your original background had soft edges or hair.
Changing the background in Canva
Canva is designed for people who don't use Photoshop or GIMP regularly. Open your design and look at the left panel where your layers are listed. You should see a layer called Background. Click it once to select it.
Once the background layer is selected, look at the right panel. You'll see a color swatch or fill option. Click it and a color picker will appear. Choose your new color from the palette or enter a specific color code if you know it. The background changes immediately — no selection or filling required.
If you don't see a Background layer, you may have imported an image with a transparent background. In that case, create a new shape (rectangle) that covers the whole canvas, send it to the back (right-click and choose Send to back), and change its color instead.
Changing the background in Figma and Adobe XD
Both Figma and Adobe XD work the same way for background color. Open your file and click on the background or the artboard itself (the canvas area). In the right panel, look for Fill or Background. Click the color swatch next to it and pick your new color from the color picker.
If you have an image on the background and want to change only the area behind it, you'll need to create a rectangle shape first, fill it with your new color, and send it to the back. Click the rectangle, then right-click and choose Send to back or use the keyboard shortcut (usually Ctrl+[ or Cmd+[).
What to do when the selection doesn't work right
The Magic Wand tool works best on backgrounds that are a single solid color. If your background is a gradient, a photo, or has soft edges, the selection will look jagged or incomplete. Here are three fixes that work in most programs.
Use Feather or Refine Edge. Before you fill, go to Select, then Feather (or Refine Edge in Photoshop). Enter 3 to 10 pixels depending on how rough the edge is. This blurs the selection boundary so the new color blends smoothly instead of creating a hard line.
Use the Select by Color tool instead. This tool is more forgiving than Magic Wand. It's usually next to the Magic Wand in the toolbar. Click it, then click your background. You can adjust the tolerance (how similar colors have to be to get selected) in the tool options at the top of the screen. Higher tolerance = more pixels selected.
Manually paint over missed spots. After you fill, use the paintbrush or pencil tool to paint over any areas the fill missed. Set your brush color to match your new background color and paint carefully along the edges.
Changing backgrounds in web design tools
If you're building a website, you don't need to change image backgrounds at all. Instead, change the background color of the page or section itself. In most web builders (Wix, Squarespace, WordPress), click the section or page you want to change, then look for a Background or Fill option in the right panel. Click the color swatch and pick your new color.
If you're coding HTML and CSS directly, add this line to your CSS: background-color: #XXXXXX; where XXXXXX is your color code. You can find color codes at sites like colorhexa.com or use your browser's color picker tool.
Frequently Asked Questions
Why does my background selection include parts I don't want?
The Magic Wand selects all pixels that match the color you clicked. If your background has multiple shades (shadows, lighting changes, or a gradient), the tool will only select the exact shade you clicked. Use the Select by Color tool instead and increase the tolerance, or manually add to your selection by holding Shift and clicking the areas you missed.
Can I change the background color of a photo with people in it?
Yes, but it takes more care. The Magic Wand will select the background, but the edges around the person will look rough. Use Feather (3 to 10 pixels) before you fill to smooth the transition. For very detailed edges like hair, you may need to use a layer mask or manually paint over the rough spots after filling.
What's the difference between filling with foreground color and background color?
Foreground color is the main color you're currently using (usually shown as the top square in your toolbox). Background color is the secondary color (usually shown as the bottom square). You can click either square to change it. When you fill, you're just choosing which one to use. It doesn't matter which you pick — just set whichever one to the color you want first.
How do I change a background to transparent instead of a solid color?
In Photoshop and GIMP, make sure your image has an alpha channel (transparency support). In Photoshop, go to Layer, then Transparency, then Add Layer Mask. In GIMP, go to Layer, then Transparency, then Add Alpha Channel. Then select your background and press Delete instead of filling. The background will become transparent (shown as a checkerboard pattern).
Can I undo a background color change?
Yes. Press Ctrl+Z (Windows) or Cmd+Z (Mac) immediately after the change. Most programs let you undo the last 20 to 50 actions, so you can go back several steps if needed. If you've already saved and closed the file, you won't be able to undo. This is why it's important to always work on a copy of your original image.