MP4toGIF

Convert MP4 to GIF

Up to 100 files at once. Mixed formats are fine.

Converting MP4 to GIF gives you a silent looping animation you can paste where video is not accepted — at a real cost, because a GIF stores every frame in full and is routinely ten times larger than the MP4 it came from. Drop the file above and it converts inside your own browser. The defaults trim to ten seconds at 480 pixels and twelve frames a second for exactly that reason.

Read this before converting a long clip

GIF has no motion compensation. Video formats work by storing one complete frame and then, for every frame after it, only the difference — which is why a two-minute talking-head video with a static background can be a few megabytes. GIF stores each frame as an entire picture, one after another, forever.

The consequence is a size curve that catches people out. Ten seconds of ordinary footage as a GIF is comfortably larger than the whole MP4 it came from, often by a factor of ten or twenty. There is no setting that fixes this and no converter that avoids it; it is the format, unchanged since 1989. What can be done is to give it less to store, which is what the three settings under the result are for.

What each setting costs, with numbers

Length, width and frame rate each multiply the size almost directly, and they are worth understanding because the defaults are conservative on purpose. Frame rate is linear: doubling from twelve to twenty-four roughly doubles the file, because it doubles the number of complete images. Width is quadratic: halving it quarters the size, because area scales with the square of the edge.

Measured on the same clip while building this page: 320 pixels wide at 8 frames a second produced 209 KB, while 640 pixels at 20 frames a second produced 781 KB — and the second of those was from *two* seconds of footage against three. That is the whole lesson in one comparison: a shorter clip at a higher setting can easily be larger than a longer one at a sensible setting.

When you should not be making a GIF

If the place you are pasting this accepts video, paste video. Every major platform has for years — Twitter and Reddit convert uploaded GIFs to video silently, because they are paying for the bandwidth. A WebM of the same animation is dramatically smaller and looks better: converting a 448 KB GIF back to WebM in our own testing produced 19 KB. Four per cent, playing identically.

GIF earns its place where nothing else is accepted: an older forum, a wiki, a company intranet, an email signature, a documentation generator, a chat platform that treats GIF specially. If your destination is one of those, this is the right conversion and the settings below are how to make it fit. If it is not, convert the MP4 to WebM instead and save yourself the size and the banding.

Why it looks grainier than the video

A GIF frame can contain at most 256 distinct colours, and video frames routinely contain tens of thousands. Every frame therefore has to be reduced, and how visible that is depends entirely on the footage. A screen recording of an interface — flat panels, solid text, few colours — comes through almost untouched, which is why software demos are the one case where GIF still genuinely works.

Real footage does not fare as well. Skin tones, skies and any gradual shift of light break into visible bands. Each frame here is given its own palette rather than sharing one across the clip, which is the better of the two approaches and matters most when the scene changes: a single shared palette leaves everything after a cut rendered in the previous scene’s colours.

Frames, colours and quantisation happen on your machine

Your browser already decodes MP4 — it does it on every site that plays video. This page uses that decoder, samples the frames it wants, reduces each one to a palette and writes the GIF, all in the tab you have open. Nothing is uploaded and no account is involved.

That is worth pointing out here because GIF making is one of the most upload-hungry corners of the internet: running ffmpeg on a server is simply easier than doing this properly in a browser, so nearly everyone does. You can check which kind of site you are on in ten seconds — open your developer tools, watch the network tab, convert something, and see whether your video goes anywhere.

How to turn a video into a GIF

  1. Drop your MP4 onto this page, or click to choose one.
  2. The frames are decoded, reduced to a palette and written as a GIF, in your browser.
  3. Download it, or set the length, width and frame rate under the result and convert again.

MP4 vs GIF: why the smaller file becomes the bigger one

MP4 compared with GIF
MP4GIF
Full nameMPEG-4 VideoGraphics Interchange Format
File extension.mp4.gif
Media typevideo/mp4image/gif
CompressionLossy — file size is bought with qualityLossless — nothing is discarded
Quality
Some quality is given up for a smaller file. At the default setting the difference is hard to see.
Where it runs
This conversion runs inside your browser. Your file is never uploaded, and it works with the network disconnected.
What can be lost
A GIF stores every frame in full with at most 256 colours and no motion compensation, so it is many times larger than the video it came from. The defaults trim the clip to ten seconds at 480 pixels and twelve frames a second for that reason. Sound is lost — GIF has no audio.

MP4 to GIF: common questions

Why is the GIF so much bigger than the video?
Because GIF stores every frame as a complete picture. Video formats store one frame and then only what changed — a talking head against a still background costs almost nothing after the first frame. GIF has no such mechanism, so ten seconds is ten seconds’ worth of complete images, and it is routinely ten to twenty times the size of the MP4 it came from. That is the format, not the converter.
How long a clip can I convert?
The default is the first ten seconds, and that default is doing real work. Every extra second is another twelve full frames. You can raise it to sixty in the settings, but check the resulting size before you rely on it — a sixty-second GIF at a readable width is usually tens of megabytes and will be rejected by whatever you are trying to paste it into.
Is there sound?
No. GIF has no audio at all — the format has nowhere to put it. If the sound matters, you do not want a GIF; convert to WebM or MP4, or extract the audio separately as an MP3.
What do the settings actually change?
Length, width and frames per second, and each one multiplies the file size almost directly. Doubling the frame rate roughly doubles the size, because it doubles the number of complete images. Halving the width quarters it, because area scales with the square. In our own testing the same clip came out at 209 KB at 320 pixels and 8 frames a second, and 781 KB at 640 pixels and 20 — from two seconds of footage rather than three.
Is my video uploaded?
No. The video is decoded and every frame quantised and encoded inside your browser, so the file never leaves your device. This is unusual for this conversion in particular — GIF making is one of the most upload-hungry corners of the internet, because doing it on a server is easier than doing it properly in a browser.
Why does the GIF look grainy compared to the video?
Because each frame is reduced to at most 256 colours. On a screen recording of an interface this is nearly invisible; on real footage with skin tones, skies or gradients it shows as banding and dithering. Every frame here gets its own palette, which is the best available answer, but the 256-colour ceiling belongs to the format and no encoder gets past it.