GIF to Video
Convert an animated GIF to MP4 or WebM. Video output can be smaller than the original GIF, depending on its content and settings.
Technical log
About GIF to Video
GIF to Video turns an animated GIF into an MP4 or WebM video. Videos are often much smaller than GIFs and are accepted by apps that refuse GIF uploads.
Your video stays on your device
The video engine runs inside this page, so your file is processed in your browser and never uploaded. Large videos need memory and time; keep the tab open until it finishes.
MP4 or WebM?
MP4 (H.264) plays on phones, browsers, social sites and editors. WebM (VP8) suits websites, though it is not always smaller.
Repeats
Videos do not loop forever by themselves like a GIF, so set how many times the animation repeats. More repeats make a bigger file.
Size and frame rate
Kept from the GIF; odd dimensions are adjusted by one pixel because H.264 needs even sizes.
Not always smaller
A tiny or simple GIF can come out bigger as a video. Check the size before replacing it.
How to use GIF to Video
- Choose an animated GIF.
- Pick MP4 (H.264) or WebM (VP8).
- Set how many times the animation should repeat; the page shows the video length.
- Press Convert to video and download the file.
Related guide: How to Convert Video to GIF or MP3 (and Keep the File Small)
Help & FAQ
How do we convert a GIF to MP4?
Choose the GIF, leave the format on MP4 (H.264), set the repeats and press Convert to video. In our test a 48.7 KB GIF became a 15.7 KB MP4 with the same 200 x 150 size and 10 fps.
Why is the video smaller than the GIF?
Many video codecs store predicted frames and differences instead of every frame in full, which compresses better than GIF. Our MP4 was 68% smaller. This depends on the picture; a very detailed or noisy animation compresses less.
Can the video be larger than the GIF?
Yes. Our WebM at three repeats was 101.7 KB against a 48.7 KB GIF, and the page showed a warning that the result is larger than the original. Try MP4 or fewer repeats.
Why must we choose how many times to repeat?
Videos have no endless loop built in. The repeat box makes the clip longer by playing the animation again. One repeat gave a 2.0 s video and three gave 6.0 s in our test.
How do we make the video loop on a website?
Keep one repeat and use the loop attribute of the HTML video element, or the loop setting of your player.
MP4 or WebM?
MP4 plays almost everywhere. WebM is useful when a site asks for it. In our test MP4 was smaller for the same GIF.
Does the video have sound?
No. A GIF has no audio, so the video has none either.
Will transparency be kept?
No. This tool's yuv420p output has no transparency, so a transparent GIF background will not survive. Some other video formats can carry alpha, but they are not used here. We did not test a transparent GIF.
Is our GIF uploaded?
In our test the network log showed no upload; ffmpeg ran in the browser. Normal page, analytics and advertising requests still happen.
Does it change the size or speed?
Not intentionally. Our 200 x 150, 10 fps GIF gave a 200 x 150, 10 fps video. A 201 x 151 GIF gave a 200 x 150 video because H.264 needs even dimensions.
Can we turn the video back into a GIF?
Use the video-to-GIF tool for a new GIF. It will not be identical to the original, because video compression has already changed the pictures.