Convert GIF to MP4

Converting GIF to MP4 keeps the same animation at a fraction of the size — in our own testing a 448 KB GIF became a 23 KB MP4, playing identically. Drop the file above and it converts inside your browser. This is what the big platforms already do to your GIFs behind the scenes, because they are the ones paying for the bandwidth.

  • Where it runs In your browser. The file is never uploaded.
  • Lossy Some detail is traded for size. MP4 cannot hold everything a GIF can.
  • File size limit Up to 100 MB per file, free, without an account.
  • Worth knowing The result has no sound, because a GIF has none to carry. Each frame keeps its own timing, so an animation with irregular delays plays at the speed it was authored at rather than an averaged one.

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

Why a video of the same animation is twenty times smaller

The whole difference is one idea: motion compensation. A video encoder stores one complete frame and then, for each frame after it, records only what changed. An animation of a logo moving across a static background costs almost nothing after the first frame, because almost nothing is different.

GIF has no such mechanism. It stores every frame as a whole picture, one after another, with at most 256 colours each. That design is from 1989 and has never changed, which is why a five-second GIF can outweigh the minute-long video it was cut from. Converting does not compress the same file better — it stores the same animation in a fundamentally more efficient way.

The platforms already do this to you

Upload a GIF to Twitter, Reddit, Discord or most messaging apps and it does not stay a GIF. It is converted to video on arrival, silently, and served back as one. The little "GIF" label you see is a label; the file behind it is MP4.

They do this because bandwidth is their cost, not yours. Doing it yourself before uploading means you control the quality setting rather than accepting theirs, your page loads faster if you are hosting it, and you find out now rather than later whether the animation survives the conversion — which it does.

Making it behave like a GIF on a web page

A GIF autoplays, loops and has no controls, and people reasonably expect a replacement to do the same. A video element does all of it, but only if you ask: `autoplay`, `loop`, `muted` and `playsinline`. The muted attribute is the one that catches people out — every browser refuses to autoplay video with sound, and a GIF replacement has no sound anyway, so there is nothing lost by declaring it.

Without `playsinline`, iOS opens the video full screen instead of playing it in place, which is the other common surprise. With all four, the result is indistinguishable from a GIF except that the page loads faster.

What the conversion cannot fix

The colours were already reduced. A GIF holds at most 256 per frame, and whatever banding that caused is baked into the frames the encoder receives. The MP4 stores them faithfully and does not add a palette of its own, so the animation does not get worse — but it does not get back what the GIF discarded when it was made.

If you have the original video that the GIF was cut from, converting that directly will always look better than converting the GIF. This page is for the common case where the GIF is all you have.

What to expect from the file size

Ten to thirty times smaller is the ordinary range, and it widens the more static the animation is. A screen recording of a menu opening — mostly unchanged pixels — can be fifty times smaller. A burst of confetti where every pixel moves is nearer five.

The other saving is the one people forget: a GIF has to be downloaded in full before it plays properly, while a video starts on its first frames. On a phone, that is often the difference anyone actually notices.

Frame rate, and the odd rates GIFs use

A GIF sets a delay per frame in hundredths of a second, and nothing requires those delays to be equal. So GIFs routinely run at rates no camera ever produced — 12.5 frames a second, or a mixture of rates inside one file.

The conversion holds that timing rather than rounding it to something tidy, which keeps the animation running at the speed it was made to run at. If it looked right as a GIF, it looks right as an MP4.

Transparency does not survive, and what to do about it

A GIF can declare one colour transparent. MP4 has none at all, so those pixels have to become something, and here they become black: each frame is drawn onto a cleared canvas and a fully transparent pixel reaches the encoder as zero in all four channels. This pair offers no background colour to choose — the only control on it is quality.

For most GIFs that changes nothing, because most have an opaque background already. For a logo animation meant to sit on a coloured page it changes everything, and a black rectangle is rarely the colour anyone would have picked. If the transparency is the point, animated WebP keeps it and still plays in every browser.

Where an MP4 will not go

The honest limit on this conversion is that a few places still take only a GIF: some forums, older ticketing systems, certain email signatures, and any context where the thing has to be an image rather than an embedded player.

It is a shrinking list and worth checking rather than assuming. The major chat and social platforms all convert to video on upload anyway, so sending them a GIF only means they run this conversion instead of you.

Nothing is uploaded

The GIF is decoded and the video encoded inside your browser, using the machinery it already has for playing media. There is no server involved, no queue and no account.

That matters more than it sounds for this pair, because a great many GIFs are screen recordings — a bug being reproduced, a workflow being demonstrated — and a screen recording picks up whatever else happened to be on the screen.

How to turn a GIF into an MP4

  1. Drop your GIF onto this page, or click to choose one.
  2. Every frame is read and re-encoded as video, in your browser.
  3. Download the MP4, or raise the quality under the result if the edges look soft.

GIF vs MP4: complete frames against differences

GIF compared with MP4
GIFMP4
Full nameGraphics Interchange FormatMPEG-4 Video
File extension.gif.mp4
Media typeimage/gifvideo/mp4
CompressionLossless — nothing is discardedLossy — file size is bought with quality
First published19872001
Published byCompuServeMPEG
SpecificationGIF89aISO/IEC 14496-14
LicensingOpen standardOpen standard
Standing todayLegacy, still read everywhereCurrent
Bit depth8
Colour it can describeindexed palette
Largest image65,535 px per side
Opens in a browserEvery browserEvery browser
Considered insteadWebPWebM, MKV, MOV

Opening the result

MP4 is a container rather than a single format. What actually plays is the codec inside it — usually H.264, HEVC and AV1 — which is why two files with the same extension can behave differently on the same device.

GIF dates from 1987 and is largely superseded. MP4 is what current software writes, so the conversion is as much about staying readable as about the file itself.

The usual programs do not overlap: GIF opens in GIMP, Adobe Photoshop and ImageMagick, MP4 in VLC, HandBrake and Adobe Premiere Pro — so whoever receives the result needs something from the second list.

What each format is for

GIF is CompuServe's format, published in 1987. It records 8 bits per channel.

MP4 comes from MPEG and dates from 2001, specified as ISO/IEC 14496-14. VLC, HandBrake and Adobe Premiere Pro all read it.

GIF to MP4: common questions

How much smaller will the MP4 be?

Dramatically. In our own testing a 448 KB GIF became 19 KB as WebM and 23 KB as MP4 — around five per cent, playing identically. The gap is that large because GIF stores every frame as a complete picture while video stores one frame and then only what changed. On footage with a static background the difference is even greater.

Will it still autoplay and loop like a GIF?

Yes, if you tell it to. In HTML that means `autoplay`, `loop`, `muted` and `playsinline` on the video element — the muted attribute is the one people forget, and browsers refuse to autoplay without it. Chat platforms and social networks handle this themselves; most of them already convert your GIF to video behind the scenes.

Does the animation lose quality?

It usually gains some. A GIF has already been crushed to 256 colours per frame, and the video encoder is working from that — it cannot restore what was lost, but it also does not impose a palette of its own, so the banding does not get worse. What you may notice is a little softening on very hard edges, which the quality setting under the result addresses.

Is there sound?

No. A GIF has no audio to carry over, so the MP4 is silent. That is worth knowing if you are uploading somewhere that expects video with sound, and it is not something a converter can invent.

MP4 or WebM?

MP4 if it is going anywhere general — every device, browser and platform made in twenty years plays it. WebM if it is going onto a web page you control and you want the smallest possible file; in our testing it was about twenty per cent smaller again. Serving both and letting the browser choose is the ideal, and MP4 alone is the safe answer.

Is the GIF uploaded?

No. The frames are read with the browser’s own image decoder and encoded with its own video encoder, so the file stays on your device. There is no account and no daily allowance; a batch takes a hundred files, each up to 100 MB.

More about these formats

Where these figures come from

The claims this page makes about GIF and MP4 are checkable, and these are the documents that settle them.