The fastest way depends on what you have installed

You can change a picture's background color in most photo editing programs by selecting the background area and filling it with a new color. The exact steps depend on whether you use Photoshop, GIMP (free), or an online tool like Pixlr or Canva. All three methods work the same way in principle: isolate the background, then paint over it or swap it for a solid color.

If you do not have any photo editing software yet, start with GIMP or an online editor — both are free and do not require installation. Photoshop is the industry standard but costs money monthly. For quick, simple background changes, Canva is often the fastest because it handles the selection automatically.

Key Takeaways

  • The selection tool (magic wand or fuzzy select) isolates the background so you can change only that part without affecting the main subject.
  • GIMP is free, works on Windows and Mac, and uses the same selection and fill workflow as paid programs.
  • Canva and Pixlr let you change backgrounds in a browser without downloading anything, though they work best on simpler images.
  • After selecting the background, you fill it with a solid color using the bucket fill tool or the fill option in your program's menu.
  • If the selection includes part of your subject by mistake, use the eraser or selection adjustment tools to fix it before filling.

How to change the background in GIMP (Windows or Mac)

GIMP is free and works the same way on both Windows and Mac. Download it from gimp.org, install it, and open your picture. The selection tools are in the toolbox on the left side of the screen.

Click the Fuzzy Select Tool (it looks like a magic wand). This tool selects areas of similar color — exactly what you need for a background. Click once on the background of your picture. GIMP will highlight the background area with a moving dotted line. If the selection misses part of the background or grabs part of your subject, hold Shift and click to add to the selection, or hold Ctrl and click to subtract from it.

Once the background is selected correctly, go to Edit in the menu bar and click Fill with FG Color (foreground color). Before you do this, make sure your foreground color is set to the color you want. You can see the foreground color as a square in the toolbox — click it to open the color picker and choose your new background color. After filling, go to Select and click None to remove the selection outline and see the result.

How to change the background in Photoshop

Photoshop's selection tools are more powerful than GIMP's, but the workflow is identical. Open your image and use the Quick Selection Tool or Magic Wand (both are in the toolbox on the left). Click the background to select it. If the selection is not perfect, use the selection refinement options at the top of the screen to adjust the edges.

Once the background is selected, click the foreground color square in the toolbox to choose your new background color. Then go to Edit and click Fill. A dialog will open — make sure Foreground Color is selected and click OK. The background will fill instantly. Press Ctrl+D (or Cmd+D on Mac) to deselect and see the final result.

How to change the background online with Canva or Pixlr

If you do not want to install software, Canva and Pixlr both work in your web browser. Go to canva.com or pixlr.com, upload your picture, and look for the background removal or background color tool. Canva calls it Background Remover and will automatically detect your subject and separate it from the background — you then choose a new background color from the options provided. This is the fastest method for simple images with clear subjects.

Pixlr's approach is more manual. Use the Select by Color tool to click the background, then use the bucket fill tool to change the color. The steps are the same as GIMP, but everything happens in your browser so there is nothing to download. Both tools save your edited picture directly — Canva saves to your account, and Pixlr lets you download it as a file.

What to do if the selection grabbed part of your subject

This happens most often with hair, fur, or edges that blend into the background. After you make your selection, do not fill yet. Instead, use the eraser tool or the selection adjustment tools to clean up the selection first. In GIMP, hold Ctrl and click on the area you want to remove from the selection. In Photoshop, use the Refine Edge option to smooth and adjust the selection boundary.

If you filled by mistake and the color went over part of your subject, undo the fill immediately by pressing Ctrl+Z (or Cmd+Z on Mac). Then fix the selection and try again. It is much faster to undo and redo than to manually erase the mistake afterward.

Choosing a background color that works

Solid colors work best when the background is simple and the edges of your subject are clean. If your image has soft edges, shadows, or fine details like hair, a solid color may look harsh or unnatural. In those cases, consider a gradient (a color that fades from one shade to another) or a blurred version of the original background instead.

Test your color choice before you commit. Most programs let you preview the fill before you apply it. If the color looks too bright or too dark next to your subject, adjust it in the color picker and try again. White and light gray backgrounds work for almost any image, while darker colors work best when your subject is also dark.

Saving your edited picture

After you change the background, save your work. In GIMP, go to File and click Export As to save as JPG or PNG. In Photoshop, go to File and click Export As or Save As. Online tools like Canva and Pixlr have a download button — click it and choose your file format. JPG is smaller and works everywhere, but PNG preserves quality better if you plan to edit the image again later.

Do not overwrite your original picture. Save the edited version with a new name so you always have the original to go back to if you need it.

Frequently Asked Questions

Can I change the background to a photo instead of a solid color?

Yes, but it requires an extra step. After selecting the background, instead of filling with a solid color, you can paste a different image into that selection. In GIMP, go to Edit and click Paste as to bring in a new background image. In Photoshop, use File and Place to insert a background photo. Canva does this automatically — it offers background image options alongside solid colors.

What if my background is not a solid color?

The magic wand or fuzzy select tool works best on solid or nearly solid backgrounds. If your background is textured or has many colors, the selection will be harder to control. Try the Select by Color Range tool (in Photoshop) or adjust the tool's threshold setting (in GIMP) to capture more of the background at once. For very complex backgrounds, you may need to manually paint the selection or use a more advanced tool like the pen tool.

Why does my background color look different after I save it?

JPG compression can shift colors slightly, especially if you save at a low quality setting. Save as PNG instead to preserve the exact color, or increase the JPG quality slider to 85 or higher. If you are saving for the web, test the image in your browser after saving — colors sometimes look different on screen than they do in the editor.

Can I undo a background color change after I save the file?

No, once you save and close the file, the undo history is gone. Always save your edited version with a new filename and keep the original picture. If you need to change the background again later, open the original, not the edited version.

Is there a tool that automatically removes the background without me selecting it?

Canva's Background Remover does this automatically for simple images. Remove.bg is another online tool designed specifically for this — you upload a picture and it removes the background in seconds, then you can add a new solid color or image. These tools work best on photos with clear subjects and simple backgrounds, but they save time if your image fits that description.