GIF to MP4 converter

Turn animated GIF files into MP4 videos that are much smaller, play smoothly and upload where GIFs are refused.

Your files never leave your device

Drop animated GIFs here

MP4, MOV, WebM, MKV, M4V, TS or animated GIF, up to 10 files. They stay on your device.

You can also paste files with Ctrl+V.

Convert to

MP4 plays on phones, TVs, browsers and social networks. H.264 or HEVC video with AAC or MP3 sound is copied without re-encoding.

In short

To convert GIF to MP4, drop the GIF above and press Convert to MP4. Every frame is decoded with its original timing and encoded as H.264 video; transparent pixels become white because MP4 video has no transparency. The MP4 is usually several times smaller.

GIF vs MP4 at a glance

GIF vs MP4 at a glance
FeatureGIFMP4
Full name Graphics Interchange Format MPEG-4 Part 14
File extension .gif .mp4
Type Raster image Video container
Compression Lossless –
Transparency Yes –
Animation Yes –
Colors 256 colors –
Largest width or height 65,535 px –
Camera data (EXIF) No –
Usual video codecs – H.264, HEVC, and AV1
Usual audio codecs – AAC, MP3, and Opus
Introduced 1987 (CompuServe) 2001 (MPEG, ISO/IEC 14496-14)
Opens in web browsers Yes Yes
Opens on Windows Yes Yes
Opens on Mac Yes Yes
Opens on iPhone Yes Yes
Opens on Android Yes Yes

How to convert GIF to MP4

  1. Drop an animated GIF on the box above or press Choose videos; the GIF is read on your device.
  2. Check the frame count, size and duration shown for the GIF; an odd width or height is trimmed by one pixel because H.264 needs even sizes.
  3. Press Convert to MP4; the frames are encoded with your browser's video encoder, using hardware acceleration where available.
  4. Play the MP4 in the preview and press Download.

Example: a 5-second GIF as MP4

A 480 × 270 GIF with 50 frames, 5 seconds at 10 frames per second, holds 480 × 270 × 50 = 6,480,000 bytes of 8-bit frame data before LZW compression, typically 2.3 MB – 4.5 MB as a file.

Encoded as H.264 at 1 Mbit/s, the same 5 seconds take about 625 kB as MP4, with full color instead of 256 colors per GIF frame.

GIF versus MP4 size for a 5-second clip

Typical sizes at 10 frames per second for 16:9 animations; MP4 at the converter's bitrate.
Size (pixels)GIFMP4
240 × 136 571 kB – 1.1 MB625 kB
320 × 180 1 MB – 2 MB625 kB
480 × 270 2.3 MB – 4.5 MB625 kB
640 × 360 4 MB – 8.1 MB625 kB

Why a MP4 beats a GIF for animations

Converting GIF to MP4 is how most social networks and chat apps store GIFs behind the scenes, because an H.264 video of the same animation is usually several times smaller.

A GIF holds at most 256 colors per frame, so turning it into MP4 keeps the picture exactly as it looks but cannot restore colors that were reduced when the GIF was made. MP4 with H.264 video and AAC sound plays on practically every phone, TV, browser and social network, which is why GIF videos are converted to it.

GIF compresses each frame on its own with at most 256 colors, while H.264 in MP4 predicts motion between frames and uses full color, which is why the same animation is both smaller and better-looking as MP4.

A 5-second GIF at 480 × 270 and 10 frames per second is typically 2.3 MB – 4.5 MB; as MP4 at 1 Mbit/s it is about 625 kB.

Frequently asked questions

Why convert GIF to MP4?

MP4 files are several times smaller than the same animation as GIF, show full color instead of 256 colors, and are accepted by sites and apps that limit or refuse GIF uploads. Many social networks turn uploaded GIFs into video anyway.

Does the MP4 keep the speed of the GIF?

Yes. Each GIF frame keeps its own delay; frames shorter than 2/100 of a second are shown for 1/10 of a second, the way browsers play such GIFs.

What happens to transparent parts of the GIF?

MP4 video has no alpha channel, so transparent GIF pixels become white. Animations on a solid background look exactly the same.

Does the MP4 loop like the GIF?

A video file has no built-in loop setting. Most players, chat apps and social networks loop short clips automatically, and a web page can set its video player to loop.

How small will the MP4 made from my GIF be?

A 5-second GIF of 480 × 270 at 10 frames per second is typically 2.3 MB – 4.5 MB; the MP4 at 1 Mbit/s is about 625 kB.

Is my GIF uploaded to make the MP4?

No. The GIF is decoded frame by frame and encoded as MP4 in your browser; nothing is sent to a server.

How do I convert MP4 back to GIF?

Use the MP4 to GIF converter: pick the part of the video, the width and the frame rate, and it makes an animated GIF.

How your files stay private

Lumofile runs this tool with JavaScript and WebAssembly inside your browser tab. Your files are read from your disk, processed in memory and saved back to your device. Nothing is uploaded: open your browser's network panel while you use the tool and you will see no upload request.

Related conversions

The other way round: MP4 to GIF

More GIF conversions

Other formats to MP4

File converter: every format pair

Last updated Nov 20, 2026