GIF to AVI Converter

Turn an animated GIF into an AVI video with MPEG-4 video.

or drop files here

GI

GIF Format

Graphics Interchange Format

A raster image format introduced by CompuServe in 1987. It uses LZW compression, a palette of at most 256 colors per frame, and supports simple animation.

  • 256-color palette per frame
  • Lossless LZW compression
  • Animation
  • 1-bit transparency
AV

AVI Format

Audio Video Interleave

A container introduced by Microsoft in 1992 and based on RIFF. It interleaves video and audio and can hold many different codecs.

  • RIFF-based container
  • Many codecs
  • Limited support for modern features
  • Legacy format

How to convert GIF to AVI

Follow these steps to convert GIF to AVI online.

    1

    Choose your GIF file, or several at once.

    2

    Wait while the converter turns each file into AVI.

    3

    Download each new AVI file. Your original file isn't changed.

What to know before converting GIF to AVI

  • The AVI holds MPEG-4 video tagged xvid, encoded at a fixed quality setting.
  • A GIF has no sound to encode; in a test the AVI had no audio stream.
  • The frame rate is capped at 30 fps and a picture over 1920 pixels on the longer side is scaled down.
  • No loop setting is passed, so loop the AVI in your player.
  • Several GIFs convert in turn, one AVI each.

About GIF files

What is a GIF file?

CompuServe produced the Graphics Interchange Format in 1987; people call it GIF. It packs data with lossless LZW coding and gives each frame a palette of up to 256 colors. It also offers simple animation and 1-bit transparency.

A single GIF can hold several frames, which is how a simple animation is stored. Transparency here means one palette entry is declared fully clear, so there is no partial opacity. A disposal setting on each frame controls how the next image covers the one before it.

People use GIFs as brief looping animations, small graphics and icons, reaction images and stickers. The AVI side is a RIFF-based video container that arrived with Windows in 1992, and you meet it in video archives and legacy desktop editing.

Programs that open GIF files

Any web browser, Preview on macOS, Windows Photos and GIMP open GIF files. Sorted by platform, the format's fact sheet names these:

Windows, Mac and Linux

  • GIMP: writes still pictures or multilayer animations.
  • ImageMagick: reads GIF; ask your install which formats it supports.

Web and Mobile

  • Google Chrome: GIF display.

Web

  • Mozilla Firefox: GIF display.

Mobile

  • Safari: GIF display.

For the AVI you get, ffplay and mpv play it on Windows, Mac and Linux, Adobe Premiere opens AVI on Windows and Mac, and VLC plays it on Android and iOS.

GIF and AVI compared

  • Extensions and media types: .gif for GIF; .avi for AVI, commonly labeled video/x-msvideo.
  • Kind: GIF is a raster image format with simple animation. AVI is a video container that can hold many different codecs.
  • Compression: GIF uses lossless LZW with at most 256 colors per frame. The AVI from this page holds MPEG-4 video, which is lossy.
  • Looping: GIFs are typically used as short looping animations. This page passes no loop setting to the AVI.
  • Transparency: GIF has 1-bit transparency. The AVI is yuv420p video, and that pixel format carries no alpha.
  • Typical use: GIFs are reaction images and stickers. AVI turns up in older Windows video, capture output and archives.

Inside your browser, a WebAssembly build of FFmpeg does the encoding. It writes MPEG-4 video tagged xvid at a fixed -q:v 10 with B-frames off, and MP3 at 96 kbps is named in the command as well. No GIF side goes past 1920 pixels, and a side that is odd gets trimmed by a pixel. The AVI never exceeds 30 fps, so a quicker GIF sheds frames but plays for the same length of time. No stream mapping is passed. The upload never happens, the GIF stays untouched, and the result is saved as the same name ending in .avi. With a batch of GIFs, the page converts them one after another, each into its own AVI. There is no cap on file size from this page.

Other ways to convert GIF to AVI

  • FFmpeg (Windows, Mac, Linux): run ffmpeg -i reaction-loop.gif -c:v mpeg4 -q:v 5 reaction-clip.avi for MPEG-4 video at a -q:v value you choose. FFmpeg's manual describes the -q:v scale as codec-dependent.
  • ImageMagick plus FFmpeg (command line): run magick diagram-motion.gif -coalesce diagram-frame-%04d.png, then ffmpeg -framerate 10 -i diagram-frame-%04d.png -c:v mpeg4 diagram-motion.avi to control the frame rate yourself. The -coalesce option expands the frames into full images first.

Problems with GIF files

  • Gradients look banded: what GIMP writes as GIF is limited to 256 colors at most, so smooth gradients can shift.
  • Soft edges turn jagged: a GIF cannot hold partial opacity along a soft transparent edge.
  • Frames overlap wrongly: disposal choices determine what an earlier image leaves behind, so pick combine or replace to suit the animation.
  • A GIF comment is missing: GIMP leaves out a comment containing characters beyond seven-bit ASCII.
  • Colors differ in the AVI: lossy video at a fixed quality cannot match the GIF pixel for pixel.
  • The AVI is bigger than the GIF: in a test, a tiny GIF became a larger AVI. The page sets no size target.
  • The AVI does not loop: no loop setting is passed. Loop it in your player.
  • There is no sound: the GIF is silent, and the test AVI had no audio stream.
  • An editor will not open the AVI: an editor may recognize AVI but not include the decoder a given file needs. Play it in ffplay, mpv or VLC to check the file.
  • The speed looks different: the AVI never runs above 30 fps, so a faster GIF loses frames and cannot be matched exactly.

Frequently Asked Questions

Everything you need to know about our converter

How do I convert GIF to AVI?

Which codec does the AVI use?

Does the AVI loop like the GIF?

Will the AVI look as sharp as the GIF?

What frame rate and size does the AVI have?

Can the AVI come out larger than the GIF?

Does the AVI keep GIF transparency?

Can I choose the quality?

Is my GIF uploaded?

Can I drop in more than one GIF?