Alpha Channel Remover - Remove Transparency from PNG Images
Remove alpha channel from PNG images instantly. Flatten transparency onto any background color or force full opacity. Free, client-side, no uploads.
About
PNG images store transparency in a fourth color channel - the alpha channel, where each pixel holds an opacity value from 0 (fully transparent) to 255 (fully opaque). Removing it incorrectly produces black artifacts where transparent pixels once existed, because most naive tools simply discard alpha without compositing against a background. This tool applies the standard alpha blending equation: Cout = Csrc ⋅ α + Cbg ⋅ (1 − α), pixel by pixel across the entire image. All processing happens in your browser. No image data leaves your device.
The tool handles edge cases that spreadsheet-level approaches miss: premultiplied alpha artifacts, semi-transparent gradients, and anti-aliased edges. Output is available in PNG (lossless) or JPEG (lossy, configurable quality). Note: JPEG inherently has no alpha channel, so conversion to JPEG is itself a form of alpha removal - but without proper compositing the result contains black halos around formerly transparent edges. This tool prevents that.
Formulas
The alpha compositing operation uses the "over" operator from the Porter-Duff model. For each color channel of each pixel:
Where Csrc = source pixel channel value (R, G, or B), α = source alpha value (0 - 255), Cbg = background color channel value. The output alpha is forced to 255 (fully opaque). When α = 0, the pixel becomes pure background color. When α = 255, the pixel is unchanged. Intermediate values produce the smooth blended result that preserves anti-aliased edges.
For JPEG output, quality factor Q maps to the encoder's quantization table scaling. Higher Q values (0.85 - 0.95) preserve detail at larger file sizes. The relationship between Q and file size is non-linear - a quality of 0.80 typically produces files 40 - 60% smaller than 0.95.
Reference Data
| Image Format | Supports Alpha | Channels | Typical Use Case | Max Colors | Compression |
|---|---|---|---|---|---|
| PNG-24 | Yes (8-bit) | RGBA | Web graphics, logos | 16.7M | Lossless (DEFLATE) |
| PNG-8 | Yes (1-bit) | Indexed + Alpha | Simple icons | 256 | Lossless |
| JPEG | No | YCbCr (3) | Photos | 16.7M | Lossy (DCT) |
| WebP (Lossy) | Yes (8-bit) | YUV + A | Web optimization | 16.7M | Lossy (VP8) |
| WebP (Lossless) | Yes (8-bit) | RGBA | Web optimization | 16.7M | Lossless |
| GIF | Yes (1-bit) | Indexed | Animations | 256 | Lossless (LZW) |
| BMP | Optional (8-bit) | RGBA or RGB | Legacy systems | 16.7M | None |
| TIFF | Yes (8/16-bit) | RGBA | Print, archival | 16.7M+ | Various |
| SVG | Yes (via opacity) | Vector | Scalable graphics | Unlimited | None (XML) |
| ICO | Yes (8-bit) | RGBA | Favicons | 16.7M | None/PNG |
| AVIF | Yes (8/10-bit) | RGBA | Next-gen web | 16.7M+ | Lossy/Lossless (AV1) |
| HEIF | Yes (8-bit) | RGBA | Apple ecosystem | 16.7M | Lossy (HEVC) |