ToolJutsu
All tools
Image Tools

Image Background Color Changer

Swap the background color behind transparent images.

Works best with transparent PNGs — the colour fills their transparent areas. On fully-opaque images (JPEG, BMP) the colour will be completely hidden beneath the image.
Processed on your device. We never see your files.

How to use Image Background Color Changer

What this tool does

The Image Background Color Changer fills the transparent areas of a PNG with a solid colour of your choice. It works by painting the selected colour as a full rectangle on a canvas, then drawing your image on top — wherever the image has transparent pixels, the colour beneath shows through. The result is a flat, opaque image with a clean coloured background. A set of preset swatches (white, black, grey shades, red, blue) makes common operations one click away, and a colour picker handles any custom colour. A before-and-after preview lets you verify the result before downloading.

Why you might need it

The most common use case is preparing a transparent-background product image for a marketplace that requires a white background. Amazon, Etsy, Google Shopping, and many other platforms mandate white or light backgrounds for their listing thumbnails. Rather than opening a full image editor, you can drop a transparent PNG here and get a white-background version in seconds.

Presentation designers frequently need the same image on different slide backgrounds — a logo on a white slide, then on a dark navy slide, then on a brand-colour slide. Instead of keeping multiple versions of the file, keep one transparent PNG and generate each variant as needed.

Social media thumbnails and profile pictures often require a specific background colour to match a brand identity. Marketing teams produce multiple colour-variant versions of a product icon or avatar using this workflow: one master transparent PNG, then one export per background colour needed.

Developers building icon sets, button graphics, or UI assets export them from design tools with transparent backgrounds and then apply platform-specific backgrounds (white for light mode, dark grey for dark mode) before bundling. This avoids hard-coding the background into the asset.

In document design, a logo with a transparent background can look odd when placed on a printed page if the PDF viewer shows a white rectangle beneath it. Adding an explicit white background before embedding resolves the rendering inconsistency.

How to use it

  1. Drop a transparent PNG (or any image) onto the dropzone or click to browse. A note at the top of the tool explains which formats benefit most.
  2. Click one of the preset colour swatches for the most common backgrounds, or use the custom colour picker for any hex colour.
  3. The before-and-after preview updates in real time. The “before” preview uses a checkerboard pattern to show transparency clearly.
  4. Click Download PNG to save the result. The filename is the original name with -bg appended.
  5. Click Clear to start over.

Format and quality notes

The output is always a lossless PNG. Even though the result is a fully-opaque image (no transparency left after the colour fill), PNG is chosen because it preserves pixel values exactly. This matters for logos and graphics with sharp edges or flat colours — JPEG compression would blur those edges and introduce colour banding. If your destination requires JPEG, download the PNG and run it through an image converter or compressor afterwards.

The canvas dimensions match the input exactly — no scaling or cropping. This means the output image pixel size is always the same as the input, which keeps any existing layout measurements correct.

Tips for best results

For e-commerce product photography, most platforms specify a pure white background (#ffffff) with the product occupying 80–85% of the frame. Use the white preset here to prepare images quickly, then verify the result looks clean before uploading.

For dark-mode assets, the black preset (#000000) or a dark grey around #1a1a2e or #374151 closely matches common dark-mode surface colours. Test your icon or logo against several shades to find which one reads best.

If the edges of your subject look ragged or show a halo of the original background colour after a previous background-removal step, that is an artifact of the removal tool, not this one. Re-process the original in the removal tool with a finer edge setting before bringing the transparent PNG here.

Pair this tool with the Image Opacity Adjuster if you need a semi-transparent image on a specific colour — adjust the opacity first, then use the Background Color Changer to flatten it onto any surface colour. For silhouette cutouts, the Image to Silhouette tool produces a shape from any photograph, which you can then colour with any fill colour using that tool’s built-in colour picker.

Frequently asked questions

Is my image uploaded to a server when I change its background?
No. The entire process happens inside your browser. Your image is read from local storage into browser memory, drawn onto an HTML canvas after a colour fill, and offered as a local PNG download. No data is sent over the network at any point — you can verify this in your browser's Network tab, which will show no image-related requests.
Why does this work best on transparent PNGs?
The tool fills a canvas with the chosen colour and then draws your image on top. If your image has transparent pixels, those areas let the colour show through. If your image is fully opaque (like a standard JPEG), the colour layer is completely hidden beneath the image and has no visible effect. PNGs with a transparent background are the intended input.
Can I use this to remove a white background from an image?
No — this tool adds a colour to transparent areas, it does not make colours transparent. To remove a background colour and convert it to transparency, use a dedicated background-removal tool. Once you have a transparent PNG, bring it here to apply any background colour you like.
Why does the output save as a PNG even when I upload a JPEG?
JPEG uses lossy compression and cannot store transparency. Since this tool outputs an image that may have transparent pixels from the original, PNG is the correct format — it preserves every pixel exactly and supports the full alpha channel. The output will always be a PNG regardless of the input format.
Can I add a gradient or pattern background instead of a solid colour?
This tool supports solid colours only. For gradient or patterned backgrounds, use a design tool such as Canva, Figma, or Photoshop after downloading the transparent PNG from this tool — paste it as a layer above any background you like.

Related tools