How GIF to video (MP4) works
Convert an animated GIF into a compact MP4 video with ffmpeg WebAssembly, entirely inside your browser. The GIF frames are re-encoded to H.264 with the yuv420p pixel format, which is the widest-compatible choice for browsers and social platforms. The resulting MP4 is typically five to twenty times smaller than the source GIF while looking noticeably sharper, because H.264 is not limited to 256 colours and compresses temporal redundancy between frames far more efficiently than GIF's LZW algorithm.
Most GIFs convert in a few seconds because their frame count is low. The resulting MP4 plays natively in every modern browser and can be embedded in web pages without plugins. Looping behaviour in the MP4 depends on the player rather than being encoded in the file, unlike GIF which carries its own loop instruction.