Skip to content
Azpy

2026-10-26 · 4 min read

How to Convert Video to GIF (and Keep the File Small)

Turn an MP4, MOV or WebM clip into a GIF in a few steps, learn why GIFs get huge, and see when MP4, WebM or animated WebP is the better choice.

gifvideomp4

A short looping clip that plays everywhere, with no play button and no sound, is exactly what a GIF is good at. The catch is that converting a video to GIF can turn a 500 KB clip into a 20 MB file if you are not careful. This guide shows how to make the conversion, why the size explodes and how to keep it under control.

The short answer

Pick a converter that matches your source format, upload the clip and download the GIF:

  • MP4 to GIF for clips from phones, screen recorders and most cameras.
  • MOV to GIF for QuickTime recordings from iPhone and Mac.
  • WebM to GIF for browser screen captures and web-native video.

Video conversion is heavier than image conversion, so these tools may process your file on the server. Avoid sending footage you would not want to share.

Why GIFs get so big

A GIF is a very old format, and two of its design limits explain most of the size problem.

  • Only 256 colors per image. Video is smooth and has millions of colors. A GIF has to squeeze each frame into a palette of at most 256, which forces dithering (a speckle pattern that imitates missing colors). Dithering looks like noise, and noise does not compress well.
  • No real inter-frame compression. MP4 and WebM store mostly the differences between frames: if the background does not move, it is stored once. A GIF mostly stores each frame as a separate picture, with only limited tricks for unchanged areas. Ten seconds at 30 frames per second is 300 pictures.

So the size of a GIF grows with frames x pixels per frame. Reduce either, and the file shrinks fast.

Step by step

  1. Trim the clip first. Keep only the part that matters, ideally 2 to 6 seconds. Cutting duration is the single most effective way to shrink a GIF.
  2. Open the right converter from the list above and add your file.
  3. Lower the frame rate. Source video is usually 24 to 60 fps. For GIFs, 10 to 15 fps is enough for most reactions, UI demos and product loops.
  4. Reduce the width. Around 480 px wide is a good default for chat, docs and social posts. Halving the width removes about three quarters of the pixels.
  5. Convert and check the result. If it is still too big, shorten the clip or drop to a smaller width before touching anything else.
  6. Make it loop cleanly. If the start and end frames look alike, the loop feels seamless. Otherwise consider trimming to a natural repeat point.

Tips and pitfalls

  • Simple content compresses better. Screen recordings with flat colors and little motion make small GIFs. Film footage with gradients, grain and camera movement makes huge ones.
  • Do not upscale. A GIF wider than your source adds size and no detail.
  • Expect color shifts. Skies, skin tones and gradients show banding in a 256-color palette. That is a format limit, not a conversion bug.
  • Mind platform limits. Many chat apps, email clients and websites cap upload sizes for GIFs, often at a few megabytes. Test before you publish.
  • There is no sound. GIF cannot carry audio. If you need sound, you need a video format.

When not to use a GIF

Often the best answer is not a GIF at all.

  • MP4 or WebM. For anything longer than a few seconds, or anything on your own website, a short muted looping video is usually many times smaller than the equivalent GIF and looks better. Modern browsers autoplay and loop muted video fine. If you already have a GIF, GIF to MP4 converts it into a much lighter video.
  • Animated WebP. It supports far more than 256 colors and compresses frames efficiently, so it is typically much smaller than the same GIF while still working as an image. GIF to WebP converts an existing GIF. Check that the place you are posting to accepts WebP.
  • GIF. Keep it when you need maximum compatibility: email, older chat tools, forums and anywhere that only accepts an image that moves.

A rule of thumb

Ask where the clip will live. If it must work absolutely everywhere as an image, make a GIF and keep it short, small and at 10 to 15 fps. If you control the page, use MP4 or WebM. If you want an image that moves with better quality and size than GIF, try animated WebP. And in every case, trim first.

How to OCR a scanned PDF and get editable text

Turn a scanned PDF into searchable text with OCR, in your browser and without uploading the file. Steps, accuracy tips and what to proofread.

How to Convert Images to PDF: JPG, PNG and HEIC Photos

Turn JPG, PNG or iPhone HEIC photos into one PDF. Learn page size, orientation, quality versus file size, scanning tips and how to compress the result.

← Back to blog