How to Make a GIF from a Video (and Keep It Small)
Start time, fps, width, colours — the four dials that decide whether your GIF is 400 KB or 40 MB.
When a GIF is better than a video
A GIF autoplays everywhere, loops forever, needs no player, no codec and no play button, and shows up inline in chat apps, email clients, documentation, bug reports and old forums. A three-second MP4 is a better file in every technical sense, and yet it will not display in half of those places. That is the entire reason GIFs refuse to die.
The price you pay is sound (there is none), colour (256 per frame, maximum) and size. This guide is mostly about controlling the third one.
The three numbers that decide everything
A GIF is a stack of frames. Its size grows with the product of three settings:
- Duration — 3 to 8 seconds is the sweet spot. Ten seconds of a screen recording turns into a file nobody can send.
- Frame rate — 10 to 15 fps is plenty for interface recordings and memes. Cinema runs at 24 fps, but for a GIF it doubles the frame count for a difference most people will not notice at small sizes.
- Width — 480 px is the standard choice, 640 px is the practical maximum. Height follows the video's aspect ratio.
A worked example: 5 seconds at 12 fps gives 60 frames. At 480×270 with 128 colours, each frame lands around 40–80 KB, so the finished GIF is roughly 2.5–5 MB. Cut the duration to 4 seconds, drop to 10 fps and 320 px wide, and the same clip fits in well under 1 MB.
Choosing the moment matters more than the settings
The single biggest improvement to any GIF is a better clip. Find the four seconds where something actually happens, start just before the action, and end right after it. If the GIF loops — and it will — try to choose a start and end point where the motion matches up, so the jump back to frame one is not jarring.
For screen recordings, crop your mind to one window or one region before recording. A GIF of a whole desktop is unreadable on a phone.
Colours: 256 is the format limit, not a target
GIF's palette caps at 256 colours. For flat artwork, logos and user interfaces, 32 or 64 colours are often visually identical and dramatically smaller. For photographic content, 128 colours with dithering looks noticeably better than 64. Starting from the video, the converter quantises each frame to the palette you choose, which is why the colour count is the most direct quality-versus-size dial after resolution.
A note on audio and text
GIFs cannot carry sound, so if the clip depends on audio, GIF is the wrong format — upload the video instead. And because of the limited palette, small text with thin strokes will fringe and shimmer. Increase the resolution for text-heavy clips, or accept that a GIF is the wrong tool for a screencast of code.
Make one in your browser
The Video to GIF tool reads an MP4, WebM, MOV or M4V file, seeks to the start time you choose, captures frames with the browser's video decoder and builds the GIF with an encoder bundled into the page. Nothing is uploaded — a five-second source video produces the GIF on your own machine, and you can watch the progress frame by frame. Pair it with the GIF Compressor when the result is still a little too heavy.