About this tool
Fill transparent areas of a PNG or WebP image with white or any color to produce an opaque image. Useful when a platform does not support transparent logos or cut-outs.
Typical uses
- Put a transparent logo on white for a document
- Give a cut-out a brand-colored background
- Fix transparent images that show a black background in some apps
How to use
Choose a PNG or WebP with transparent areas and set a background color.
Process and download the PNG with the background filled.
Only transparent areas are filled. An opaque background is not automatically removed.
The three steps each image goes through
When you press “Process images”, every image is handled the same way: a canvas the size of the original is filled completely with the colour chosen in “Background or border color” (default #ffffff), the original is drawn on top at its own size, and the result is exported as PNG. There is no background detection, padding or scaling, so:
- The output has exactly the original width and height, and no pixel is transparent any more. The colour picker only offers opaque #rrggbb colours; there is no semi-transparent background.
- Whatever the input (PNG, WebP or JPG), the output is PNG, saved losslessly without a quality setting. A JPG has no transparent pixels, so it comes out looking identical, just as a PNG file that is usually larger.
- A background that is already opaque, such as a white or busy backdrop in the original, is not replaced. Remove it first with the AI background remover to get a transparent PNG, then fill it here.
- The export is re-encoded from the canvas, so EXIF and other metadata are not carried over, and an animated WebP becomes a single still frame.
- Changing the colour clears existing results with “Settings changed. Process again to generate current results.”; process again to get the new colour.
What colour semi-transparent edges become
Outlines, shadows and glows in a transparent PNG are almost all semi-transparent pixels. The fill follows the W3C source-over rule: result = colour × opacity + background × (1 − opacity), rounded. Whatever colour a fully transparent pixel stores stays invisible. Every cell below comes from that formula and is reproduced with a real canvas in the tests:
| Pixel | Opacity | #ffffff | #000000 | #1e3a8a |
|---|---|---|---|---|
| Anti-aliased edge of black text RGB(0, 0, 0) | 64/255 (25%) | #bfbfbf | #000000 | #162b67 |
| Anti-aliased edge of black text RGB(0, 0, 0) | 128/255 (50%) | #7f7f7f | #000000 | #0f1d45 |
| Anti-aliased edge of black text RGB(0, 0, 0) | 192/255 (75%) | #3f3f3f | #000000 | #070e22 |
| Drop shadow RGB(0, 0, 0) | 77/255 (30%) | #b2b2b2 | #000000 | #152860 |
| White outer glow RGB(255, 255, 255) | 128/255 (50%) | #ffffff | #808080 | #8f9dc5 |
| Fully transparent pixel storing red RGB(255, 0, 0) | 0/255 (0%) | #ffffff | #000000 | #1e3a8a |
| Opaque brand red RGB(230, 57, 70) | 255/255 (100%) | #e63946 | #e63946 | #e63946 |
- The same image gets different edge colours on different backgrounds. The edge of black text is light grey on white and merges into black; a white glow turns into a #808080 grey rim on black and disappears on white.
- A cut-out that was originally separated from a white backdrop often keeps light colour in its semi-transparent edge pixels, which shows as a bright halo once you fill a dark background. That comes from the asset and cannot be removed by filling; cut it out again against a dark backdrop or shrink the edge in an image editor.
- To blend seamlessly into a web page, enter the page’s exact hex value rather than picking a white that looks close enough.
Batches, file names and downloads
“Images (multiple allowed)” takes up to 50 files and 100 MB in total, PNG, JPG or WebP only; each source may have at most 45 megapixels and 16,384 px per side. One colour is used for the whole batch. Output names add -background to the original name, always end in .png and are numbered when they collide:
| Source | Output |
|---|---|
| logo.png | logo-background.png |
| logo.webp | logo-background (2).png |
| logo.jpg | logo-background (3).png |
| banner.webp | banner-background.png |
- “Results” lists download buttons for the first 10 files, each with “old size → new size · width × height px · change in percent”. With more than 10 files it says “Use the ZIP button to download the remaining files.”; “Download all as ZIP” saves images.zip.
- All results together may not exceed 128 MB. If the next file would pass that, processing stops there and finished results are kept.
- When single files fail, the others are still produced and the status only gives a count, for example “Invalid files skipped: 1.”, without naming the file; compare the results list with your selection to find it. Only when every file fails does the message list “file name: reason” for each.
Every message and what to do
| Message | Cause and fix |
|---|---|
| Only PNG, JPG and WebP images are supported. | The selection includes a GIF, SVG, HEIC, BMP or other format. The whole selection is refused; choose again without those files. Convert HEIC to JPG or PNG first. |
| Use up to 50 images totaling at most 100 MB. | More than 50 files or more than 100 MB in total; the whole selection is refused. Split it into several batches. |
| Source images are limited to 45 MP and 16384 px per side. | This image has too many pixels and is skipped. Shrink it with the batch resizer first. |
| This image format cannot be opened by this browser. | The file is labelled PNG, JPG or WebP but its content is damaged or the browser cannot decode it. |
| Settings changed. Process again to generate current results. | The colour was changed after processing. Old results were cleared; process again. |
| Processing cancelled. | Cancel was pressed during processing. This tool does not keep partial results after a cancel; process again. |
Sources
Related guide
- Image formats explained: JPG, PNG, WebP, AVIF, HEIC — The differences between JPG, PNG, WebP, AVIF, HEIC, GIF and SVG, with measured file sizes for the same images in each format, transparency and re-saving tests, and which format to use for uploads, websites and iPhone photos.
Frequently asked questions
Can it remove an existing background?
No. It only fills areas that are already transparent and does not detect or remove opaque backgrounds.
Which formats are supported?
PNG and WebP with an alpha channel; the output is PNG.
What about semi-transparent edges?
Semi-transparent pixels are blended with the chosen color for smooth edges.
Suggest an improvement to this tool
Missing an option, something awkward to use, or a wrong result? Let us know.