To convert a video to a GIF, cut the clip to the few seconds you need, pick a frame rate (10–15 fps) and a width (320–480 px for chat, up to 800 px for a web page), and let the converter build a colour palette for that clip. Those four choices decide almost everything about the result. Frame rate and width set the file size, the palette sets how good it looks, and length multiplies both. Grainy footage is the one thing no setting fully fixes.
The quickest route is an online converter such as MP4 to GIF. Below are the steps, the settings explained with measured file sizes, loop options, and FFmpeg recipes if you'd rather do it on your own machine.
How to Convert a Video to GIF Step by Step
- Open the converter for your source format: MP4 to GIF, MOV to GIF for iPhone videos, WebM to GIF for browser recordings, or the MKV, AVI, WMV and FLV versions
- Upload the video
- Set start and end time in seconds to cut out the part you want, then choose frames per second (5–30) and output width (320–1280 px, or Auto)
- Click Convert GIF and download the result
What you get by default: 10 fps, 480 px wide (height follows the aspect ratio), a 256-colour palette generated from your clip, smooth downscaling, and a GIF that loops forever. The sound is dropped, because GIF has no audio.
Tip: if you only need three seconds of a long video, cut them out before you upload. It makes the upload faster, and you can check the exact moment in your video player first.
The conversion runs on our servers over an encrypted (HTTPS) connection. It's free without an account, with a daily limit (video operations use more of it than documents), and files are handled as described in the privacy policy.
What We Measured
To put numbers on the settings, we made three 6-second 1080p30 test clips and converted each one to GIF with FFmpeg's palette method (a palette built per clip, Lanczos scaling, infinite loop), the same approach the online converter takes:
- Clean: smooth moving gradients with a sharp animated test pattern sliding across. Think of animation, a screen recording or clean studio footage
- Grainy: the same clip with light film grain added, like phone footage in dim light
- UI: a flat-colour animated test pattern, like a screen capture of an app
Each GIF was checked against an MP4 of the same clip at 480 px (H.264, CRF 23, 30 fps). Machine: Intel i9-13900K. At its default settings the online converter turned the clean clip into a 1.50 MB GIF, the same size as the 10 fps, 480 px row below.
Frame Rate: 10–15 fps Is the Sweet Spot
Every frame is stored as a separate image, so file size grows almost exactly with the frame rate:
| Frame rate (480 px wide) | Clean | Grainy | UI |
|---|---|---|---|
| 5 fps | — | 4.4 MB | 0.44 MB |
| 10 fps | 1.50 MB | 8.8 MB | 0.86 MB |
| 15 fps | 2.28 MB | 13.2 MB | 1.24 MB |
| 24 fps | 3.80 MB | 21.1 MB | 1.94 MB |
| 30 fps | — | 26.4 MB | 2.40 MB |
Going from 10 to 15 fps costs about 50% more. Going from 10 to 30 fps triples the file. How to choose:
- 5–8 fps: slides, UI steps, anything where motion is incidental. Visibly choppy on people
- 10–12 fps: reactions, gestures, most memes. The classic GIF look
- 15 fps: smooth enough for product demos and cursor movement
- 20–30 fps: only when smooth motion is the point, and the clip is short and small
You don't need to match the source's 24, 30 or 60 fps. Dropping frames is the cheapest size reduction there is.
Width: Size Grows With the Area, Not the Width
Doubling the width quadruples the pixels, and the file follows:
| Width (10 fps) | Clean | Grainy | UI |
|---|---|---|---|
| 320 px | 0.78 MB | 3.8 MB | 0.46 MB |
| 480 px | 1.50 MB | 8.8 MB | 0.86 MB |
| 640 px | 2.51 MB | 16.1 MB | 1.35 MB |
| 800 px | 3.59 MB | 25.5 MB | 2.05 MB |
| 1280 px | — | 66.5 MB | 4.68 MB |
Going from 320 to 640 px made the file 3.2 times bigger for the clean clip and 4.2 times bigger for the grainy one. Practical widths:
- Chat apps and comments: 320–480 px. They're shown small anyway
- Web page or documentation: match the content column, typically 600–800 px
- UI walkthroughs where text must stay legible: as wide as the text needs, but keep the clip short and the frame rate low
Palette and Dithering: Why Some GIFs Look Banded
A GIF frame can hold only 256 colours. The quality of a video-to-GIF conversion depends mostly on which 256:
- A palette built from your clip (what the online converter does) picks the 256 colours that actually occur in the video. Our clean clip scored an SSIM of 0.975 against the source at the same size and frame rate, which is close to indistinguishable at a glance
- A generic palette, which is what many quick converters and FFmpeg's plain one-step conversion use, spreads 256 colours across the whole spectrum. Skin tones, skies and gradients come out posterised and blotchy
Dithering mixes neighbouring palette colours in a fine pattern to fake the missing shades. It hides banding in gradients, but the pattern changes from frame to frame and costs bytes. Turning it off saved surprisingly little on our grainy clip: 8.8 MB with the default dither, 8.2 MB with ordered (Bayer) dithering, 8.1 MB with none. That's a 7–8% saving for visibly worse gradients. Frame rate and width are much stronger levers.
Grain is the real enemy. At identical settings (10 fps, 480 px), the grainy clip was 5.9 times larger than the clean one: 8.8 MB against 1.5 MB. Grain changes every pixel in every frame, and GIF can only store changes, not predict them. If your source is noisy, keep the GIF small and short, or use a video format instead.
Length: Every Second Counts Twice
Size scales directly with duration. A 3-second GIF is half the size of a 6-second one at the same settings. Good GIFs are short:
- Reactions: 2–4 seconds
- A single UI action or product feature: 3–6 seconds
- Anything longer than about 10 seconds: consider a video instead
Pick a moment that loops cleanly: a movement that ends where it started, or a pause before the cut. Viewers see the loop point far more often than any single frame.
Loop Settings
The loop count is stored inside the GIF:
- Loop forever (loop count 0): the default, and what the online converter produces
- Play once: useful for a "reveal" animation on a web page
- Play N times: rarely supported consistently
In FFmpeg, -loop 0 loops forever, -loop -1 plays once, and -loop 3 asks for three repeats. Viewers disagree on whether that means three plays or four. Browsers honour the setting. Some chat apps and social platforms ignore it and loop everything.
How to Convert Video to GIF With FFmpeg
The same two-step palette method in one command (10 fps, 480 px, loop forever, from second 12 for 4 seconds):
ffmpeg -ss 12 -t 4 -i input.mp4 -vf "fps=10,scale=480:-1:flags=lanczos,split[a][b];[a]palettegen[p];[b][p]paletteuse" -loop 0 output.gif
-ss 12 -t 4: start at 12 s, take 4 secondsfps=10: drop to 10 frames per secondscale=480:-1:flags=lanczos: 480 px wide, height automatic, sharp downscalingpalettegen/paletteuse: build a palette from this clip, then apply it- Add
:dither=bayer:bayer_scale=3afterpaletteusefor a steadier, more compressible dither pattern
On a Mac or iPhone, the Shortcuts app also has a Make GIF action if you want something built in.
GIF vs Video: When Not to Make a GIF
GIF is the right format when the clip has to animate inside something that won't play video: email, many forums, older chat apps, a README. Everywhere else, video wins on size by a wide margin. In our tests the 480 px MP4 of the clean clip was 105 KB against 1.50 MB for the GIF, 14 times smaller, and at 30 fps rather than 10. For the grainy clip the gap narrowed to about 2× (4.2 MB MP4 vs 8.8 MB GIF), but the MP4 was still smaller at triple the frame rate.
That's why many social platforms quietly convert uploaded GIFs to video. If you already have a GIF and want the small version, GIF to MP4 and GIF to WebM do the reverse conversion. For a web page, a short muted looping video is almost always the better choice.
How to Make a GIF Smaller
In order of effect, from our measurements:
- Cut it shorter. Size scales directly with length
- Lower the frame rate. 15 → 10 fps saves about a third
- Lower the width. 480 → 320 px roughly halves it
- Start from cleaner footage. Grain alone made the file almost six times larger
- Reduce colours. Running an existing GIF through Compress Image at its default setting cut our clean GIF from 1.50 MB to 1.21 MB. The grainy one only went from 8.8 MB to 8.2 MB
If you need a smaller video first, for example to upload a long clip faster, use Compress Video.
Troubleshooting
The GIF is huge. Check the width and frame rate first, then the length. A 1280 px, 30 fps, 10-second GIF of phone footage can easily pass 100 MB.
Colours are blotchy or banded. The converter used a generic palette. Use one that builds a palette per clip, as the online converter and the FFmpeg command above do.
It looks choppy. Raise the frame rate to 15, and lower the width to pay for it.
Colours shimmer or flicker between frames. That's dithering on grainy footage. Try Bayer dithering or a smaller width, or accept that noisy video makes poor GIFs.
It doesn't loop. Check the loop setting (0 = forever). If it loops on your computer but not in an app, the app is ignoring the setting.
There's no sound. GIF can't carry audio. If sound matters, send the video, or add captions to the frames before converting.
Summary
A good video-to-GIF conversion is mostly arithmetic. Frames per second and width set the size, length multiplies it, and a palette built for the clip keeps it looking right. Start at 10 fps and 480 px, cut to a few seconds, and only go up when the result needs it. The MP4 to GIF converter uses exactly those defaults.
Related Tools
- MP4 to GIF: trim, set frame rate and width, get a looping GIF
- MOV to GIF: iPhone and Mac videos to GIF
- WebM to GIF: browser recordings to GIF
- GIF to MP4: turn a heavy GIF into a small video
- Compress Image: reduce colours in an existing GIF