GIF to MP4 Converter
: Convert animated GIFs to small MP4 videos in your browser, each frame's timing kept, transparency filled with white or black, played up to 10 times. No upload, no file size limitOptions
GIF to MP4 Converter
Convert animated GIFs to MP4 videos, which are usually a fraction of the GIF's size and are what X (Twitter), Instagram, WhatsApp and most video players and editors expect. Every frame keeps its own timing, transparent areas are filled with white or black, and the video is encoded by your browser's own H.264 encoder: the GIF is never uploaded.
How to convert a GIF to MP4
- Press
Open filesor drop one or more GIFs on the page.Examplemakes a small animated GIF and converts it. - Each GIF shows a note when it is added: its frame count, size, length and how often it loops.
- Pick the options:
Size(Original, 1080p, 720p or 480p),Repeat(how many times the animation plays in the MP4) andBackground(White or Black, for transparent areas). Under Options,Quality(High, Medium, Low) sets how much space the video may use; a simple GIF needs less than even Low allows, so it barely changes. - Conversion starts as soon as a GIF is added and again when you change a setting; the
MP4spane shows progress andCancelstops it. Play each MP4 in the preview, download it on its own, or all of them withDownload allas a ZIP.
Example
The size and timing the tool plans for a few GIFs, from its own planning functions. Each line is the GIF's size, its frame count and delay (in hundredths of a second), the Size choice and the Repeat choice.
320x200 24@8 original 1
481x271 40@0 original 1
1920x1080 60@4 720 3
8x8 2@50 original 1
500x500 1@0 original 1GIF 320 × 200, 24 frames at 8 hundredths, Size Original, Repeat 1×
→ MP4 320 × 200: 24 frames of 0.08 s, 1.9 s in all
GIF 481 × 271, 40 frames at 0 hundredths, Size Original, Repeat 1×
→ MP4 482 × 272 (1 px of background added for even sides): 40 frames of 0.10 s (a delay of 0 plays as 0.10 s), 4.0 s in all
GIF 1920 × 1080, 60 frames at 4 hundredths, Size 720p, Repeat 3×
→ MP4 1280 × 720 (scaled down): 60 frames of 0.04 s, written 3 times, 7.2 s in all
GIF 8 × 8, 2 frames at 50 hundredths, Size Original, Repeat 1×
→ MP4 16 × 16 (enlarged 2× with sharp pixels): 2 frames of 0.50 s, 1.0 s in all
GIF 500 × 500, 1 frame at 0 hundredths, Size Original, Repeat 1×
→ MP4 500 × 500: a still clip of 2.0 s, 2.0 s in allDetails
- Why an MP4 is smaller: a GIF stores every frame as its own picture with at most 256 colours, while H.264 video stores only what changes between frames and keeps full colour. The
ExampleGIF (320 × 200, 24 frames, about 140 KB) becomes an MP4 of about 20 KB, 86% smaller; a GIF made from a filmed clip, full of dithered colour, shrinks further (two such test GIFs, 5.6 MB and 77 MB, came out 98% smaller). A tiny GIF with few colours can come out larger, and the result says so ("N% larger than the GIF") rather than hiding it. - Each frame keeps its own delay, so a GIF that pauses on one frame pauses in the MP4 too: the video has a variable frame rate instead of being resampled to a fixed one. Browsers play a delay of 0 or 1 hundredth of a second as 0.1 s, and so does the MP4, so it runs at the speed you see the GIF run in a browser.
- An MP4 has no transparency, so transparent pixels are drawn over the
Backgroundcolour, white by default. The note on the result says when a GIF had transparent areas. - A GIF can loop forever; an MP4 plays once unless the site or player loops it (many do for short clips, many don't).
Repeatwrites the whole animation 2, 3, 5 or 10 times back to back, so it plays that many times anywhere. The note on each file and on the result says how the GIF itself loops. Sizelimits the shorter side to 1080, 720 or 480 pixels, keeping the shape; a GIF is never made larger by it. AtOriginalthe pixels stay as they are: H.264 needs even sides, so a GIF with an odd width or height gets one pixel of the background colour on the right or bottom instead of being blurred by a rescale, and a GIF under 16 pixels a side is enlarged by a whole number with sharp pixels, since the encoder refuses smaller video.- A GIF with one frame becomes a 2-second still clip. A GIF cut short (a download that stopped) is converted as far as it goes, with a warning. The MP4 is written with its index at the front, so it starts playing on a web page before it has fully loaded.
cat.gifdownloads ascat.mp4.
Limits
- The site sets no file size or count limit, but each GIF is read into memory whole to be decoded, so one GIF can be at most 2 GB, and a very large one needs a device with the memory for it. Frames are decoded and encoded one at a time, with progress and
Cancel. - Encoding uses your browser's own H.264 encoder (WebCodecs), which current Chrome, Edge and Safari have; a browser without one gets a message saying so. Browsers cap the picture size they encode, about 4096 × 2160 in Chrome; a larger GIF at
Originalis refused with a message naming theSizethat converts it.Sizecaps the shorter side, so it can't help a very long, thin GIF that is refused (a 400 × 9000 strip, say): make that smaller first with GIF Resizer. - The MP4 has no sound (a GIF has none) and no transparency. To go the other way, from a video to a GIF, use Video to GIF.
FAQ
Why convert a GIF to MP4?
Size and support. The MP4 is usually much smaller, so it loads faster, and X (Twitter), Instagram, WhatsApp, Slack and Discord all take MP4 uploads (X turns uploaded GIFs into MP4 itself). Video editors and presentation apps also handle MP4 better than GIF.
Does converting a GIF to MP4 keep the speed and timing?
Yes. Each frame is shown for exactly its own delay from the GIF, including GIFs whose frames have different delays, and a delay of 0 or 1 hundredth plays as 0.1 s, as in browsers.
Can I convert a transparent GIF to MP4?
Yes, but the MP4 can't stay transparent: H.264 video has no transparency. Transparent areas are filled with the Background colour, white or black.
Will the MP4 loop like the GIF?
Only if the site or player loops it. Set Repeat to 2×, 3×, 5× or 10× to put the animation in the MP4 that many times, so it plays that long everywhere.
Is my GIF uploaded?
No. The GIF is decoded and the video encoded in your browser, on your device; nothing is sent anywhere.
Runs entirely in your browser. Nothing is uploaded.