Skip to content
anyutil.io

How to make a GIF from a video that does not weigh 40 MB

Turning a video clip into a GIF is easy. Turning it into a small, smooth GIF takes three decisions: length, size and frame rate. Here is how to get all three right.

· 2 min read

You have the perfect three seconds of video: the cat's jump, the bug in your app, the goal. You want it as a GIF because GIFs play everywhere, instantly, with no play button and no sound; they paste into chats, tickets, documentation and readmes and just work.

Then you convert it and the file is 40 MB, chat refuses it, and the motion is a slideshow. GIF is a thirty-year-old format with no real video compression, which makes it wonderfully compatible and shockingly inefficient. Making a good one is about respecting that.

The three decisions that set the file size

GIF size is roughly length times dimensions times frame rate. All three are under your control:

  • Length. The single biggest factor. A GIF is a punchline, not a film; two to four seconds is the sweet spot, and almost nothing needs more than six.
  • Dimensions. Nobody watches a GIF fullscreen. 480 pixels wide is plenty for chat and social; 320 works fine for a reaction. Halving the width quarters the file.
  • Frame rate. Film runs at 24 fps, but GIFs live happily at 10 to 15. Motion stays readable and the file drops by half or more.

A three-second, 480-pixel, 12 fps GIF lands in the low single megabytes, small enough for anywhere, and looks intentional rather than compressed.

Making the GIF

  1. Open Video to GIF and drop your video in.
  2. Pick the start and end of the section you want; keep it short.
  3. Choose the output width and frame rate, using the numbers above as a guide.
  4. Convert, preview, download.

Conversion runs in your browser through ffmpeg; the video never leaves your computer. If the source clip is long and unwieldy, Trim video first and feed the converter only the seconds you need.

When a GIF is the wrong answer

Honesty compels: if your clip is longer than ten seconds, needs sound, or must look sharp, you do not want a GIF, you want a small MP4. Modern chat apps autoplay muted MP4s just like GIFs, at a tenth of the size. Run the clip through Compress video and share that instead. The GIF's territory is short, silent, endlessly looping, universally embeddable, and inside that territory it remains unbeaten.

Frequently asked questions

Why is my GIF so huge?

Because GIF stores every frame almost like a separate image, with no modern video compression. Cut the length, shrink the dimensions and lower the frame rate; each of the three multiplies against the others.

What frame rate should a GIF have?

10 to 15 frames per second suits nearly everything. Below 8 the motion turns into a slideshow; above 15 the file grows for little visible gain.

Does the conversion upload my video?

No. It runs in your browser through ffmpeg, and the file stays on your device.

Why do the colours look worse than the video?

GIF is limited to 256 colours per frame, so smooth gradients, sunsets and shadows band visibly. Screen recordings and well-lit clips survive the palette much better than moody footage.

GIF or MP4 for sharing a clip?

Under five seconds, silent, meant to loop: GIF. Anything longer, with sound, or where quality matters: a compressed MP4, which every modern platform autoplays anyway.

Tools from the article

Back to all articles