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.
| GIF | Size, frames | GIF | MP4 | Smaller by | Time |
|---|---|---|---|---|---|
| <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, 90 | 13.5 MB | 689 KB | 95% | 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, 170 | 16.6 MB | 1.6 MB | 91% | 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, 245 | 16.6 MB | 1.3 MB | 92% | 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, 215 | 17.2 MB | 1.6 MB | 91% | 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, 1010 | 308.3 MB | 13.5 MB | 96% | 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, 583 | 28.7 MB | 982 KB | 97% | 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, 169 | 43.5 MB | 5.4 MB | 88% | 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, 568 | 35.6 MB | 7.8 MB | 78% | 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.