Step-by-step instructions
- 1
Method 1: Browser converter
Go to formatdrop.com → Video Converter. Drop your GIF file. Select MP4 as output. Download the converted file. The browser re-encodes the GIF as H.264 MP4.
Go to converter - 2
Method 2: FFmpeg (best control over quality)
ffmpeg -i input.gif -c:v libx264 -pix_fmt yuv420p -vf 'scale=trunc(iw/2)*2:trunc(ih/2)*2' -movflags faststart output.mp4. The '-pix_fmt yuv420p' ensures compatibility with all players. The 'scale' filter rounds dimensions to even numbers (required for H.264). '-movflags faststart' moves the MP4 index to the front for streaming.
- 3
Preserve looping (for social media)
MP4 doesn't loop by default. Platforms like Twitter and Slack auto-loop short MP4 videos. If you need a file that loops everywhere: add the loop flag in HTML: <video loop autoplay muted>. For a self-looping MP4: ffmpeg -i input.gif -stream_loop -1 -c:v libx264 -t 30 output.mp4 (creates a 30-second MP4 that loops the GIF content).
- 4
Optimize for web (silent, autoplay-compatible)
For web embedding that autoplays in browsers: the MP4 must be muted. FFmpeg output for autoplay: ffmpeg -i input.gif -c:v libx264 -pix_fmt yuv420p -an output.mp4. The '-an' flag removes audio (GIFs have no audio anyway). Autoplay in browsers requires muted video.
Why convert GIF to MP4?
GIF (Graphics Interchange Format) dates from 1987 and uses a colour palette-based LZW compression algorithm designed for the web of that era. It's wildly inefficient for animation: a 640×480 GIF at 24fps uses a separate compressed frame for each image, with no inter-frame prediction or motion compensation. H.264 video encodes the differences between frames, achieving 10-50x better compression for animated content. The file size difference between GIF and MP4 for the same animation is often 95%+ — making GIF-to-MP4 conversion one of the highest-impact optimizations for web performance.
Your files never leave your device
FormatDrop runs the conversion engine entirely inside your browser using WebAssembly. No file upload. No server. Nothing stored. You can verify this by opening DevTools → Network tab and watching: zero upload requests.
Frequently asked questions
Why does Twitter convert GIFs to MP4?
Does GIF to MP4 lose quality?
No account. No upload. Works in any browser.