Video to GIF: The Settings That Decide Size and Quality

By FileConvertLab

Published: | Updated:

Video to GIF conversion showing video clip transforming into animated GIF with loop indicator
Illustration showing video file being converted to animated GIF format with motion indicators and social media sharing options

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

  1. 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
  2. Upload the video
  3. 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)
  4. 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)CleanGrainyUI
5 fps—4.4 MB0.44 MB
10 fps1.50 MB8.8 MB0.86 MB
15 fps2.28 MB13.2 MB1.24 MB
24 fps3.80 MB21.1 MB1.94 MB
30 fps—26.4 MB2.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)CleanGrainyUI
320 px0.78 MB3.8 MB0.46 MB
480 px1.50 MB8.8 MB0.86 MB
640 px2.51 MB16.1 MB1.35 MB
800 px3.59 MB25.5 MB2.05 MB
1280 px—66.5 MB4.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 seconds
  • fps=10: drop to 10 frames per second
  • scale=480:-1:flags=lanczos: 480 px wide, height automatic, sharp downscaling
  • palettegen / paletteuse: build a palette from this clip, then apply it
  • Add :dither=bayer:bayer_scale=3 after paletteuse for 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:

  1. Cut it shorter. Size scales directly with length
  2. Lower the frame rate. 15 → 10 fps saves about a third
  3. Lower the width. 480 → 320 px roughly halves it
  4. Start from cleaner footage. Grain alone made the file almost six times larger
  5. 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

Frequently Asked Questions

What is the best frame rate for a GIF?

10 to 12 fps for reactions and most clips, 15 fps for smooth demos and cursor movement. File size grows almost exactly with frame rate: in our tests 15 fps was about 50% larger than 10 fps, and 30 fps three times larger.

What size should a GIF be?

320 to 480 pixels wide for chat apps and comments, 600 to 800 pixels for a web page. Size grows with the area, so doubling the width made our test GIFs three to four times larger.

Why is my GIF so large?

Usually a combination of high frame rate, large width, long duration and grainy footage. Grain alone made our test GIF almost six times larger at the same settings. Cut the clip, drop to 10 fps and 480 pixels, and it shrinks dramatically.

Why does my GIF look blotchy or banded?

GIF allows only 256 colours per frame. Converters that use a generic palette waste most of them on colours your clip doesn't contain. A palette generated from the clip itself, which is what our converter uses, keeps skin tones and gradients much smoother.

How long should a GIF be?

Two to four seconds for reactions, three to six for showing a single action. Size scales directly with length, so a 3-second GIF is half the size of a 6-second one. Beyond about ten seconds, a video is the better format.

How do I make a GIF loop forever or play only once?

The loop count is stored in the file: 0 means loop forever, which is the default. In FFmpeg, set the loop option to 0 to loop forever or to -1 to play once. Browsers honour it; some chat apps loop everything regardless.

Does a GIF keep the sound from my video?

No. GIF is an image format and cannot carry audio, so the sound is dropped during conversion. If the audio matters, share the video itself or add captions.

Is a GIF smaller than a video?

Almost never. In our tests an MP4 of the same clip was 14 times smaller than the GIF, even at triple the frame rate. Use GIF where video won't play, such as email, and a short looping video everywhere else.