The simplest way to change background color depends on what tool you have
You can edit a picture's background color in most photo editing software by selecting the background area and then filling it with a new color. The method changes depending on whether you use a desktop program like Photoshop or GIMP, a browser-based tool like Pixlr or Canva, or a phone app. Each approach uses selection tools to isolate the background, then applies color to that selection.
The speed and quality of the result depend mostly on how distinct your background is from the main subject. A solid-color background takes seconds. A complex background with lots of detail takes longer because you need more precise selection work.
Key Takeaways
- Use the magic wand or fuzzy select tool to quickly select backgrounds that are a single solid color or very similar shades.
- For backgrounds with varied colors or textures, the lasso tool or free select tool lets you draw around the area you want to change.
- After selecting the background, fill it with a new color using the bucket fill tool or the fill option in your menu.
- Browser tools like Pixlr and Canva work without installation and are faster for simple background changes, while desktop programs like GIMP and Photoshop give you more control for complex edits.
Using the magic wand tool for solid-color backgrounds
The magic wand (also called fuzzy select or select by color) is the fastest method when your background is a single color or very close to it. Open your image in GIMP, Photoshop, or a similar program, then click the magic wand tool in the toolbox. Click once on the background color you want to change.
The tool will automatically select all connected pixels of that color. You'll see a moving dotted line (called marching ants) around the selected area. If the selection misses some spots because the background has slight color variation, hold Shift and click those spots to add them to the selection. If the selection grabbed part of your main subject by mistake, hold Alt (or Option on Mac) and click to subtract from the selection.
Once the background is fully selected, go to Edit > Fill with FG Color (or use the bucket fill tool) to change it to your chosen color. You can set your foreground color by clicking the color square in the toolbox before you fill.
Using the lasso tool for irregular or complex backgrounds
When your background has multiple colors, textures, or an irregular edge against your subject, the lasso tool (or free select tool) lets you draw around the area by hand. This takes longer than the magic wand but gives you precise control over what gets selected.
Click the lasso tool in your toolbox, then click and drag to draw around the background area. You can draw freehand, or click to place points and create straight lines between them. When you reach your starting point, release to complete the selection. The dotted line shows what you've selected.
If your first attempt isn't perfect, you can add to or subtract from the selection the same way as with the magic wand: hold Shift to add, hold Alt to remove. Once you're satisfied, fill the selection with your new color using Edit > Fill or the bucket fill tool.
Changing the color after you've selected the background
After your background is selected, you need to choose a new color and apply it. Click the foreground color square (usually in the left toolbox) to open the color picker. Choose your new color from the palette or type in a specific color code if you need an exact shade.
Then use one of two methods to fill: go to Edit > Fill with FG Color, or select the bucket fill tool and click inside your selection. The bucket fill tool is faster if you're making multiple color changes. Either way, the new color fills only the selected area.
If you want to undo and try a different color, press Ctrl+Z (or Cmd+Z on Mac) and pick a new color before filling again.
Using browser-based tools for quick background color changes
Pixlr and Canva are free online editors that work in any browser without installation. Both have selection and fill tools similar to desktop programs but with simpler interfaces. In Pixlr, open your image, click the magic wand tool, select your background, then use the bucket fill tool to change the color. In Canva, upload your image, use the selection tool to isolate the background, and choose a new color from the fill options.
These tools are faster for straightforward edits and work on any device with a web browser. They're less powerful than desktop programs for complex selections or fine detail work, but they're enough for solid-color backgrounds or simple edits. Both save your work to your account automatically, so you don't have to worry about losing changes.
Fixing selection mistakes and refining edges
If your selection includes part of your main subject or misses part of the background, you can fix it before filling. Most programs have a "Select > Grow" or "Select > Shrink" option that expands or contracts your selection by a few pixels. This helps when the edge is slightly off.
You can also use the eraser tool on your selection itself. In GIMP, go to Select > From Path or use the refine edge option to smooth out rough selections. In Photoshop, the Select and Mask workspace lets you paint to add or remove from your selection with more precision.
If you've already filled and the edge looks rough, you can use the clone tool or healing brush to blend the new background color with your subject's edge. This takes practice but creates a more natural result than a hard line.
Saving your edited image
After you've changed the background color, save your work. In GIMP and Photoshop, go to File > Export As to save as JPG or PNG. Use PNG if you want to preserve transparency (a transparent background instead of a solid color). Use JPG for smaller file sizes if you're sharing online.
In browser tools like Pixlr and Canva, click Download or Export to save the image to your computer. Both let you choose the file format and quality before saving. Always save a copy of your original image before editing, so you can go back if you need to start over.
Frequently Asked Questions
Can I change background color on my phone?
Yes. Apps like Snapseed, PicsArt, and Photoshop Express have selection and fill tools for phones. Open your image, use the selection or magic wand tool to select the background, then tap the fill or color option. Phone apps are simpler than desktop programs but work well for solid-color backgrounds.
What if the background color bleeds into my subject?
Use the eraser tool or the subtract-from-selection option to remove the color from your subject. If the edge is very rough, use the clone tool to paint over the mistake with the correct color. For future edits, use a more precise selection tool like the lasso instead of the magic wand.
How do I make the background transparent instead of a solid color?
Select the background the same way, then go to Edit > Clear instead of filling with a color. This removes the background entirely. Save as PNG to keep the transparency. If you save as JPG, the transparent area will become white or another solid color.
Why does the magic wand select too much or too little?
The magic wand has a tolerance setting that controls how similar colors need to be to get selected. Lower tolerance selects only very similar colors; higher tolerance selects a wider range. Adjust the tolerance slider before clicking, or use Shift and Alt to manually add or remove from your selection after the fact.
Is there a way to change background color without selecting it first?
Some programs have a "replace color" tool that lets you click a color in the image and change all instances of it throughout the picture without making a selection first. This is faster but less precise because it changes that color everywhere, not just in the background. Check your program's Tools menu for "Replace Color" or "Color Replace".