AVI to GIF Converter

Turn an AVI video into a looping GIF, with no upload and no sign-up.

or drop files here

AV

AVI Format

Audio Video Interleave

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

  • RIFF-based container
  • Many codecs
  • Limited support for modern features
  • Legacy format
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

How to convert AVI to GIF

Follow these steps to convert AVI to GIF online.

    1

    Choose your AVI file, or several at once.

    2

    Wait while the converter turns each file into GIF.

    3

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

What to know before converting AVI to GIF

  • The GIF has no sound; the AVI's audio is dropped.
  • Frames are sampled at 15 per second.
  • The longer side is at most 480 pixels, with both sides rounded down to an even number.
  • A generated palette limits each frame to 256 colors.
  • The whole video is converted and the GIF loops forever.

About AVI files

What is an AVI file?

AVI is short for Audio Video Interleave. Microsoft released it alongside Windows 3.1, with a first specification in 1992. It is a container built on RIFF: a header records things like the frame size and frame rate, and another chunk holds the media, with video and audio interleaved. FOURCC identifiers say which codec each stream uses.

Because AVI can wrap uncompressed, lossless or lossy video, the extension tells you nothing about quality or size. Files normally end in .avi, and video/x-msvideo is a commonly used media type. You find AVI in older Windows video, camera and capture output, and archives of video work. It also turns up in older desktop video workflows, where a file called .avi can hold almost any codec.

Programs that open AVI files

Windows / Mac / Linux

  • mpv: plays AVI on the desktop and lets you switch audio and subtitle tracks.
  • ffplay: bundled with FFmpeg; whether a file plays depends on decoders for the video inside.

Windows and Mac

  • VLC media player: plays AVI.
  • Adobe Premiere: imports AVI when the necessary decoder is available.

Windows

  • Windows Media Player: plays AVI.

Mac

  • QuickTime Player: plays AVI.

Mobile

  • On Android and iOS, VLC plays AVI, though decoding hinges on the codec inside the file.

AVI and GIF compared

  • Extensions and media types: .avi, usually video/x-msvideo; .gif and image/gif.
  • What they are: AVI is a video container. GIF is an image format that can hold many frames and times them in hundredths of a second.
  • Compression: AVI can carry many codecs. GIF uses lossless LZW coding on every frame.
  • Timing: a GIF holds many images and sets the delay between them in hundredths of a second. This page builds its GIF at 15 frames a second.
  • Colors: no GIF frame can use more than 256 colors from its palette. GIMP likewise reduces a GIF export to 256 colors at most, which can change gradients.
  • History: CompuServe released GIF in 1987, and GIF89a followed in July 1990 with transparency, timing for each frame, comments and application blocks. Unisys started charging LZW license fees in 1994. The US patent lapsed in 2003, while the matching patents in Europe and Japan lasted until 2004.
  • Transparency: one palette color of a GIF can be marked fully transparent, and there is nothing in between. Soft transparent edges can't keep partial opacity in a GIF.
  • Sound: AVI can carry audio. GIF cannot.
  • Support: every major browser displays GIF, in a web page or a message.

For this pair, the page reads the AVI with FFmpeg in your browser. It makes a palette from the video and then writes the GIF with it. The frame rate is 15 per second, the longer side is at most 480 pixels, and the loop repeats forever. The audio is not carried across, and nothing is trimmed. A 1920 by 1080 AVI comes out 480 by 270, since the longer side is capped at 480 pixels and the proportions stay the same.

Other ways to convert AVI to GIF

  • Ezgif Video to GIF (website): choose the AVI, or enter a direct video URL, and upload it. Enter the start and end times in seconds, then pick a size and a frame rate. The size menu has presets such as Original (up to 800px), 600xAUTO and 480xAUTO, and higher frame rates look smoother but make a larger file. With no start and end it makes a GIF from the first five seconds. The site allows files up to 200 MB, and the maximum length is 60 seconds at 5 frames a second and 30 seconds at 10. Your video is uploaded, and the site deletes uploaded files an hour later.

Problems with AVI files

  • The file plays without picture or sound: an editor can recognize AVI but still lack the decoder for what is inside. The container does not say which codec the stream uses; the FOURCC identifiers do.
  • A large capture won't open: AVI's original size limits are tighter than the later OpenDML extension allows, so big captures need software that supports it.
  • The picture is stretched: aspect ratio and scan type information are handled differently by different AVI programs. Check the video in more than one player.

Frequently Asked Questions

Everything you need to know about our converter

How do I convert an AVI to a GIF?

Why is my GIF choppy compared with the AVI?

How big is the GIF?

Can I convert just part of the AVI?

Does the GIF keep the sound?

Why did my GIF come out so big?

Why do the colors look banded or grainy?

Does the GIF repeat?

Is there a limit on the AVI's length or size?

Is my AVI uploaded?