Semi-transparent PNG to Opaque PNG Converter

Uploads a PNG and alpha-composites every pixel onto a solid background color, producing a fully opaque PNG (alpha 255 everywhere) while staying in the PNG format, unlike converting to JPEG. A free online tool from Staaarter, right in your browser.

Runs locallyUpdated 2026-07-26

Overview

Introduction

This tool removes transparency from a PNG by compositing it onto a solid background color, while keeping the output in PNG format for further lossless editing.

It's the same alpha-flattening step the JPG converter uses internally, offered here as a standalone PNG-to-PNG tool.

What Is Semi-transparent PNG to Opaque PNG Converter?

A client-side alpha-flattening tool that alpha-blends every pixel of an uploaded PNG against a chosen background color, proportional to each pixel's original transparency.

The result is a fully opaque PNG (every pixel's alpha forced to 255) with the same dimensions as the source.

How Semi-transparent PNG to Opaque PNG Converter Works

Each pixel's RGB channels are blended with the background color's RGB channels, weighted by that pixel's original alpha value (fully transparent pixels become pure background color; fully opaque pixels are untouched).

After blending, every pixel's alpha channel is set to 255, guaranteeing a fully opaque result regardless of the source's transparency pattern.

When To Use Semi-transparent PNG to Opaque PNG Converter

Use it when a workflow requires a fully opaque PNG but you still want to keep PNG's lossless compression, rather than converting to JPEG.

It's also useful for previewing exactly how a semi-transparent design will look once placed on a specific solid background.

Features

Advantages

  • Runs entirely client-side; your image is never uploaded to a server.
  • Stays in lossless PNG format, unlike the JPG converter which also introduces lossy compression.
  • Blends proportionally by alpha, so partially transparent edges look natural rather than getting a hard cutoff.

Limitations

  • Once flattened, the original transparency information is permanently lost from the output file.
  • The result only looks correct against the exact background color chosen — placing it on a different background afterward would show a visible edge.

Examples

Flatten onto white

Input

A logo PNG with a transparent background

Output

The same logo on a solid white background, fully opaque

The default white background is used when none is specified.

Flatten onto a brand color

Input

An icon PNG, background set to #1A1A2E

Output

The icon composited onto a dark navy background

Any custom RGB background color can be supplied instead of the white default.

Best Practices & Notes

Best Practices

  • Choose a background color that matches exactly where the flattened PNG will actually be displayed.
  • If you might need the transparency again later, keep a copy of the original PNG before flattening.

Developer Notes

The alpha-compositing math is a pure, single-pass loop over the pixel buffer, alpha-blending each channel proportionally and forcing the alpha channel to 255 at the end — the same underlying operation the JPG converter's flattening step performs, kept here as its own PNG-to-PNG tool.

Semi-transparent PNG to Opaque PNG Converter Use Cases

  • Preparing a transparent PNG for a platform or template that requires opaque images
  • Previewing a logo or icon against its intended background color before final export
  • Flattening layered design exports into a single solid-background PNG

Common Mistakes

  • Flattening onto the wrong background color and later needing to redo the export against the actual target background.
  • Forgetting the original transparency is gone for good in the output file — always keep the source PNG if you might need it again.

Tips

  • If you specifically need a smaller file and don't need to keep editing losslessly, consider the JPG converter instead for additional compression.
  • Use the transparency checker first to confirm your source image actually has meaningful transparency worth flattening.

References

Frequently Asked Questions