Free tool

MP4 to GIF Maker

Turn a few seconds of video into a GIF that loops on a page, in a chat or in a slide. Choose the clip, the width and the frame rate, and see the size before you download.

  • Private: nothing uploaded
  • Free
  • No sign-up

Runs in your browser. Your files never leave your device.

The clip is cut to 15 seconds or less. A GIF is large for its quality, so a short loop works best.

Conversions use FFmpeg (ffmpeg.org), compiled to WebAssembly by the ffmpeg.wasm project. Only the converter itself is downloaded. Your files stay in this tab.

How to use it

  1. Drop an MP4 clip into the box, or click to choose one.

  2. Set a start and an end time. Fifteen seconds is the most this tool will take.

  3. Pick a width and a frame rate. Smaller and fewer frames means a lighter file.

  4. Press Make GIF and watch the two passes: colors first, then the frames.

  5. Download the GIF, or lower the width if the file is over 10 MB.

About this tool

A GIF is a short animation that plays by itself in almost any chat window, forum or message. It needs no player and no play button, which is why it is still used forty years after the format was written. This page turns part of an MP4 into a GIF in your browser, with no watermark and no upload.

Short loops work well: a reaction, a few seconds of a game, a simple diagram, a progress animation in a slide deck. A GIF also starts on its own in places where a video would show a black rectangle until someone presses play, which matters in email and in older forums. If the clip needs sound, a GIF is the wrong choice, because the format has no audio at all.

Why GIF files are large

The format comes from 1987 and it was never designed for video. Each frame is limited to 256 colors, and the compressor works inside a single frame rather than across a sequence, so it cannot lean on the previous picture the way modern codecs do. Ten seconds at a reasonable size can easily be several megabytes, while the same clip as an MP4 is a fraction of that and looks better. The palette step here keeps colors closer than a naive conversion would.

Width and frame rate

480 pixels wide suits a chat or a blog post. 320 is lighter and still clear on a phone, and 640 suits a large display or a detailed scene. Frame rate works the same way: 10 frames per second looks choppy but stays tiny, 15 is the usual middle, and 20 is smoother and heavier. A clip at 320 pixels and 10 frames per second can be a tenth of the same clip at 640 and 20.

Where a GIF stops being a good idea

Many chat apps cap uploads at around 10 MB, and a longer or larger GIF passes that quickly. Discord and Slack both play an MP4 inline, so a compressed MP4 is often the smaller and better looking choice for anything longer than a few seconds. Use the video compressor when the clip is going into a conversation rather than onto a page. The tool warns you when a finished GIF is over 10 MB.

A clean loop

A loop looks best when the end matches the start. Choose a moment where the movement returns to where it began, such as the top of a wave or the end of a gesture, and keep the clip short. Starting and ending in the middle of a fast movement produces a jump on every repeat. Times are measured from the beginning of the video, so a clip from a two minute video might start at 1:20 and end at 1:26.

Two passes and a slow phone

The converter runs twice over the clip. The first pass studies the colors and writes a small palette file, and the second builds the frames with it. That extra step is what keeps a sunset from turning into bands, and it means the job takes roughly twice as long as a single pass. Long videos take a while: the work happens on your device, so a computer is faster than a phone. On a phone, a 15 second clip at 640 pixels can take a minute or more. Need only the sound? Use the MP4 to MP3 page, and for clips in other containers start with the video converter.

Questions

More video and audio tools