.gif
GIF file: what it is and how to open it
A GIF file is an image of up to 256 colors, best known for short looping animations without sound. Drop one here to play it.
Drop your GIF file here
Opens on this device. Nothing is uploaded. Any other file works too.
What is a GIF file?
CompuServe, the online service, introduced GIF (Graphics Interchange Format) in 1987 as a color successor to its black-and-white image format. The 1989 version, GIF89a, added a transparent color and a delay for each frame, and a looping extension named after Netscape 2.0 followed. Together they made the short animations still used for reactions, stickers and simple web graphics.
GIF compresses with LZW, which Unisys had patented; its demand for license fees in 1994 is what led to PNG. The last of those patents expired in 2004, so GIF is now free for anyone to use.
Its limits explain most problems. Each frame can use at most 256 colors, so photos and video turned into GIFs lose color and show banding, and the files are large: in one Google example, a 3.7 MB GIF became a 551 KB MP4.
What is inside
A GIF starts with the text GIF89a (or GIF87a), then the logical screen: the canvas width and height and usually a global table of up to 256 colors. Each frame then has a graphic control extension, which sets its delay in hundredths of a second, its transparent color and how to clear it, followed by its position and its LZW-compressed pixels.
A frame can be smaller than the canvas and can bring its own color table, so encoders often store only the area that changed. An application extension named NETSCAPE2.0 sets how many times the animation loops. A single byte, 3B, ends the file.
reaction.gif47 49 46 38 39 61GIF89alogical screen480 × 270 canvasglobal color tableup to 256 colorsNETSCAPE2.0how many times to loopframe 1delay 0.04 s, then LZW-compressed pixelsframe 2only the area that changed…3Bend of fileHow to open a GIF file
Windows
- PhotosBuilt in. Microsoft lists GIF among the photo formats it opens.
- Microsoft EdgeBuilt in. Drag the GIF into a tab to play the animation.
- Universal File Opener for WindowsOursPlays animated GIFs. Press Space to pause, then step through the frames one at a time from the status bar.
Mac
- SafariBuilt in. Drag the GIF into a window to play it.
- Quick LookBuilt in. Select the file in the Finder and press the Space bar.
iPhone and iPad
- PhotosBuilt in. Keeps GIFs in their original format in your library.
- FilesBuilt in. Touch and hold the file, tap Open With, then Preview with Quick Look.
Android
- Google PhotosFree and preinstalled on many phones. Lists .gif among the photo types it backs up.
- Universal File OpenerOursPlays GIFs and makes new copies: every frame as a PNG, a sprite sheet, reversed, boomerang, twice as fast or half as fast.
In a browser
- Any web browserDrag the GIF into a tab. Every current browser plays animated GIFs.
- Universal File OpenerOursDrop the GIF on this page to play it and see its details. Nothing is uploaded.
Won’t open?
The GIF shows as a still picture
Some apps and file previews show only the first frame. Open it in a web browser, which plays every frame, or drop it here.
The GIF is too big to send or upload
GIF compresses moving pictures poorly. Cut the frame count (Halve frames in our Android app drops every other one), or send the clip as an MP4 video, which is usually a fraction of the size.
Colors look grainy or banded
Each frame can use only 256 colors, so photos and video lose color detail. For smooth color, use an MP4 video, an animated WebP or an animated PNG instead.
Transparent edges look jagged
GIF transparency is all or nothing: a pixel is either fully see-through or solid, so soft edges get a rough outline. Use PNG or WebP for smooth transparency.
Convert a GIF file
- To PNG framesAndroid: open the GIF in Universal File Opener, tap Edit, then Image tools, then Extract frames. You get a ZIP of numbered PNGs and a CSV of the frame delays.
- To a faster, slower or reversed GIFAndroid: Edit, Image tools, then Reverse, Boomerang, 2x faster or 2x slower. Each saves a new GIF and leaves the original unchanged.
GIF files in our apps
Universal File Opener plays GIFs on Android, Windows and in the browser. On Android it also saves frames as PNGs, a sprite sheet, and reversed, boomerang, faster or slower copies, and builds GIFs from photos (saving those needs Pro).
All Android tools and limits for GIF files
- Extract frames: every frame as a PNG plus a CSV of frame delays, zipped.
- Sprite sheet: all frames tiled into one PNG grid; or save just the first frame as a still.
- Remix copies: reverse, boomerang (forward-then-back), 2x faster or slower, halve the frames, merge consecutive duplicates. Loop settings preserved.
- Create: pick two or more photos and encode a looping animated GIF. Saving it needs Pro.
- Still GIFs are fully editable and save back as GIF.
Limits
- Pixel editing uses a still PNG copy of one GIF frame. The source animation remains unchanged.
- GIF uses a limited color palette. Converted photographs can lose color detail or show banding.
Walkthrough: Edit and convert images on Android