Skip to content
ToolsMastar

GIF (Graphics Interchange Format)

GIF is a 1987 image format best known for short, looping animations. Learn how it works, where it shines, and when WebP or MP4 is the better choice.

Type
Image
File extensions
.gif
MIME type
image/gif

What is GIF?

GIF was introduced by CompuServe in 1987 and is still the most widely supported format for simple animations. Each frame uses a palette of at most 256 colors and is compressed losslessly with LZW compression.

Animated GIFs store a sequence of frames with a delay for each one and an optional loop count. Transparency is on or off per pixel: there are no semi-transparent edges.

When to use GIF

  • Short reaction clips and memes that must play everywhere
  • Simple animations, logos and UI demos with few colors
  • Email, where video is rarely supported

Limitations

  • 256 colors per frame, so photographs and gradients show banding or dithering
  • Large files compared with modern formats; an MP4 or animated WebP of the same clip is usually many times smaller
  • No sound and no partial transparency

Compatibility

Supported by every browser, operating system, email client and messaging app.

Compared with other formats

  • WebP: Animated WebP supports full color and alpha transparency at a fraction of the size.
  • MP4: MP4 video is the most efficient way to show a long animated clip on the web.

Tools for GIF files

Convert other files to GIF