GIF to MP4 Converter
Analyze any GIF file in your browser and get step-by-step instructions to convert it to MP4 using free tools like FFmpeg or HandBrake.
GIF Analyzer
Drop a GIF to inspect it — analysis stays 100% on your device.
FFmpeg Command
Copy and run in any terminal after installing FFmpeg.
ffmpeg -i input.gif \ -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" \ -c:v libx264 -pix_fmt yuv420p \ -movflags +faststart output.mp4
Copied to clipboard.
GIF Preview
No GIF selected yet
Conversion Methods
Step 1 — Install FFmpeg
- Windows: Download from ffmpeg.org/download.html or run winget install FFmpeg
- macOS: brew install ffmpeg
- Linux: sudo apt install ffmpeg
Step 2 — Run the command
Use the command in the panel on the left, replacing input.gif with your filename. The scale filter ensures H.264-compatible even dimensions.
Step 3 — Use in HTML
<video autoplay loop muted playsinline> <source src="output.mp4" type="video/mp4"> </video>
- Download and install HandBrake from handbrake.fr.
- Open HandBrake and drag your .gif onto the window.
- Under Preset, choose Web → Gmail Large 3 Minutes 720p30 or any H.264 preset.
- Set the output format to MP4.
- Click Start Encode. HandBrake saves the MP4 to the folder you chose.
These trusted tools upload your file to their server — only use for non-sensitive content:
- Ezgif.com — free, no signup, fast
- Convertio.co — 100 MB free limit
- CloudConvert — API-friendly, 25 free/day
For private or large files, use FFmpeg locally instead.
Why MP4 is smaller
Summary
Analyze any GIF file in your browser and get step-by-step instructions to convert it to MP4 using free tools like FFmpeg or HandBrake.
How it works
- Drop or select a GIF file to instantly see its dimensions, file size, and estimated frame count.
- Review the GIF metadata panel to understand the source file properties.
- Pick your preferred conversion method: FFmpeg command line, HandBrake GUI, or a trusted online converter.
- Copy the ready-made FFmpeg command (pre-filled with your file's detected dimensions) and run it in your terminal.
- Your MP4 output will be a fraction of the GIF size with full-color, smooth playback.
Use cases
- Shrink large GIF animations to MP4 for faster web page load times.
- Convert GIF screen recordings to MP4 for attaching to tickets or documentation.
- Replace autoplay GIFs on landing pages with smaller looping MP4 videos.
- Prepare animated content for social media platforms that prefer MP4 over GIF.
- Reduce bandwidth costs by converting GIF assets in a CMS to video.
- Improve color accuracy — MP4 supports millions of colors vs. GIF's 256-color limit.