Black Friday: 50% off every paid plan with code BF50. Ends 5 December.

See prices

Free tool

GIF to MP4 converter.

Turn an animated GIF into an MP4 video that is often far smaller, plays smoothly and is accepted where GIFs are not. Drop one GIF or many and the videos are ready at once, with the timing of every frame kept. It runs in your browser, so nothing is uploaded.

Need a custom tool, app or website? Contact us 

This runs in your browser. Your GIF is never uploaded.

How it works

Three steps, nothing to install.

01 / Drop

Choose GIFs

Drag in one GIF or many, or paste one. Each becomes an MP4 straight away.

02 / Pick

Change what you need

How many times it plays, the size, the frame rate and the quality. The video is made again after each change.

03 / Save

Download

Watch the MP4 in the page, then download it, or all of them in one ZIP.

Guide

How to convert a GIF to MP4, and keep its timing.

A GIF to MP4 converter turns an animated GIF into a normal video file that any phone, computer or video site can play. This one reads every frame of your GIF, builds each full picture from the frame patches, and encodes them as H.264 video, the most widely supported kind of MP4. Each frame keeps its own timing, and the work happens in your browser tab, so the GIF is not uploaded.

How to convert a GIF to MP4

  1. Drop one GIF or several on the box, click to choose them, or paste one. Each is turned into an MP4 at once with the standard settings.
  2. Watch the video in the page. It loops there so you can check it; the size before and after shows above the download.
  3. Change a setting if you need to: Play it, Size, Frame rate, Quality or Behind see-through parts. The video is made again a moment later.
  4. Click Download the MP4, or Download all as ZIP when you have several. Each file keeps its GIF's name with .mp4 on the end.

GIF vs MP4

Animated GIFMP4 (H.264)
ColoursUp to 256 per frameFull colour
TransparencyYes, on or off per pixelNo
LoopingBuilt into the fileSet by the player or the page
SoundNonePossible, but this tool makes a silent video
How it saves spaceEach frame packed on its ownStores what changes between frames

That last row is why an MP4 is often much smaller. A GIF stores every frame as its own picture. A video codec stores a full picture now and then, and in between only the parts that moved.

The settings

  • Play it: once, or 2, 3, 5 or 10 times. A GIF loops forever by itself, but an MP4 has no loop setting inside the file, so it plays once and stops unless the player repeats it. Repeat it for a slide in a presentation or a clip in an edit.
  • Size: the same as the GIF, twice as big with sharp pixels, or 720 or 1080 pixels wide with smooth scaling. Some sites and apps ask for videos bigger than a small GIF; twice as big keeps pixel art crisp.
  • Frame rate: the GIF's own frame times, or a steady 30 or 60 frames a second. Most players are happy with the GIF's own times. Pick a steady rate for video editors and sites that expect one; each frame then repeats for as long as it showed in the GIF.
  • Quality: Standard keeps the file small. High uses twice the data, which keeps fine edges and text sharper.
  • Behind see-through parts: MP4 has no transparency, so see-through pixels are filled with White or Black. Pick the colour closest to where the video will appear.

Your settings are kept in this browser for next time.

How long the video is

The video length is the GIF's length times the number of plays. Say your GIF has 60 frames at 50 milliseconds each. That is 60 times 0.05, or 3 seconds. Set Play it to 5 times and the MP4 runs for 15 seconds. Some GIFs use very short frame delays under 20 milliseconds. Browsers show those frames for 100 milliseconds, so the converter does too, which keeps the video at the same speed you see in the browser.

On your own website, you can loop the video for free instead. Use a video tag with the autoplay, muted, loop and playsinline attributes, and a single run of the animation is enough.

Several GIFs at once

Drop a batch, or press Add more GIFs. They are converted one by one with the same settings, and the list shows each GIF's size before and after. Click a row to watch that video, use its arrow to save only that one, or download them all in one ZIP.

Common problems and fixes

  • "This browser cannot make H.264 video." Open the page in a current Chrome, Edge or Safari and try again.
  • The MP4 is bigger than the GIF. This can happen with small, simple GIFs. The encoder aims for at least 800 kilobits a second, 1,600 on High, and a tiny GIF with few colours can be smaller than that. Use Quality: Standard, play it once, or run it through the video compressor.
  • A thin line on one edge. H.264 needs an even width and height. A GIF that is 401 by 301 pixels becomes 402 by 302, with a one-pixel strip of the background colour.
  • Colours look a touch softer. H.264 stores colour at a lower detail than brightness, so sharp red or blue edges in pixel art can blur slightly. Twice as big and Quality: High help.
  • No sound. GIFs have no audio, so the MP4 is silent. Add a track afterwards with add music to video.

Going the other way? Use MP4 to GIF to turn a clip back into an animation.

Questions

Good to know.

Is my GIF uploaded?

No. It is converted in this tab with your browser, so it never leaves your computer.

Why turn a GIF into an MP4?

An MP4 is usually much smaller than the same GIF and shows full colour, because a GIF keeps every frame as a picture with at most 256 colours. Many sites and apps also take MP4 where they do not take GIF.

Will it loop like the GIF?

An MP4 plays once unless the player loops it. Pick how many times to repeat it, or set your player or site to loop.

What happens to see-through parts?

MP4 has no transparency, so see-through parts get the background you pick, white or black.

Is the timing kept?

Yes. Each frame lasts as long as in the GIF. Like browsers, very short delays under 20 milliseconds are shown as 100 milliseconds.

Can I convert several GIFs at once?

Yes. Drop them together. Each becomes an MP4 with the same settings, and Download all as ZIP saves them in one file.

Can I make the video bigger than the GIF?

Yes. Set Size to Twice as big, which keeps hard pixel edges, or to 720 or 1080 px wide.

Can I get a steady frame rate?

Yes. Set Frame rate to Steady 30 or 60 frames a second. Each GIF frame then repeats for as long as it showed in the GIF.

Which browsers work?

Current Chrome, Edge and Safari, which can encode H.264 video.

Why is my MP4 bigger than the GIF?

Small GIFs with few colours can already be tiny, and the video is encoded with a minimum bitrate. The sizes before and after show above the download, so you can keep whichever file is smaller.

How do I make the MP4 loop on a website?

Add the loop attribute to the video tag, along with autoplay, muted and playsinline so it starts on its own on phones too. Then you only need one run of the animation in the file.

Can I add sound to the video?

Not in this tool, because a GIF has no audio to carry over. Download the MP4, then add music or a voice track in a video editor.

Will the MP4 play on an iPhone or Android phone?

Yes. H.264 in an MP4 file is one of the most widely supported video formats, and phones play it in their built-in apps.

Can a very small GIF become an MP4?

Yes, down to a single pixel. Video encoders refuse pictures smaller than about 16 pixels, so a tiny GIF is placed in the middle of a 16 pixel frame, with your background colour around it.

Listed on

Listed on JustMacAppsMotionShine on Mac App IndexMotionShine on ScrollLaunchMotionShine featured on StartupBaseFeatured on FazierFeatured on Twelve ToolsMotionShine - Featured on Smol Launch