Skip to content

Convert MP4 to GIF, free, in your browser

To convert an MP4 to a GIF, frames are taken from the video at a steady rate and saved as an animation of up to 256 colours with no sound. Drop the MP4 below, choose the start, the length, the width and the frames per second, and download the GIF. Short clips work best: a 5-second clip at 480 pixels and 12 frames per second is typically a few megabytes.

A19Convert MP4 to GIF — TabbyTools
Ready0 B sent to server

Your files never leave your device. Processing happens in your browser. How that works.

Presets

How it works

  1. Drop a video onto the tool.
  2. Set the start time and the length of the part you want.
  3. Choose a width and smoothness. Smaller and fewer frames per second mean a smaller file.
  4. Download the GIF. If it is too large for where it is going, run it through the GIF compressor.

Runs as JavaScript inside this tab. Turn off your connection after the page loads and it still works.

GIF size: what each setting costs

Why GIFs get big

A GIF stores every frame as an image with at most 256 colours, using compression designed in 1987. A video stores the first frame and then mostly the differences. So the same clip is often ten times larger as a GIF than as an MP4.

Size grows with four things, roughly multiplied together:

Setting Effect on size Guide
Length Twice as long, twice as big 2–6 seconds for reactions, up to 10 for demos
Width Half the width, about a quarter of the size 320–480 px for chat, 640 px for documentation
Frames per second Half the rate, about half the size 10–15 for most clips
Colours 64 instead of 256 saves 20–40% Keep 256 for photos and gradients

Choosing settings

Use Width Rate Length
Chat reaction 320 px 12 fps 2–4 s
Tutorial or bug report 640 px 10 fps 5–15 s
Screen recording of an app 480–640 px 8–10 fps under 20 s
Fast action you want smooth 480 px 20–25 fps 2–5 s

How this tool keeps files down

  • Only changes are stored. A pixel that looks the same as in the previous frame is not saved again. A talking head or a screen recording, where most of the picture stays still, shrinks dramatically.
  • A palette per frame. Each frame’s colours are chosen from the pixels that changed, so a small moving object needs only a handful.
  • Repeated frames merge. If nothing moves for a moment, one frame is simply shown for longer.

Timing

GIF frame delays are counted in hundredths of a second, so most frame rates cannot be stored exactly: 12 fps would need 83.3 ms a frame. Rounding every frame to 80 ms would make the whole GIF play 4% fast. This tool alternates the delays instead (80, 90, 80, …) so that the GIF lasts exactly as long as the clip it was made from. 10 fps (100 ms) and 25 fps (40 ms) are exact. Browsers play anything under 20 ms at 100 ms, so 50 fps is the practical ceiling.

What a GIF cannot do

Limit Consequence
256 colours per frame Banding in skies and gradients
No sound Use MP4 if the audio matters
No partial transparency Edges are either solid or clear
Weak compression Large files

When to use a video instead

Most chat apps, forums and social sites accept MP4 and loop short ones automatically. An MP4 of the same clip is typically a tenth of the size and looks better. Make a GIF when the destination only takes images: README files, email, older forums, slide decks.

Worked examples

Two seconds of a test clip

A 160 × 120 video, 2 seconds, at 12 frames per second gives a GIF of 24 frames and about 13 KB. The clip has a still gradient background and one moving square, so after the first frame only the square is stored.

A middle section of a longer video

Set Start at to 0:05 and Length to 4. At 12 fps that is 48 frames taken from 5 to 9 seconds in.

The width setting never enlarges

With the width left at 480 px, a 160-pixel-wide clip stays at 160 × 120. An automated test checks this, and that the first frame’s corner colour survives the conversion.

A 1080p phone video for a chat

Choose 320 px and 12 fps and keep it under 4 seconds. A 1920 × 1080 source becomes 320 × 180.

A tutorial GIF for documentation

640 px at 10 fps keeps text readable. Screen recordings compress well because most of the screen does not change from frame to frame.

It came out too large

Shorten it first, then reduce the width, then the frame rate. If it must fit a specific limit, drop the result into the GIF compressor and type the limit.

A start time past the end

Typing 45 for a 30-second video gives “The start time is past the end of the video, which is 30.0 seconds long.”

Play once instead of looping

Untick Loop forever. The animation stops on its last frame.

Frequently asked questions

Why is my GIF so much bigger than the video?

GIF is a 1987 format that stores every frame as a picture with at most 256 colours and only simple compression, while video formats describe motion between frames very efficiently. A 2 MB video clip can easily become a 20 MB GIF. Keep GIFs short and small.

How do I make the GIF smaller?

In order of effect: shorten the clip, reduce the width, lower the frames per second, then reduce the colours. Halving the width roughly quarters the size. Afterwards the GIF compressor can bring it under a specific limit.

What frame rate should I use?

10 to 15 frames per second looks smooth for most clips. Use 20 or 25 for fast motion you want to keep fluid, and 8 for simple screen recordings where size matters most.

Does the GIF have sound?

No. The GIF format cannot carry audio. If you need sound, share the video as an MP4 instead; most chat apps loop short MP4s like GIFs.

How does it keep the file small?

Parts of the picture that do not change between frames are not stored again, and each frame gets its own palette built from the pixels that did change. A clip with a still background ends up far smaller than one where the whole picture moves.

Which browsers does it work in?

It uses the video and audio codecs built into your browser. Current Chrome, Edge and other Chromium browsers on a computer support everything here. Other browsers may lack a particular codec; when that happens the tool says which one, instead of failing silently.

Is my file uploaded?

No. The file is read and converted inside your browser, using your own device. Nothing is sent to a server, which is also why there is no upload wait and no file-size limit beyond your device’s memory.

Video → GIF · last updated · changelog · part of Canned Tuna