Convert GIF to MP4

Convert an animated GIF to an MP4 video that is far smaller and plays everywhere. In our test of 8 real GIFs the MP4 was a median 91% smaller. No upload.

How to use GIF to MP4

  1. 1Drop an animated GIF into the box above.
  2. 2Choose how many times the animation plays in the video (once is usually enough; players loop it).
  3. 3Press Convert to MP4.
  4. 4Watch the result on the page and download the MP4.

Features

  • Keeps every frame and its original timing
  • Far smaller files that load faster
  • H.264 MP4 that plays on any phone, computer and website
  • Runs in your browser; the GIF is never uploaded

Why turn a GIF into an MP4

To convert a GIF to MP4, drop the GIF above and download the MP4: same frames, same timing, a fraction of the size. On 8 real GIFs from Wikimedia Commons the MP4 was a median 91% smaller, and never less than 78% smaller. Many sites quietly convert uploaded GIFs to video for the same reason.

An MP4 also gets full colour instead of 256, plays with the system's video player, and can be uploaded where GIFs aren't accepted, such as Instagram or a video editor.

Our test: 8 animated GIFs converted

Screen recordings and animations with flat colours shrink the least, because GIF already handles those well; filmed footage and timelapses shrink the most.

Method: the page's own code in Chrome 157 on an Apple M2 Mac, on 8 animated GIFs from Wikimedia Commons, credited on our test files page. Each became an H.264 MP4 playing the animation once.

GIFSize, framesGIFMP4Smaller byTime
<a href='https://commons.wikimedia.org/wiki/File:Amazon_Rainforest,_Brazil_Timelapse_1984-2018.gif' rel='nofollow noopener' target='_blank'>Satellite timelapse, Amazon rainforest</a>900 × 506, 9013.5 MB689 KB95%0.3 s
<a href='https://commons.wikimedia.org/wiki/File:Unnecessarily_complicated_gears_a.gif' rel='nofollow noopener' target='_blank'>3D animation, gears</a>840 × 700, 17016.6 MB1.6 MB91%0.5 s
<a href='https://commons.wikimedia.org/wiki/File:Portrait_de_La_Fouine_en_d%C3%A9cembre_2025_animated.gif' rel='nofollow noopener' target='_blank'>Short clip of a person</a>800 × 450, 24516.6 MB1.3 MB92%0.7 s
<a href='https://commons.wikimedia.org/wiki/File:How_to_add_a_replaces_field_in_Wikidata.gif' rel='nofollow noopener' target='_blank'>Screen recording, website form</a>1000 × 464, 21517.2 MB1.6 MB91%0.6 s
<a href='https://commons.wikimedia.org/wiki/File:Super_8_Kodak_50D_Highlights.gif' rel='nofollow noopener' target='_blank'>Super 8 film footage, 42 s</a>1280 × 720, 1010308.3 MB13.5 MB96%2.9 s
<a href='https://commons.wikimedia.org/wiki/File:Cubs_win_being_celebrated_by_crowds_in_Wrigleyville_(1).gif' rel='nofollow noopener' target='_blank'>News footage, street crowd</a>350 × 197, 58328.7 MB982 KB97%1.6 s
<a href='https://commons.wikimedia.org/wiki/File:Timelapse_Miraflores.gif' rel='nofollow noopener' target='_blank'>City timelapse, 1080p</a>1920 × 1080, 16943.5 MB5.4 MB88%1.2 s
<a href='https://commons.wikimedia.org/wiki/File:Showing_Vector_2022_as_the_screen_width_is_reduced.gif' rel='nofollow noopener' target='_blank'>Screen recording, website layout</a>1486 × 874, 56835.6 MB7.8 MB78%1.9 s

Last updated

How it works, and what your browser needs

Pixohub's video tools use WebCodecs, the video encoder and decoder built into your browser (on most devices it uses the same hardware that records and plays your videos), driven by the open-source Mediabunny library. The file is read from your disk in pieces and the result is put together in the page, so nothing is uploaded and there is no limit on the original's size. The finished file is held in the page's memory until you download it, so a result of several gigabytes can be too much for a phone.

It needs a browser with WebCodecs: current Chrome, Edge and Samsung Internet on Android and computers, and Safari on Mac and on iPhone and iPad from iOS 16.4 (iOS 26 to make an MP3; on older iOS the video tools copy the sound as it is instead of re-encoding it). Firefox for Android has no WebCodecs yet, so there the page says so and suggests another browser instead of failing halfway.

Transparent parts of a GIF become white, because MP4 video has no transparency.

Tips

  • Most players and sites loop short videos on their own; choose 3 or 5 times only for players that don't, such as a slide in a presentation.
  • Need it smaller still? Run the MP4 through Compress Video.
  • Need a still image? GIF to PNG saves the first frame.

Frequently asked questions

Will the MP4 loop like the GIF?

An MP4 file doesn't loop by itself, though many players and chat apps loop short videos automatically. If yours doesn't, choose 3 or 5 times so the animation repeats inside the video.

How much smaller is the MP4?

In our test of 8 real GIFs, a median 91% smaller. Filmed footage shrinks most; flat-colour animations and screen recordings least.

Does it keep the GIF's speed?

Yes. Every frame keeps its own delay from the GIF. Frames with a delay under 20 ms play at 100 ms, the way browsers show them.

What happens to transparency?

MP4 has no transparency, so transparent areas become white.

Is my video uploaded anywhere?

No. The video is read from your device and processed by your own browser's video encoder; the page never sends it to Pixohub or anyone else, and nothing is stored after you close the tab. That is also why there is no file-size limit.

More video tools