GIF to MP4 Converter
Convert animated GIFs into compact MP4 videos that upload cleanly to Instagram, X, Slack and presentations.
Add a GIF & options
MP4 video
How to use GIF to MP4
- Add a GIFThe animation is decoded frame by frame, keeping each frame’s own duration.
- Choose playbackMP4 files do not loop by themselves, so you can repeat a short animation 2–5 times. Pick a color for transparent areas.
- Convert & downloadThe video is encoded with your browser’s hardware or software encoder. Preview it, then download the MP4.
How the GIF becomes an MP4 in your browser
This converter uses the WebCodecs VideoEncoder built into modern browsers to encode H.264 video, and the MIT-licensed mp4-muxer library to write a standard MP4 file. No ffmpeg download and no server are involved. Each GIF frame keeps its exact display time, so the video plays at the same speed as the original.
H.264 requires even dimensions, so odd widths or heights are padded by one pixel. Video has no transparency, so transparent pixels are filled with the color you pick. If your browser lacks an H.264 encoder, VP9 inside MP4 is used and you are told. Browsers without WebCodecs at all (older Safari and Firefox versions) cannot create the video and will show a clear message instead.
Frequently asked questions
Why convert a GIF to MP4?
GIF is a 1980s format limited to 256 colors with inefficient compression. For photographic clips and screen recordings, the same animation as H.264 video is often 5–10× smaller and has full color (very simple cartoon GIFs may gain less), which is why X (Twitter) and many chat apps convert uploaded GIFs to video behind the scenes.
Will the MP4 loop like a GIF?
Video players loop only if the website or player is told to. That is why the tool can repeat the animation 2, 3 or 5 times inside the MP4, which helps on platforms that reject very short videos.
Which browsers are supported?
Current Chrome, Edge and Opera on desktop and Android, Safari 16.4+ on Mac and iPhone, and Firefox 130+. If WebCodecs is missing, the page tells you instead of producing a broken file.
Is there audio in the MP4?
No. GIFs never contain sound, so the MP4 has a single video track.
Can Instagram accept the result?
Instagram and some other platforms reject very short videos (under about 3 seconds). If your GIF is shorter, choose to play it 2–5 times. Square or portrait GIFs work best for feeds.
Related tools
All toolsGIF Compressor
Make animated GIFs smaller with fewer colors, scaling and frame dropping.
Resize Image for Instagram
Fit photos to Instagram square, portrait, story and landscape sizes.
Crop Image
Crop photos with aspect presets and pixel-exact, touch-friendly handles.
Image Compressor
Shrink JPG, PNG, and WebP file sizes before sharing or publishing.