Open BGZone
Formats & quality

PNG Transparency Explained

How PNG stores transparency with an alpha channel, why soft edges need partial transparency, and how to keep it when sharing.

2 min read · Published

Transparency is what lets a cutout sit on any background. In a PNG file, it's stored in something called an alpha channel.

Pixels have four values

A normal colour image stores three values per pixel: red, green and blue. An image with transparency stores a fourth value, called alpha, that says how opaque the pixel is.

  • Alpha 255: fully solid. You see the pixel's colour.
  • Alpha 0: fully transparent. You see whatever is behind the image.
  • In between: partly transparent. The pixel's colour blends with the background.

Why partial transparency matters

Real edges aren't perfectly sharp. Hair, fur, motion blur and soft shadows have pixels that are part subject, part background. Partial transparency lets these edges blend naturally into any new background, instead of having a hard, jagged outline.

How transparency looks

Most editors show transparent areas as a grey and white checkerboard. The checkerboard isn't part of the image; it's just a way of showing "nothing is here". See what the checkerboard means.

Keeping transparency

Transparency is easily lost:

When transparency shows as black

Some viewers display transparent areas as black. The transparency is still there; the viewer just isn't showing it. See why a transparent PNG shows a black background.

File size

PNG files with transparency can be large for photos. Trimming empty space helps, and WebP offers transparency with smaller files. See trimming empty space and what is WebP?

Other formats with transparency

WebP, AVIF, GIF (only on/off, no soft edges) and some professional formats like TIFF and PSD also support transparency. See transparent background explained.