Advertisement

Free Online GIF to MP4

Convert animated GIFs into smaller, faster video files.

Drop an animated GIF here or click to browse The tool reads every frame and records them as a video

The GIF's average frame delay determines the recording rate.

Output format Checking…

Frames
—
Size
—
Duration
—

Only one cycle of the GIF is converted. The recording happens in real time, so a 10-second GIF takes about 10 seconds to process. Keep this tab visible while it runs.

Advertisement

About the GIF to MP4 Converter

Animated GIFs are convenient but inefficient: they can be large, they often play at uneven speeds, and many social platforms prefer video. This tool converts an animated GIF into an MP4 or WebM video by reconstructing each frame and recording the sequence in real time. The result usually plays more smoothly and can be much smaller, especially for longer animations or photographic content.

How the conversion works

GIF files store frames as partial patches with disposal rules, not always as complete pictures. The tool parses the GIF with gifuct-js, decompresses each patch, and composites it onto a full-size canvas while respecting those disposal rules. It then draws each completed frame onto an output canvas, records the canvas with MediaRecorder, and waits for each frame's original delay so the timing matches the GIF. The recording is real time: a 15-second animation takes roughly 15 seconds to process.

Frame rate and timing

In Auto mode, the tool calculates the average GIF frame delay and uses that as the recording frame rate, clamped to a practical range of 5–30 fps. You can also pick a fixed rate. GIF delays are stored in hundredths of a second and many browsers enforce a minimum delay, so very fast GIFs may play slightly slower here than in a dedicated viewer. Only one cycle is converted; if the GIF loops forever, the video contains a single pass.

Output format

The tool tests for video/mp4;codecs=avc1.42E01E support. When available, the file is saved as MP4 with H.264 video. Otherwise it records WebM and says so in the interface and filename. There is no audio track, because GIFs do not contain audio. Keep the tab visible during recording; background throttling can drop frames. Very large GIFs with hundreds of frames can use a lot of memory, so reduce the GIF first if the browser struggles.

Frequently asked questions

Why is the video the same length as the GIF, not instant?

The browser records the canvas in real time through MediaRecorder. Each frame is displayed for its GIF delay, so the export time matches the animation length.

Does the video include transparency?

No. Video codecs in this workflow do not preserve the GIF's transparent pixels. Transparent areas become the canvas background, which is black by default in the compositing step.

Can I convert a static GIF?

Yes. A single-frame GIF becomes a short video clip showing that frame for its stored delay.

Sponsored
Find a bug? Report now