← Blog · July 17, 2026 · 5 min read

How to Make a GIF from a Video (and Keep the File Size Sane)

GIFs refuse to die, and for good reason: they autoplay everywhere, loop forever, need no play button, and work in places video can't — README files, docs, Slack, email signatures, support articles. The catch has always been making one that looks good and doesn't weigh 40 MB.

Make one in your browser

Drop any video into FileLark's video to GIF converter, choose the start time and duration, pick a width and frame rate, and convert. It runs entirely on your device (no upload), and it uses the two-pass palette technique — the converter first analyses your clip to build an optimal 256-color palette, then renders with it. That's the difference between the crisp GIFs you see from professionals and the grainy, banded ones from naive converters.

The three dials that control file size

GIF is a 1987 format that stores every frame as an indexed image, so size grows fast. Three settings control it. Duration: the biggest lever — keep clips under ~10 seconds; the tool caps at 30 for good reason. Width: 320 px is plenty for chat previews, 480 px is the standard sweet spot, 640 px only when the GIF is the main content. Frame rate: 12 fps looks smooth for almost everything at half the size of 24 fps; screen recordings and slideshows get away with 8.

Rough guide: 5 seconds at 480 px / 12 fps lands around 2–4 MB. Double any dial and the size roughly doubles with it.

GIF or video — which should you post?

Social platforms (Twitter/X, Reddit, Discord) convert uploads to video anyway, so posting the MP4 there gives better quality at smaller size — if your file is too big, use the video compressor instead. Choose an actual GIF when the destination can't do video: documentation, GitHub READMEs, HTML emails, CMSs that only accept images, or anywhere you need guaranteed silent autoplay with zero player chrome.

Pro workflow for clean results

First trim the video to the exact moment (lossless, instant), then convert the trimmed clip — this keeps the two-pass palette focused on the frames that matter, which visibly improves color. If your source is huge phone footage, compressing it first doesn't help the GIF (it re-encodes anyway); trimming is the step that pays.