User Rating 0.0
Total Usage 0 times
Drop image here or click to browse PNG, JPEG, WebP, BMP, GIF — Max 50 MB
Is this tool helpful?

Your feedback helps us improve.

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.

alpha channel remove transparency png to opaque flatten alpha image editor remove background transparency

Formulas

The alpha compositing operation uses the "over" operator from the Porter-Duff model. For each color channel of each pixel:

Cout = Csrc × α255 + Cbg × (1 α255)

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 FormatSupports AlphaChannelsTypical Use CaseMax ColorsCompression
PNG-24Yes (8-bit)RGBAWeb graphics, logos16.7MLossless (DEFLATE)
PNG-8Yes (1-bit)Indexed + AlphaSimple icons256Lossless
JPEGNoYCbCr (3)Photos16.7MLossy (DCT)
WebP (Lossy)Yes (8-bit)YUV + AWeb optimization16.7MLossy (VP8)
WebP (Lossless)Yes (8-bit)RGBAWeb optimization16.7MLossless
GIFYes (1-bit)IndexedAnimations256Lossless (LZW)
BMPOptional (8-bit)RGBA or RGBLegacy systems16.7MNone
TIFFYes (8/16-bit)RGBAPrint, archival16.7M+Various
SVGYes (via opacity)VectorScalable graphicsUnlimitedNone (XML)
ICOYes (8-bit)RGBAFavicons16.7MNone/PNG
AVIFYes (8/10-bit)RGBANext-gen web16.7M+Lossy/Lossless (AV1)
HEIFYes (8-bit)RGBAApple ecosystem16.7MLossy (HEVC)

Frequently Asked Questions

When alpha is discarded without compositing, transparent pixels retain their underlying RGB values - which are often (0, 0, 0) i.e. black. The alpha channel was masking those black pixels. Proper removal requires blending against a background color using the Porter-Duff "over" operator, which replaces masked areas with your chosen color instead of revealing the hidden black.
PNG output is lossless - the flattened image is pixel-perfect relative to the composited result. JPEG output introduces DCT compression artifacts, especially visible around sharp edges that were formerly anti-aliased against transparency. For logos and text, use PNG. For photographs with minor transparent regions, JPEG at quality 0.90 or above is acceptable.
Semi-transparent pixels (alpha between 1 and 254) are blended proportionally with the background color. A pixel with α = 128 on a white background gets 50% of its original color plus 50% white. This preserves smooth edge transitions instead of creating jagged stair-step artifacts that occur with binary alpha thresholding.
Browser canvas elements typically support up to 16384 × 16384 pixels, though the practical limit depends on available RAM. A 16384 × 16384 RGBA image requires approximately 1 GB of memory for its pixel buffer alone. The tool enforces a 16384px dimension limit and warns when images exceed 4096 × 4096 (approximately 67 MB buffer) to prevent browser tab crashes.
Yes. The operation is idempotent. If all pixels already have α = 255, the blending formula reduces to C_out = C_src × 1 + C_bg × 0 = C_src. The image passes through unchanged. This is useful when you need to guarantee a file has no alpha channel metadata - for instance, some print workflows reject PNGs that contain an alpha channel even if all pixels are opaque.
JPEG quality controls the quantization step applied to DCT coefficients. The relationship is non-linear: between quality 0.90 and 1.0, file size increases steeply because fewer coefficients are zeroed out. Between 0.50 and 0.70, size decreases are more gradual. The steepest size savings occur dropping from 0.95 to 0.85 - typically a 30-50% reduction with minimal perceptual loss.