Add Background to PNG

Place a transparent PNG or WebP on a white, black or custom solid background before exporting it for forms, stores, documents or social media.

White or custom backgroundPNG and WebP inputJPG, PNG or WebP outputLocal preview

PNG background tool

Result preview
Choose an image or enter dimensions to see results.
Choose an image or enter dimensions to see results.

How it works

  1. 1Choose a transparent PNG or WebP image.
  2. 2Pick white, black or a custom HEX background color.
  3. 3Preview the flattened result and download JPG, PNG or WebP.

Privacy and limits

  • This tool adds a solid color behind transparent pixels; it does not remove or replace photo backgrounds.
  • JPG output cannot keep transparency.
  • Processing stays on your device.

Background fill notes

The tool draws a solid color behind a transparent PNG or WebP and exports the combined image.

It is for white, black or custom color backing; it does not detect or replace a photographic background.

Common use cases

  • Create a white-background copy for a form
  • Flatten a transparent product image before JPG export
  • Preview a logo on a dark or light background

Output notes

  • JPG output always removes transparency.
  • PNG and WebP output can still be used after the solid background is drawn.
  • Use the transparency checker first if you are not sure the file has alpha pixels.

Original test sample

  • Upload a transparent PNG and set the background to white, then download a JPG.
  • Try a custom HEX color and confirm transparent areas show the selected color in the preview.

Frequently asked questions

Are my images uploaded?

No. ImgShrink processes selected images in your browser and does not upload them to a server.

Can this tool guarantee an exact file size?

No. Target compression gets close when possible, but the final bytes depend on image detail, dimensions, format and browser encoding.

Why is an output format unavailable or different?

The browser controls image decoding and export support. Some browsers may not export AVIF or may flatten unsupported transparency.

Source and compatibility notes

This tool works in the browser, so output support depends on what your browser can read and export.

Last checked: 2026-09-07

Notes
  • No server-side image processing is used.
  • Output format support depends on the browser.
  • Animated images and metadata are not treated as guaranteed preserved data.

Related background and conversion tools

All tools

PNG Transparency Checker

Check whether a PNG or WebP image contains transparent or semi-transparent pixels. See alpha coverage and transparent edges locally.

Convert PNG to JPG

Convert PNG images to JPG in your browser. Flatten transparency to white and download a compatible JPG file.

Image Converter Online

Convert images between JPG, PNG, WebP and AVIF in your browser. Private local conversion with no uploads.

Social Media Image Resizer

Resize images for social media previews, posts and profile graphics in your browser with practical presets.