GIF to MP4.
Same frames, same speed.

Convert GIF to MP4 in your browser: every frame is drawn as browsers show it and keeps its own timing, see-through parts take the background color you pick, and you get an H.264 video for apps and sites that take video but not GIFs. Free, no account, nothing uploaded.

Drop a GIF

An animated GIF up to 100 MB. It comes back as an MP4 video that plays at the same speed.

or drop it anywhere in this box

Nothing is uploaded: everything happens on this device

Video read and written with Mediabunny, open-source software under the MPL-2.0 licence.

How it works

How to convert GIF to MP4

Three steps, all in your browser.

  1. Choose the GIF

    Press Choose GIF and pick the GIF to convert to MP4, or drop it on the box. GIFs up to 100 MB work.

  2. Pick the background and the repeats

    If the GIF has see-through parts, choose the Background they take: White, Black or Other color. Under Plays, choose how many times the MP4 plays the animation.

  3. Convert and download

    Press Convert to MP4. The page shows the GIF's size and the MP4's, and plays the MP4: press Download MP4 to save it.

Why people convert

The same animation, as a video

Posting where GIFs are refused

Apps and sites that take videos but not GIF files take the MP4.

Lighter web pages

An MP4 in a video player loads far less than the same animation as a GIF.

Video editors and slides

Drop the animation into a video timeline or a slide as an ordinary video.

Sending a large GIF

Our 3.1 MB GIF of grazing horses became a 92 kB MP4, small enough for any message.

GIF to MP4, explained

What changes when a GIF becomes an MP4, and what stays

How to convert GIF to MP4

Drop the GIF on this page or press Choose GIF. The page reads it on your device and shows its size, its frames and how long it plays. If it has see-through parts, choose the Background color they take; under Plays, choose how many times the MP4 plays the animation.

Press Convert to MP4. Each frame is drawn the way a browser shows it and encoded as H.264 by your browser, in an MP4 file with no sound. The page shows both sizes and plays the MP4; Download MP4 saves it.

Why the MP4 is so much smaller

A GIF stores every frame on its own, in at most 256 colors. H.264 predicts each frame from the one before and stores only how it differs, so a video-like GIF shrinks the most: our 3.1 MB GIF of grazing horses, cut from a video, became a 92 kB MP4, 97% smaller.

GIFs that already change little shrink less: our screen recording GIF went from 171 kB to 95 kB, 45% smaller. A tiny GIF can come out larger, because an MP4 has a minimum it needs: our 6 kB sticker became an 8 kB MP4, and the page says so.

Same frames, same timing

Each frame of the GIF becomes one frame of the MP4 and stays on screen as long as in the GIF: a frame of 3 hundredths of a second stays 3, a pause of half a second stays half a second. A frame the GIF gives 0 or 1 hundredths is shown for a tenth of a second, as browsers do, so the MP4 plays at the speed you see on the web.

GIFs often store only the part of a frame that changed, and say how to clear it afterwards. The page draws every frame on top of the last, following those instructions, so the MP4 shows whole pictures: our sticker stored both ways made the same video.

Transparent GIFs: choosing the background

An MP4 has no see-through pixels. When the GIF has them, the page asks which color they take: White, Black, or any color under Other color. Choose the color of the page or the slide the video goes on, and the edges blend in.

A GIF with no see-through parts shows no Background choice: its colors go into the MP4 as they are.

Looping: GIF vs MP4

A GIF can loop by itself; an MP4 plays once, unless the player loops it. Many apps and sites loop short videos, but where yours does not, choose Plays: the MP4 then holds the animation 2, 3, 5 or 10 times in a row.

Each repeat adds its frames to the file, so the MP4 grows with the count: our sticker played 3 times came to 23 kB.

Odd sizes are padded, not stretched

H.264 video needs an even width and height. A GIF with an odd side gains one row or column of pixels copied from its edge, so nothing is stretched and no line of another color appears: our 337 × 193 GIF became a 338 × 194 MP4.

A very small GIF that a browser's encoder turns down at its own size is scaled up by 2, 4 or 8, each GIF pixel becoming a sharp square.

GIF to video: which browsers can do it

The MP4 is encoded by your browser's own H.264 encoder. Chrome and Edge have one, and so do Safari 16.4 or later and Firefox 130 or later on a computer. If a browser has none, the page says so.

GIFs of up to 100 MB and up to 4,096 pixels wide and tall convert. It takes seconds: our 57-frame GIF of horses took about a second and a half.

The words that go with it

An animation usually goes with a message: a post, a slide, a reply. Laxis Voice Keyboard types what you say into any app on Mac, Windows, iPhone and Android, adds punctuation and removes filler words, so the message can be said rather than typed. It is free to start.

GIF and MP4 sizes, measured

Six GIFs converted with this page, each played once, with a white background. Sizes as the page shows them, 1 MB being 1,000,000 bytes.

GIFGIF sizeMP4 sizeChange
Grazing horses, cut from a video, 402 × 280, 57 frames3.1 MB92 kB97% smaller
Reaction GIF, 337 × 193, 27 frames585 kB28 kB95% smaller
Phone video made into a GIF here, 480 × 270, 60 frames1.8 MB111 kB94% smaller
Screen recording made into a GIF here, 640 × 360, 31 frames171 kB95 kB45% smaller
Dog at a laptop, 500 × 362, 4 frames78 kB65 kB16% smaller
Sticker on a transparent background, 241 × 171, 12 frames6 kB8 kB34% larger

The MP4s are H.264 in standard video colors (BT.709), with no sound. The more a GIF looks like video, the more it shrinks.

Questions

How do I convert GIF to MP4?

Drop the GIF on this page or press Choose GIF, pick a Background if it has see-through parts, then press Convert to MP4 and Download MP4. Nothing is uploaded.

Will the MP4 play at the same speed as the GIF?

Yes. Each frame stays on screen as long as the GIF says, and a frame the GIF gives 0 or 1 hundredths of a second shows for a tenth, as in browsers.

How much smaller is the MP4?

It depends on the GIF. GIFs cut from video shrink the most: in our tests, 94% to 97%. A screen recording GIF shrank 45%, and a tiny sticker came out larger; the page shows both sizes before you download.

What happens to a transparent background?

An MP4 can't be see-through, so those parts take the Background color you choose: White, Black or any other color. The choice appears only for GIFs that have see-through parts.

Can the MP4 loop like the GIF?

An MP4 plays once unless the player loops it. Under Plays, choose 2, 3, 5 or 10 times and the MP4 holds the animation that many times in a row.

Does the MP4 have sound?

No. A GIF has no sound, so the MP4 holds only the picture, as H.264 video.

Why is my MP4 larger than the GIF?

A very small or very short GIF has little to gain: a video file needs a few kilobytes whatever it holds. Our 6 kB sticker became an 8 kB MP4. Keep the GIF where file size is what matters.

Is my GIF uploaded?

No. The GIF is read and the MP4 is made in your browser, on your own device. Nothing is sent to or stored by Laxis.

Is this GIF to MP4 converter free?

Yes, with no account, no watermark and no daily limit, for GIFs up to 100 MB.

Posting the animation with a message?

Say the message instead of typing it. Laxis Voice Keyboard types what you say into any app on Mac, Windows, iPhone and Android, adds punctuation and removes filler words. Free to start.

Create a free account
Free to start · No credit card required