Open BGZone
Formats & quality

Why GIF Transparency Looks Jagged

Why GIF images only support on-or-off transparency, why that makes edges jagged, and which formats to use instead for smooth cutouts.

2 min read · Published

GIF is one of the oldest image formats still in everyday use, mostly for short animations. It does support transparency, but in a very limited way that often makes cutouts look jagged.

On or off, nothing in between

In a GIF, each pixel is either fully visible or fully transparent. There's no partial transparency. PNG and WebP, by contrast, let each pixel be anything from solid to invisible. See PNG transparency explained.

Why edges look rough

Smooth edges rely on partly transparent pixels that blend with the background. Without them, the edge becomes a staircase of solid pixels. Hair and fur look especially harsh.

Some GIFs are made with a "matte" colour, where edge pixels are blended with a chosen background colour. That looks fine on that exact background, but produces a halo on any other colour.

Limited colours too

GIFs can only use 256 colours per frame. Photos lose subtle gradients and show banding or speckled dithering.

Better alternatives

  • For still cutouts: PNG or WebP.
  • For animations with transparency: animated WebP, animated PNG (APNG), or a short video where supported.
  • For simple animations on websites: video formats are often much smaller than GIF.

When GIF is fine

Simple graphics with flat colours and hard edges, like pixel art or bold icons, still work fine as GIF.

Converting

If you need a GIF with transparency, design it on a background similar to where it will be shown, so edge pixels blend correctly. Or ask whether the platform accepts animated WebP or video instead.

For a broader view of formats, see lossless vs. lossy.