How to make a GIF from a video

To make a GIF from a video, pick a short part of the clip, usually 2 to 6 seconds, and convert it at a reduced width and frame rate, for example 480 pixels at 12 frames per second, which keeps the GIF smooth and small. The GIF maker on this page does that in your browser from MP4, MOV, WebM or MKV files. Below you will find the settings that control size, why GIFs get so big, and when a looping MP4 is the better choice.

5 min read

The short answer

Open the video in the GIF maker below. Drag the handles to the moment you want, or pause the preview and click Current frame next to Start and End, and check it with Play selection. Choose a Width (480 px is a good default) and Frames per second (12 is a good default), then click Make GIF. The GIF appears with its size and number of frames, and Download saves it.

You can select up to 30 seconds, but the best GIFs are much shorter. The tool shows how many frames your selection will produce before you start, which is the quickest way to judge the size.

Try it here: MP4 to GIF

Open the full tool page

Why GIFs get so big

GIF is a format from 1987. It stores every frame as a full image with at most 256 colors and compresses it with a simple method that works well for flat areas and poorly for photos and camera noise. A video codec like H.264, by contrast, predicts motion between frames and stores only the difference. That is why a few seconds of camera footage can be 20 times larger as a GIF than as an MP4.

Three things decide the size: the number of pixels per frame (width times height), the number of frames (length times frame rate) and how much changes between frames. This GIF maker builds one shared color palette for the clip and writes only the pixels that change from frame to frame, which keeps files much smaller than a naive conversion, but the three basic factors still dominate.

  • Width: going from 640 to 480 pixels cuts the pixels per frame almost in half.
  • Frame rate: 12 instead of 20 frames per second means 40 percent fewer frames.
  • Length: every extra second adds the same amount again.
  • Content: static backgrounds and screen recordings compress far better than handheld camera footage.

Settings that keep the GIF small

Start with 480 pixels and 12 frames per second, then adjust. If the file is too big, lower the width first, because it reduces every frame; then lower the frame rate; shorten the clip last. Fast motion such as sports looks choppy at 8 frames per second, while talking heads and slow movements are fine at 8 to 12.

The table shows the frame size for 16:9 video; at 12 frames per second a 5 second clip has 60 frames at any width. Final file sizes vary a lot with the content: a 5 second screen recording at 480 pixels can stay well under 1 MB, while the same length of busy camera footage can reach several megabytes.

WidthFrame size (16:9)Pixels per frameGood for
240 px240 x 13532,400Tiny reactions, emoji like loops
320 px320 x 18057,600Chat messages, forum posts
480 px480 x 270129,600Most uses, documentation, email
640 px640 x 360230,400Screen recordings, product demos
800 px800 x 450360,000Large demos on desktop pages

Choosing the right moment

A GIF has no sound and loops forever, so pick a moment that makes sense without audio and ideally ends close to where it starts. For a reaction, 2 to 4 seconds is enough. For a software demo, show one action per GIF, for example clicking a button and the result appearing, rather than a whole workflow.

Use Play selection to watch the loop before making it. If the jump from the last frame back to the first is distracting, move the End point a fraction of a second until the two frames look similar. Avoid clips that flash brightly several times per second; rapid flashing is uncomfortable for many viewers and a risk for people with photosensitive epilepsy.

GIF or looping MP4?

On your own website, a short MP4 set to play muted in a loop is usually 5 to 10 times smaller than the same GIF and has full color. Several platforms, including X and many messengers, convert uploaded GIFs to video behind the scenes for that reason.

GIF is still the right choice where video does not autoplay or is not allowed: email newsletters, GitHub issues and pull requests, wikis, many forums and older chat tools, and slide decks that need a moving image without a player. In email, keep the key message in the first frame, because some desktop versions of Outlook show only that frame.

WhereBetter choiceWhy
Your own web pageLooping MP4Much smaller, full color
Email newsletterGIFVideo does not play in most email apps
Bug reports and documentationGIFDisplays inline as an image
Chat appsEitherMany convert GIFs to video anyway
PresentationsGIFPlays like a picture, no player needed

Common problems and fixes

  • The GIF is too large: lower Width first, then Frames per second, then shorten the selection.
  • Colors look banded or speckled: GIF only has 256 colors. Clips with smooth gradients, such as skies, suffer most; choose a scene with fewer gradients or accept a slightly grainy look.
  • The GIF looks jerky: raise Frames per second to 15 or 20 for fast motion, and compensate with a smaller width.
  • Your browser cannot read the video inside this file: try Chrome or Edge, or convert the video to MP4 first.
  • The GIF is the wrong shape: the tool keeps the video's proportions; crop the video in an editor first if you need a square or vertical GIF.

Step by step

  1. Open the videoDrop an MP4, MOV, WebM or MKV file on the GIF maker, or click Choose a video.
  2. Select the clipDrag the handles or use Current frame for Start and End. Up to 30 seconds can be selected.
  3. Set width and frame rateChoose a Width such as 480 px and Frames per second such as 12; the frame count updates as you change them.
  4. Make and downloadClick Make GIF, check the preview and its size, then click Download.

Frequently asked questions

What is the best frame rate for a GIF?

12 frames per second is a good balance between smoothness and size. Use 8 for slow scenes and 15 to 20 for fast motion, with a smaller width to compensate.

How long can a GIF be?

This tool allows up to 30 seconds, but 2 to 6 seconds gives the best results. Every second adds the same amount of data again.

How do I make a GIF smaller?

Reduce the width, then the frame rate, then the length. Going from 640 to 480 pixels and from 20 to 12 frames per second can cut the size by about two thirds.

Is my video uploaded to make the GIF?

No. The frames are read and the GIF is built in your browser, so the video stays on your device. It is free and adds no watermark.

Can a GIF have sound?

No. GIF is an image format without audio. If you need sound, share a short MP4 instead.

Can I make a GIF from a YouTube video?

Only from video files on your device. Use clips you recorded yourself or have permission to use.