How to Make a GIF from a Video (Free, Local, 2026 Guide)
Turn any video clip into an animated GIF. Free, local methods that do not upload your video, plus the best tools for editing and trimming first.
Posted by
Related reading
How to Convert CBZ to PDF for Comics and Manga (2026 Guide)
Convert CBZ comic archives to PDF for reading on Kindle, iPad, or any device. Free desktop, command-line, and web methods.
How to Convert CBR to CBZ for Comics and Manga (2026 Guide)
Convert your CBR comic files to CBZ for better compatibility. Free desktop, command-line, and web methods, plus a video walkthrough.
How to Convert PDF to CBZ for Comics and Manga (2026 Guide)
How to convert a PDF comic or manga into a CBZ file your comic reader can handle. Free desktop, command-line, and web methods, plus a video walkthrough.

Want to make a GIF from a video right now?
Use our free in-browser video to GIF converter. It runs locally on your device, so your video never leaves your computer. No uploads, no signup, no waiting in a queue.
Or read the full walkthrough below for trimming, sizing, and quality tips.
GIFs are the lingua franca of the internet for short, looping reactions. They play inline in chat apps, work on every platform, and need no codec or container support. The trade-off is that GIFs are old: they cap at 256 colors per frame, the file sizes balloon for anything over a few seconds, and the format itself was never designed for video. Knowing how to make a good GIF from a video is mostly about working around those limits.
This guide covers the three best ways to make a GIF from a video file (desktop, command line, browser), plus the trim-and-size choices that separate a 200 KB clean GIF from a 12 MB blurry one.
Method 1: Browser (Easiest, Local, No Install)
Our free in-browser video to GIF converter runs entirely in your browser using WebAssembly. Drop in MP4, MOV, MKV, or WebM, choose GIF, hit convert. The video never uploads to a server.
Steps
- Open the video to GIF page.
- Drag your video onto the window.
- Click Convert. The GIF downloads when ready.
Best for short clips (under 10 seconds) where you want a quick result without setting up software.
Method 2: How to Convert Desktop App (Batch, Local)
For longer clips, batches, or precise control over GIF quality and size, the How to Convert desktop app handles video to GIF locally. Drop in any video, pick GIF, convert. The desktop version handles entire folders at once, so you can convert a stack of clips in one pass.
How to Convert
The offline file converter for Mac, Windows and Linux.
- Converts video, audio, images, documents, ebooks and more
- Everything runs locally. Your files never leave your device
- Pay once. Access forever
Get the app on Mac, Windows and Linux
Method 3: FFmpeg (Best Quality, Smallest File)
For the smallest, sharpest GIFs, nothing beats FFmpeg with a two-pass palette. The two-pass workflow generates an optimal palette for the clip first, then encodes the GIF using that palette. The difference is dramatic: a two-pass GIF can be half the size and visibly cleaner than a default single-pass one.
Run these two commands:
ffmpeg -i input.mp4 -vf "fps=15,scale=480:-1:flags=lanczos,palettegen" palette.png ffmpeg -i input.mp4 -i palette.png -filter_complex "fps=15,scale=480:-1:flags=lanczos[x];[x][1:v]paletteuse" output.gif
fps=15 is the frame rate (lower = smaller file). scale=480:-1 resizes to 480px wide while keeping aspect ratio. Adjust both to balance size and quality. To trim to a specific clip, add -ss 00:00:05 -t 3 before -i input.mp4 to start at 5 seconds and grab 3 seconds.
How to Keep GIFs Small Without Killing Quality
- Trim first. A 3-second GIF is dramatically smaller than a 10-second one. Most reactions need 2-4 seconds.
- Resize down. 480px wide is plenty for chat. 720px is overkill for most uses.
- Drop the frame rate. 15 fps is smooth enough for almost everything. 24-30 fps doubles the file size.
- Use a custom palette. The two-pass FFmpeg method above is the single biggest quality win.
- Crop. Cutting out empty space (sky, walls, dead margins) is an easy size win.
Frequently Asked Questions
What is the best video format to start from?
Anything modern works: MP4, MOV, MKV, WebM. The original quality matters more than the container. A clean 1080p source produces a noticeably better GIF than a low-bitrate 720p re-upload.
How long can a GIF be?
Technically unlimited, but practically anything past about 10 seconds becomes too large to share comfortably. If you need a longer loop, consider an MP4 with no audio (most chat apps will autoplay it like a GIF) or WebP, which is smaller and supports animation.
Why is my GIF blurry or banded?
GIFs are limited to 256 colors per frame. Smooth gradients (sky, skin tones) often look banded. The two-pass FFmpeg method above with a custom palette helps a lot. If banding is unavoidable, consider WebP or an MP4 instead.
Can I convert a GIF back to a video?
Yes. ffmpeg -i input.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" output.mp4 converts a GIF back to MP4. The result is usually much smaller than the GIF.
Final Thoughts
For one-off GIFs, our free in-browser video to GIF converter is the fastest path. For batches or precise control, the How to Convert desktop app handles entire folders locally. For the absolute best quality and smallest file size, the FFmpeg two-pass palette workflow is unbeatable. Match the tool to the job and you will avoid the classic 12 MB blurry-reaction problem.
How to Convert
The offline file converter for Mac, Windows and Linux.
- Converts video, audio, images, documents, ebooks and more
- Everything runs locally. Your files never leave your device
- Pay once. Access forever
Get the app on Mac, Windows and Linux