Concept
Image Transparency Explained: Alpha Channels and Which Formats Support Them
Transparency in images is controlled by the alpha channel — an extra data channel that defines how opaque or transparent each pixel is, enabling smooth cutouts, shadows, and overlays.
What is image transparency?
In digital imaging, transparency refers to pixels that are fully or partially see-through — they allow whatever is behind the image (a background color, another image, or a web page background) to show through. This is essential for logos on colored backgrounds, product cutouts, icons, and UI graphics.
Not all image formats support transparency. Formats that do support it store transparency data in an additional channel called the alpha channel.
The alpha channel
In a standard color image, each pixel is defined by three values: Red, Green, and Blue (RGB). An image with an alpha channel adds a fourth value: Alpha (A), giving RGBA.
The alpha value defines how opaque the pixel is:
- Alpha = 255 (or 1.0): Fully opaque — the pixel is completely solid, nothing shows through.
- Alpha = 0: Fully transparent — the pixel is completely invisible, the background shows through entirely.
- Alpha = 128 (or 0.5): 50% opaque — the pixel is half-transparent, blending equally with the background.
Having 256 levels of transparency (8-bit alpha) allows smooth, anti-aliased edges. A circle on a transparent background will have fully transparent pixels outside the circle, fully opaque inside, and semi-transparent pixels along the edge that blend smoothly with any background color. This is essential for natural-looking compositing.
Format support for transparency
| Format | Transparency support | Alpha type | Notes |
|---|---|---|---|
| PNG | Yes | 8-bit (full alpha) | Industry standard for transparent images |
| WebP | Yes | 8-bit (full alpha) | Lossy and lossless modes; smaller than PNG |
| AVIF | Yes | 8-bit (full alpha) | Best compression, less universal support |
| GIF | Yes (limited) | 1-bit (on/off only) | One color in palette is transparent; no semi-transparency |
| SVG | Yes | Vector-native | Full opacity control per element via CSS/attributes |
| JPEG | No | None | Transparent areas filled with background color on save |
| BMP | Limited | 8-bit (rarely used) | 32-bit BMP has alpha but rarely implemented |
| TIFF | Yes | 8-bit or 16-bit | Full alpha in professional workflows; not for web |
Semi-transparency in practice
8-bit alpha enables visual effects that 1-bit transparency cannot achieve:
- Drop shadows: The shadow fades from opaque at the center to fully transparent at the edges. Requires smooth alpha gradients.
- Anti-aliased edges: A circle or text glyph has pixels along its edge that are partially transparent, blending smoothly with any background. Without semi-transparency, edges look jagged against different background colors.
- Glass and frosted effects: UI elements that are partially transparent to show content behind them.
- Feathered cutouts: Product photography removed from backgrounds with soft, natural-looking edges rather than a hard mask.
GIF's 1-bit transparency only supports hard edges — each pixel is either fully opaque or fully transparent. This is why GIF cutouts look jagged, especially around curved edges or fine detail.
How to create and use transparent images
- Background removal: Use an AI background removal tool (or manual selection in Photoshop/GIMP) to cut out a subject and replace the background with transparency.
- Saving with transparency: Export as PNG, WebP, or AVIF. Never export to JPEG if transparency must be preserved — JPEG fills transparent areas with white (or another background color).
- Using in web pages: PNG and WebP are fully supported in all modern browsers. Use
<img>as normal — the browser handles transparent compositing. - CSS backgrounds: Transparent PNG/WebP images work as
background-image— the CSSbackground-colorof the element shows through transparent areas.
Common issues
- White fringe when converting PNG to JPEG: JPEG fills transparent pixels with white (default in most tools). Solution: convert to WebP instead, or flatten against the correct background color.
- Jagged edges on GIF cutouts: GIF only supports 1-bit alpha. Solution: use PNG or WebP for images that need smooth transparent edges.
- Black fringe on semi-transparent images: Some compositing tools pre-multiply alpha, creating a dark fringe when placed on non-black backgrounds. Solution: use premultiplied-alpha-aware compositing settings in your editor.
- Alpha ignored in some print workflows: Some print RIPs don't handle alpha channels correctly. Flatten images to a solid background before sending to print.
Frequently asked questions
Which image formats support transparency?
PNG supports full 8-bit alpha. WebP supports full 8-bit alpha in both lossy and lossless modes. AVIF supports full 8-bit alpha. GIF supports 1-bit transparency (on/off only). SVG has native vector transparency. JPEG does not support transparency at all.
What is the difference between 1-bit and 8-bit transparency?
1-bit transparency means each pixel is either fully transparent or fully opaque — no in-between. GIF uses 1-bit transparency. 8-bit alpha means each pixel can have any of 256 transparency levels, from 0 (fully transparent) to 255 (fully opaque). This enables smooth semi-transparent edges, drop shadows, and glass effects. PNG, WebP, and AVIF use 8-bit alpha.
Why does my transparent PNG look white when converted to JPEG?
JPEG does not support transparency. When you convert a PNG with transparent areas to JPEG, the transparent pixels must be filled with a solid color. Most converters default to white. To avoid this, convert to WebP or AVIF (which preserve transparency), or specify a background color that matches where the image will be displayed.
How do I remove the background from an image?
Use the Remove Background tool on this site. The tool uses AI to detect and remove the background, leaving transparent pixels. The result should be saved as PNG, WebP, or AVIF to preserve the transparency — saving as JPEG will fill the transparent areas with white.
