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 pageWhy 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.
| Width | Frame size (16:9) | Pixels per frame | Good for |
|---|---|---|---|
| 240 px | 240 x 135 | 32,400 | Tiny reactions, emoji like loops |
| 320 px | 320 x 180 | 57,600 | Chat messages, forum posts |
| 480 px | 480 x 270 | 129,600 | Most uses, documentation, email |
| 640 px | 640 x 360 | 230,400 | Screen recordings, product demos |
| 800 px | 800 x 450 | 360,000 | Large 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.
| Where | Better choice | Why |
|---|---|---|
| Your own web page | Looping MP4 | Much smaller, full color |
| Email newsletter | GIF | Video does not play in most email apps |
| Bug reports and documentation | GIF | Displays inline as an image |
| Chat apps | Either | Many convert GIFs to video anyway |
| Presentations | GIF | Plays 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.