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
A .png file is a Portable Network Graphics image, a lossless format that keeps every pixel exactly as saved and supports full transparency. PNG is the standard for screenshots, logos, icons and web graphics with sharp edges or text, though photos saved as PNG are much larger than JPGs.
A .webp file is an image in Google's WebP format, designed to make web pages load faster. It supports both lossy and lossless compression, transparency and animation, typically producing noticeably smaller files than JPG or PNG. It is common on websites, which is why images you save from a browser often end up as .webp.
A .mp4 file is a video container defined by the MPEG-4 Part 14 standard. It usually holds H.264 or H.265 video with AAC audio, plus optional subtitles, chapters and metadata. MP4 is the most widely supported video format: phones, browsers, TVs, editors and social platforms all play it without extra software.
A .webm file is an open, royalty-free video format designed for the web. It is a restricted form of the Matroska container that holds VP8, VP9 or AV1 video with Vorbis or Opus audio. Browsers play WebM natively, and many screen recorders, GIF replacements and web downloads use it.
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.