What Is a .GIF File?

A .gif file is a Graphics Interchange Format image, best known for short looping animations used in chats and on the web. GIFs are limited to 256 colors per frame and support simple on-off transparency, so they suit memes, reactions and simple graphics rather than photographs.

Extension
.gif
Full name
Graphics Interchange Format
Type
Image file
MIME type
image/gif
Developed by
CompuServe

About GIF files

A GIF stores each frame as a palette of at most 256 colors compressed with LZW, a lossless method. The compression is lossless, but reducing a photo or video to 256 colors is not, which is why GIF footage often looks grainy or banded. Transparency is binary: a pixel is either fully transparent or fully opaque, so soft edges show a jagged halo on colored backgrounds.

Animated GIFs are surprisingly inefficient. A few seconds of video converted to GIF can run to several megabytes, often far more than the same clip as an MP4 or WebM. That is why sites like social networks often convert uploaded GIFs to video behind the scenes while still labeling them as GIFs.

GIF dates from 1987 and is supported by virtually every browser, email client and messaging app, which is why it survives. Most still image editors open only the first frame or show frames as layers, so check before editing an animation in a tool like Paint, which will save just one frame.

What GIF files are used for

  • Reaction animations and memes in chats and social media
  • Short product demos and UI walkthroughs in documentation
  • Simple animated banners and email graphics
  • Small flat-color graphics on older websites

How to open a .gif file

Windows

The Photos app plays animated GIFs; any browser does too. Paint opens only the first frame.

Mac

Press Space in Finder to play it in Quick Look, or open it in Safari. Preview shows each frame as a separate page.

iPhone and iPad

Save it to Photos (it appears in the Animated album) or tap it in the Files app to play it.

Android

Google Photos and Files by Google play animated GIFs.

Online / any browser

Drag the file into any browser window to play the animation.

How to convert a .gif file

To make an animated GIF smaller and smoother, convert it to MP4 or WebM, for example with the free command-line tool ffmpeg ("ffmpeg -i in.gif out.mp4") or an online converter.

To turn a video clip into a GIF, GIMP can export layered frames as an animated GIF, and many free online converters accept an MP4 upload.

To get a single still frame, open the GIF in Paint (Windows) or Preview (Mac) and save or export the frame as PNG.

Convert it here, free and without uploading: GIF to PNG, GIF to JPG, GIF to PDF

Free video tools: Video to GIF · all video tools

Changing the extension in the file name does not convert the file. See how to change a file extension for when renaming is safe.

Naming and renaming GIF files

  • Name reaction GIFs by the emotion or phrase you will search for later (thumbs-up-approval.gif, facepalm.gif) rather than the random strings they download with.
  • For documentation GIFs, include the feature and step: settings-enable-dark-mode.gif.

Renaming lots of .gif files? See how to rename gif files with ai, use the free online bulk renamer for patterns and numbering, or try File Renamer AI to name each file from what is inside it.

Related file types

Frequently Asked Questions

How do you pronounce GIF?

Both "jif" and "gif" (hard g) are widely used. Its creator, Steve Wilhite, said it is pronounced "jif", but the hard g is at least as common.

Why does my GIF look grainy?

GIF can only use 256 colors per frame, so photos and video get dithered or banded. Use MP4, WebM or animated WebP for better quality at a smaller size.

Why won't my GIF animate?

Some apps, such as Paint or Preview, show frames individually instead of playing them. Open it in a browser, the Windows Photos app or Quick Look on a Mac.

More image file extensions · all file extensions