Alpha channel: definition and examples
An alpha channel is an extra per-pixel value, stored alongside red, green and blue, that records how opaque each pixel is, from fully transparent to fully opaque.
By Rocco Bombardieri · Updated
Want the full walkthrough? Read: What is an alpha channel? (guide) →
Explained in more detail
An image normally stores each pixel as three numbers: red, green and blue. An alpha channel adds a fourth number per pixel that describes opacity. In an 8-bit image the alpha value runs from 0 (fully transparent) to 255 (fully opaque), which gives 256 levels. A value in between means the pixel is partly see-through, so whatever sits behind the image shows through by that proportion.
The channel is what makes a logo with a soft drop shadow or a cut-out product photo possible. Without alpha, every pixel is opaque and a cut-out has to be saved on a solid background color instead. PNG, WebP, AVIF and GIF can carry transparency. JPEG cannot, which is why converting a transparent PNG to JPEG forces the transparent area to become a solid color, such as white or black depending on the tool.
GIF is the exception among the formats that support transparency: it only has a single "transparent" palette entry, not a full alpha channel, so edges are either fully visible or fully hidden.
Alpha matters for trimming too. A tool that crops transparent borders has to read the alpha value of every pixel to decide where the visible content begins and ends. Triim's trim tool, for example, treats a pixel as content when its alpha is above 10 out of 255, so nearly invisible pixels don't hold a border in place.
A short example: a pixel of (255, 0, 0, 128) is pure red at about 50% opacity. Over a white page it looks pink, over a black page it looks dark red.