Convert an animated GIF to MP4 video
Convert any animated GIF into a sharp, lightweight H.264 MP4 video (up to 90% smaller) and loop it 1× to 10× so it posts cleanly on Instagram, TikTok, Discord and the web.
How to convert a GIF to MP4 online
Drop your .GIF file
Drag any animated `.gif` into the box above.
Choose play count
Leave it on 3× so short GIFs meet social media length limits, or pick 1× for a single pass or Boomerang for a ping-pong bounce.
Download MP4
Click Loop video and download your new `.mp4` file.
Turn any animated GIF into a crisp, lightweight MP4 video
Animated GIFs are great for reactions, but the `.gif` format dates back to 1987: it doesn't use modern inter-frame video compression, is limited to 256 colors per frame, and is rejected by Instagram, TikTok and YouTube.
Converting a GIF to an H.264 **MP4** shrinks the file size by **80% to 95%**, eliminates color banding, and gives you a universal video file that plays everywhere. Because most GIFs are only 1–2 seconds long, this preset defaults to looping your GIF `3×` so the exported MP4 is long enough for Instagram Reels, Stories and TikTok.
GIF vs MP4: file size and compatibility
Every major platform (Discord, X/Twitter, Reddit, Tenor and Giphy) actually converts uploaded GIFs into looping `.mp4` files behind the scenes because MP4 is vastly more efficient:
| Feature | Animated GIF (.gif) | Looped MP4 (.mp4) |
|---|---|---|
| Typical 4-sec file size | 4 MB – 18 MB | 200 KB – 900 KB (85–95% smaller) |
| Color depth | 256 colors (8-bit palette) | 16.7 million colors (true color) |
| Instagram / TikTok / YouTube | Not supported | Supported everywhere |
| Website page speed | Heavy, blocks main thread | Hardware-decoded `<video autoplay loop muted>` |
What people use it for
Post GIFs on Instagram & TikTok
Loop a reaction GIF 3× or 5× as an MP4 so Instagram Reels, Stories and TikTok accept it.
Speed up websites & landing pages
Replace multi-megabyte hero GIFs with `<video autoplay loop muted playsinline>` MP4s that are 90% smaller.
Fit Discord & Slack limits
Turn a bloated 15 MB GIF into a sub-1 MB MP4 that uploads instantaneously.
Edit GIFs in video editors
Convert `.gif` memes into standard H.264 `.mp4` clips for CapCut, Premiere or DaVinci Resolve.
Tips for the best results
- If you are embedding the MP4 on a website to replace a `<img>` GIF, choose `1×` play count and add `autoplay loop muted playsinline` to your `<video>` tag.
- If you are posting to Instagram, TikTok or YouTube Shorts, keep `3×` or `5×` selected so the video is at least 4–6 seconds long.
Questions
Why convert a GIF to MP4?
Animated GIFs use an uncompressed 1980s format with a 256-color limit, making them huge and grainy. Converting a GIF to an H.264 MP4 typically shrinks the file size by 80–95%, plays smoothly at 60 fps, and lets you upload it to Instagram, YouTube and TikTok (which reject `.gif` files).
Why repeat the GIF 2× or 3× when converting to MP4?
Most GIFs are only 1–2 seconds long, while Instagram, TikTok and X require videos to be at least 3–4 seconds long. Repeating the GIF 3× (the default) produces a ready-to-post MP4.
What if my GIF has odd pixel dimensions (like 499 × 281)?
H.264 MP4 requires even width and height numbers. The converter automatically rounds odd GIF dimensions to the nearest even pixel (`trunc(iw/2)*2`) so the MP4 plays on every iPhone, Android and browser.
Are my videos uploaded anywhere?
No. Processing happens inside your browser using FFmpeg compiled to WebAssembly. Your file never leaves your device. Once the tool has loaded, it keeps working even if you go offline.
Is looping a video instant?
When you choose Repeat (Forward) with Keep sound on an MP4 or MOV file, the video streams are duplicated without re-encoding (`-stream_loop`), so it finishes in a second with zero quality loss. Boomerang mode and GIF inputs re-encode into a universal H.264 MP4.
Why loop a short video before posting to Instagram or TikTok?
Instagram Reels, TikTok and YouTube Shorts require a minimum video duration (usually 3 to 5 seconds), and short clips often get cut off before viewers register them. Looping a 2-second clip 3× or 4× creates a 6–8 second MP4 that plays seamlessly everywhere.
Is it really free?
Yes. Every tool is free with no watermark, no sign-up and no daily limit.