Skip to content

AVI to GIF converter

Convert an AVI to a GIF 480 pixels wide at 10 frames a second, free and without an account. A 29.5-second Xvid AVI made a 7.7 MB GIF, and a camcorder AVI with non-square pixels comes out squeezed.

Choose a file or drag it here
MP4, AVI, MOV, FLV, MKV, WebM, 3GP, MPEG, MPG, GIF, WMV, TS (up to 500 MB)
Input
AVI files
Изход
GIF, 480 px wide, 10 fps
Limit
Up to 500 MB
Price
Free, no account

How to convert AVI to GIF

  1. 01

    Choose your AVI

    Drop it on the box. The limit is 500 MB.

  2. 02

    Check what changes

    The table under your file shows the GIF's size range and picture before you convert.

  3. 03

    Download the GIF

    The link lasts one day.

What will the GIF look like?

480 pixels wide, 10 frames a second, no sound, and it loops forever.

The converter takes the whole video. It has no trim, crop or speed setting, so cut the clip first or use the command further down. The height follows the picture: 270 for a 16:9 video.

The video, 24 frames a second
The GIF this converter made of the same pan, with the gray sky drawn in coloured dots
The GIF this converter made of it: 278 KB

How long can the GIF be?

About 35 seconds of filmed widescreen video fit under GitHub's 10 MB limit, and 71 seconds under Discord's 20 MB.

A GIF stores every frame as a picture, so each second of a widescreen video adds 100 to 300 kB. A vertical video makes a taller GIF that costs more. Pick what your video shows and how long it runs.

Seconds of video
15
10 MB20 MB25 MB
GIF4.2 MB
MP4954 KB

15 seconds make a GIF of about 4.2 MB, 4 times the size of an MP4 of the same picture.

LimitScreen recordingAnimationLive action
GitHub10 MB93 s34 s35 s
Discord, free20 MB187 s69 s71 s
Gmail25 MB234 s86 s89 s

Measured on a screen recording of a web page, the Sintel trailer and Tears of Steel. The MP4 bar is the same 480-pixel picture at 10 frames a second. Slack says custom emoji work best under 128 KB and takes GIFs of up to 50 frames, which is 5 seconds of this converter's GIF.

Will the GIF look like the video?

No. It keeps 10 frames a second and at most 256 colours, and this converter draws soft colours as a pattern of dots.

A 24 fps video loses 14 of every 24 frames. One frame of the trailer holds more than 12,000 colours. The converter's GIF of it uses 56, picked from a fixed palette, and mixes them in a grid. A palette made from the clip itself uses 221 and keeps a gray sky gray.

Desert dunes under a smooth gray sky, from the videoThe same crop in the converter's GIF: the sky is a grid of yellow and purple dots
The videoThis converter
A quarter of one frame, enlarged. Drag across it to compare. The palette from the clip made the GIFs we tried 1.8 to 3.5 times bigger.

Will a camcorder AVI keep its shape?

No. An AVI stored with non-square pixels comes out squeezed.

We made a DV-style AVI: 720 × 480 pixels, meant to show at 4:3. The converter sizes the GIF from the stored pixels, so it came out 480 × 320 instead of 480 × 360. AVIs with square pixels keep their shape: a 29.5-second Xvid AVI at 800 × 450 became a 480 × 270 GIF.

A dragon and a girl, squashed flat
The same frame of both GIFs.

Make the GIF on your computer

FFmpeg trims, picks the frame rate and builds a palette from your clip. These are the commands we measured with.

A short GIF with better colour

Takes 10 seconds from the start. Change ‑ss for the start, ‑t for the length, fps and 480 for smoothness and width.

ffmpeg -ss 0 -t 10 -i in.avi -vf "fps=10,scale=480:-1:flags=lanczos,split[a][b];[a]palettegen[p];[b][p]paletteuse" -loop 0 out.gif
A camcorder AVI in its right shape

Applies the pixel shape before sizing the GIF.

ffmpeg -i in.avi -vf "scale=iw*sar:ih,setsar=1,fps=10,scale=480:-1:flags=lanczos,split[a][b];[a]palettegen[p];[b][p]paletteuse" -loop 0 out.gif
The command this converter runs

The whole video, FFmpeg's built-in palette.

ffmpeg -i in.avi -vf "fps=10,scale=480:-1:flags=fast_bilinear" -loop 0 out.gif

If the conversion doesn't work

The GIF is tens of megabytes
The converter keeps the whole video. Five minutes of film made a GIF of 81.4 MB. Trim the video to the seconds you need, or keep it as an MP4.
"Couldn't convert this"
A file with sound and no picture has nothing to draw, so the conversion fails.
"Choose a file under 500 MB."
The file is over the limit. Make the GIF on your computer instead.
The download link stopped working
Links expire after a day. Convert the video again.

Related file conversions

Turn an idea into a video

Give Storybook a topic or an article link. It makes an illustrated video with narration and music.

Try Storybook
All 42 tools

AVI to GIF questions

All file converters

Search converters