AVI to GIF Converter
Learn how to convert AVI video to animated GIF using free desktop tools, plus calculate GIF output size and file size before you convert.
GIF Settings Calculator
Estimate output dimensions and file size before converting.
Why AVI needs a desktop tool
AVI is a container that can hold video encoded with Xvid, DivX, MJPEG, H.264, or dozens of other codecs. Browsers only support a small subset of these codecs, so an in-browser converter would silently fail for most AVI files. Desktop tools like FFmpeg and HandBrake include full codec libraries and handle every AVI variant correctly.
1 FFmpeg (recommended, free)
FFmpeg gives you precise control over every GIF parameter. Download it free from ffmpeg.org, then use the commands below.
Basic conversion
ffmpeg -i input.avi -vf "fps=10,scale=480:-1:flags=lanczos" output.gif
High-quality (two-pass palette)
ffmpeg -i input.avi -vf "fps=10,scale=480:-1:flags=lanczos,palettegen" palette.png ffmpeg -i input.avi -i palette.png -filter_complex "fps=10,scale=480:-1:flags=lanczos[v];[v][1:v]paletteuse" output.gif
Convert a specific segment (start 0:30, length 5 s)
ffmpeg -ss 00:00:30 -t 5 -i input.avi -vf "fps=10,scale=480:-1:flags=lanczos" output.gif
2 HandBrake (GUI, beginner-friendly)
HandBrake does not export GIF natively, but it can transcode AVI to MP4/WebM first. From there, use a free online MP4-to-GIF converter (the browser handles MP4 reliably).
- 1 Download HandBrake from handbrake.fr and install it.
- 2 Open HandBrake, click Open Source, and select your AVI file.
- 3 Choose the Fast 480p30 preset from the right panel.
- 4 Set Format to MP4 and click Start Encode.
- 5 Take the resulting MP4 to any browser-based MP4-to-GIF tool (which handle MP4 natively).
Tips for smaller, sharper GIFs
- Keep clips short: Aim for 3–6 seconds. GIF file size grows linearly with duration.
- Use 10 fps: Barely noticeable vs 24 fps but typically 50% smaller file.
- Scale down width: A 480 px wide GIF looks fine on desktop and mobile. 720 px is rarely necessary.
- Use palettegen: The two-pass FFmpeg command generates a custom palette per clip, reducing banding significantly.
- Trim silence: Cut still frames at the start/end with -ss and -t flags. Static frames still take file space.
Summary
Learn how to convert AVI video to animated GIF using free desktop tools, plus calculate GIF output size and file size before you convert.
How it works
- Choose a free conversion tool: FFmpeg (command-line, most control) or HandBrake (GUI, beginner-friendly).
- Enter your source AVI details in the GIF Settings Calculator: resolution, duration, frame rate, and color depth.
- Read the estimated output file size so you know whether to reduce frame rate or scale down the resolution.
- Copy the recommended FFmpeg command or follow the HandBrake steps.
- Run the conversion on your computer — no upload to any server required.
Use cases
- Convert a short gameplay clip to a looping GIF for social media.
- Extract a tutorial segment from an AVI screencast and share it as a GIF.
- Estimate file size before committing to a full conversion.
- Optimize GIF settings (frame rate, palette) to stay under a size limit.
- Convert AVI training videos to GIF for embedding in documentation.
- Re-encode old AVI footage for use in web pages that do not support video.