AVI to GIF converter

Turn a clip from an old camera or a DivX file into a looping GIF for chat, forums or slides.

Drop a AVI file hereThe converter loads in your browser.

What happens to your AVI

The AVI is decoded, trimmed to your start and length, scaled and palettised into an optimised GIF.

Tip: Keep it short: 5 to 10 seconds at 480 px and 12 fps is a good default.

How to convert AVI to GIF

  1. Drop your AVI file on the box above, or tap it to pick one. The engine (about 31 MB) loads once per visit.
  2. The converter reads the file's streams and shows which codecs are inside.
  3. Set the width, frame rate and start/end times.
  4. Press the button, wait for the progress bar, then download your GIF.

Prefer the command line?

This is the FFmpeg command the converter runs for a typical AVI (mpeg4 + mp3). Paste it into a terminal with FFmpeg installed for batch jobs or files too big for a browser tab:

ffmpeg -y -i input.avi -vf "fps=12,scale=480:-1:flags=lanczos,split[a][b];[a]palettegen=stats_mode=diff[p];[b][p]paletteuse=dither=bayer:bayer_scale=4" -loop 0 output.gif

This re-encodes, so expect it to take a while on long files. Your own file may contain different codecs; the converter above detects them and adapts. For other jobs, ask the FFmpeg command helper.

Questions

Why does the GIF look grainy?

GIF has only 256 colours per frame; the remainder is dithered.

Is my AVI file uploaded?

No. The AVI is read from your device by FFmpeg running as WebAssembly in the page, and the GIF is written back to your device. No server ever receives it.

Is there a size limit for AVI to GIF?

We set none. The practical limit is browser memory: roughly 2 GB of output on a computer, and much less on phones.