← Back to homeHome› Reference › Alpha and premultiplied alpha

Alpha and premultiplied alpha

Transparency channels, and why edges turn white, black or grey.

Transparency channels, and why edges turn white, black or grey.

Alpha is the transparency channel. Straight alpha stores (R,G,B,A); premultiplied alpha stores (R×A, G×A, B×A, A). Browsers composite with premultiplied values internally. If scaling or blurring multiplies twice, semi-transparent edges pick up halos.

You see it when a transparent PNG looks grey after shrinking, an icon on a dark background gains a white outline, or a transparent image converted to JPEG gets a black fringe. JPEG has no alpha, so something must fill the empty area.

Our editing tools export PNG with transparency intact. Choose a background colour before converting to JPEG. The icon tool writes a transparent ICO; the rounded-corner tool writes transparent corners.

Common misconception: transparency “automatically becomes white” in JPEG. It depends on the encoder and is often black.

Tools on this site

ICO & Favicon · Rounded Corners · Border & Padding

Keep reading

Clean transparent edges · Transparency accident report

Related terms

DPI and PPI · EXIF and GPS · ICC profiles · Bit depth

← Back to the glossary