Back to All Blog Posts
Image Guides

What Is a GIF? How Animated GIFs Work and How to Convert Them

By 4 min read
Frames of an animated GIF laid out in a row
Short answer

GIF is an image format from 1987 that stores up to 256 colours per frame and can hold several frames, which is how animated GIFs work. It’s great for simple graphics and short loops, poor for photos. Convert a GIF to JPG or PNG to pull out frames, to WebP to keep the animation in a much smaller file, or make your own GIF from photos with JPG to GIF.

CompuServe released the Graphics Interchange Format in 1987, when most people connected through slow modems and screens showed a few hundred colours at best. A version from 1989 added the ability to store several images in one file with delays between them, and the animated GIF was born. It survived the arrival of JPG, PNG and video because it does one thing every app understands: a small, silent loop.

How a GIF works

  • A palette of up to 256 colours. Each frame picks its colours from a list of at most 256. Photos, which contain thousands of shades, get banding and speckled "dithering".
  • Lossless compression within that palette. GIF uses LZW compression, which works brilliantly on flat areas of colour and poorly on detailed images.
  • On-off transparency. A pixel is either fully transparent or fully visible; there’s no soft edge like in PNG.
  • Frames and delays. An animated GIF is a stack of images with timing between them, plus a setting for how many times it loops.

Why animated GIFs are so big

Each frame is stored as a separate image, and GIF compression isn’t built for photographic content. A five-second clip from a video can easily reach 5 to 10 MB as a GIF, while the same clip as a short MP4 or animated WebP is a fraction of that. That’s why many sites that say "GIF" actually show you a video.

Which conversion do you need?

You wantConvert to
One still image (the first frame, or a specific moment)GIF to JPG or GIF to PNG
Every frame as separate imagesGIF to JPG with "All frames", or to PNG for sharp graphics
The animation in a much smaller file for a websiteGIF to WebP
A GIF in a documentGIF to PDF (one page per frame or just the first)
An animated GIF from your own photosJPG to GIF or PNG to GIF

Pulling frames out of a GIF

  1. Open the GIF in GIF to JPG.

    You’ll see the number of frames, the duration and the frame rate.

  2. Choose the frames.

    First frame only, all frames, every 2nd or 5th frame, or a range.

  3. Handle transparency.

    JPG can’t be transparent; tick "Add white background" so clear areas don’t turn black. Choose PNG instead to keep transparency.

  4. Download.

    Several frames arrive as a ZIP.

Making a GIF from photos

In JPG to GIF, switch to "Multiple images (animated GIF)", drop in your photos, drag them into order and set the delay per frame. 0.5 to 1 second works for a slideshow; 0.1 seconds or less looks like motion. Keep the size modest (640 or 800 pixels wide) and the number of frames small, or the file grows quickly. For product spins, before-and-after comparisons and step-by-step instructions, a short GIF is still one of the easiest things to share.

When to use GIF, and when not to

Good forUse something else for
Short loops in email (most email apps play GIFs, not video)Photos: JPG or WebP
Simple animated icons and stickersLogos and graphics: PNG or SVG
Reaction images in chatsLong or detailed clips: MP4 or WebP

And the pronunciation? Its creator, Steve Wilhite, said "jif". Plenty of people say "gif" with a hard G. Both are understood.

Frequently asked questions

What is a GIF file?

An image format from 1987 that stores up to 256 colours per frame and can contain several frames, which makes animated GIFs possible.

Why are GIFs so large?

Each frame is stored as a separate image with compression designed for flat colours, so animations from video become very large.

How do I convert a GIF to JPG?

Open it in GIF to JPG, choose the first frame or all frames, add a white background for transparent areas, and download.

Can I keep a GIF animated but make it smaller?

Yes. Converting to animated WebP usually keeps the animation in a much smaller file.

How do I make a GIF from photos?

Use JPG to GIF in animated mode, put the photos in order, set the frame delay and download.

Convert or split a GIF

First frame, all frames or a range, as JPG. In your browser, nothing uploaded.

Open GIF to JPG
Akhtar Ali
Akhtar Ali

Founder of CleanPDF. I build the site’s browser-based PDF, image, QR code and calculator tools, and I write these guides around the questions people send in while using them.