Skip to content

GIF to MP4 converter

Convert a GIF to an MP4 that shows each picture for as long as the GIF did, free and without an account. Six test GIFs shrank to between 11% and 50% of their size, a 20 KB sticker grew, and a GIF with an odd width or height fails.

Choose a file or drag it here
MP4, AVI, MOV, FLV, MKV, WebM, 3GP, MPEG, MPG, GIF, WMV, TS (up to 500 MB)
Input
GIF files
输出
MP4, H.264 video
Limit
Up to 500 MB
Price
Free, no account

How to convert GIF to MP4

  1. 01

    Choose your GIF

    Drop it on the box. The limit is 500 MB.

  2. 02

    Check its size

    The table shows the GIF's frames and size, and warns if it will fail.

  3. 03

    Download the MP4

    The link lasts one day.

How much smaller is the MP4?

Five to nine times smaller for most GIFs we tried, and about half the size for GIFs drawn from a fixed palette.

A fixed palette, like the one this site's video to GIF converter uses, fills soft colours with a grid of dots. The MP4 keeps those dots, and they cost space. A GIF that is already tiny can grow: a 20 KB sticker of flat colour became a 33 KB MP4.

Four-stroke engine diagram, 154 × 334

GIF1.1 MBMP4163 KB

Newton's cradle, 480 × 360

GIF308 KBMP462 KB

Rotating Earth, 400 × 400

GIF1.0 MBMP4182 KB

Sintel clip, palette made from the clip

GIF5.1 MBMP4587 KB

Sintel clip, fixed palette

GIF2.9 MBMP41.2 MB

Tears of Steel clip, fixed palette

GIF2.0 MBMP4985 KB

GIFs from Wikimedia Commons: 4-Stroke-Engine by UtzOnBike, Newtons cradle animation book 2 by DemonDeLuxe and Rotating earth (large) by Marvel, CC BY-SA 3.0. Film clips: 10 seconds each, 480 pixels wide, Sintel and Tears of Steel © Blender Foundation, CC BY 3.0.

Will the MP4 play like the GIF?

It shows each picture for as long as the GIF did, but it plays once.

Every GIF we converted kept its length. A GIF that shows every frame for the same time keeps its frame count too. Newton's cradle holds some of its 36 frames longer than others, so its MP4 runs at 100 frames a second and repeats pictures to match: 82 frames, 0.82 seconds either way. An MP4 has no loop setting of its own. On a web page, the video tag loops it:

A looping MP4 on a web page

Plays like a GIF: on its own, silent, forever.

<video src="out.mp4" autoplay loop muted playsinline></video>

Why did my GIF fail to convert?

A GIF with an odd width or height fails: the MP4's video encoder needs both to be even.

3 of the 8 GIFs we downloaded from Wikimedia Commons have an odd size, 307 × 230, 441 × 291 and 317 × 317, and all 3 failed. The page then says "Couldn't convert this". Choose your GIF above and the table shows its size before you convert. The second command below resizes it to an even size.

What happens to see-through parts?

They turn white.

MP4 video has no transparency. FFmpeg paints a GIF's clear pixels white, so a sticker on a clear background came out on white. The last command below picks another colour.

Convert on your computer

The command this converter runs

For GIFs with an even width and height.

ffmpeg -i in.gif -movflags +faststart -pix_fmt yuv420p -codec:v libx264 -preset ultrafast -crf 28 out.mp4
A GIF with an odd width or height

Rounds the size down to even: 307 × 230 becomes 306 × 230.

ffmpeg -i in.gif -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" -movflags +faststart -pix_fmt yuv420p -codec:v libx264 -preset ultrafast -crf 28 out.mp4
Another background colour

Paints clear pixels black. Change c=black to any colour.

ffmpeg -i in.gif -filter_complex "[0]split[a][b];[a]drawbox=c=black:t=fill[bg];[bg][b]overlay" -movflags +faststart -pix_fmt yuv420p -codec:v libx264 -preset ultrafast -crf 28 out.mp4

If the conversion doesn't work

"Couldn't convert this"
Check the GIF's width and height in the table above. If either is odd, use the second command.
"Choose a file under 500 MB."
The file is over the limit. Convert it on your computer instead.
The download link stopped working
Links expire after a day. Convert the GIF again.

Related file conversions

Turn an idea into a video

Give Storybook a topic or an article link. It makes an illustrated video with narration and music.

Try Storybook
All 42 tools

GIF to MP4 questions

All file converters

Search converters