How to Convert GIF to MP4 for Social Media

Most social media platforms either don't support GIF uploads or silently re-encode them with heavy quality loss. Converting GIF to MP4 before uploading gives you smaller files, better colors, and higher quality on every platform. This guide covers the exact specs and best practices for Instagram, TikTok, X/Twitter, Facebook, and Discord.

Convert GIF to MP4

Optimized for social media sharing

GIF MP4

Tap to choose your file

or

Supports M4A, WAV, FLAC, OGG, AAC, WMA, AIFF, OPUS • Max 100 MB

Encrypted upload via HTTPS. Files auto-deleted within 2 hours.

Why Social Media Prefers MP4 Over GIF

Every major social platform converts uploaded video to its own internal format (typically H.264 or H.265 in MP4). When you upload a GIF, the platform must first decode the 256-color, frame-by-frame GIF, then re-encode it as video. This double conversion creates quality loss.

By converting GIF to MP4 before uploading, you give the platform a higher-quality source with 16.7 million colors and temporal compression already applied. The result: sharper output, smoother playback, and files that are 90%+ smaller to upload.

Platform-by-Platform Specs

Each platform has different requirements. Here is a complete reference:

Platform Format Max Size Max Duration Best Resolution Aspect Ratio
Instagram FeedMP4 (H.264)100 MB60 min1080×10801:1 or 4:5
Instagram ReelsMP4 (H.264)100 MB15 min1080×19209:16
TikTokMP4 (H.264)287 MB (mobile)10 min1080×19209:16
X / TwitterMP4 (H.264)512 MB2 min 20 sec1280×72016:9 or 1:1
Facebook FeedMP4 (H.264)4 GB240 min1080×10801:1, 4:5, 16:9
Facebook ReelsMP4 (H.264)4 GB90 sec1080×19209:16
DiscordMP4, MOV, WebM25 MB (free)No limitAnyAny
YouTube ShortsMP4 (H.264)256 GB60 sec1080×19209:16
LinkedInMP4 (H.264)5 GB15 min1920×108016:9, 1:1, 9:16

Instagram: GIF to MP4

Instagram does not accept GIF uploads. You must convert to MP4 first. Here is what you need to know:

  • Minimum duration: 3 seconds. If your GIF is shorter, the MP4 must be looped or padded to meet this minimum. Our converter automatically handles duration.
  • Feed posts: 1080×1080 (square) or 1080×1350 (portrait 4:5) work best. Instagram crops videos to fit these ratios.
  • Stories & Reels: 1080×1920 (9:16 vertical). Full-screen vertical content gets significantly more engagement than square or landscape.
  • Frame rate: 30 fps is ideal. Instagram re-encodes everything to 30 fps anyway, so matching this avoids frame interpolation artifacts.
  • Audio track: Instagram requires MP4 files to have an audio stream, even if silent. Our converter adds a silent audio track automatically.

TikTok: GIF to MP4

TikTok is built for short video and handles MP4 well:

  • Resolution: 1080×1920 for full-quality vertical. TikTok downscales anything above 1080p, so there is no benefit to uploading 4K.
  • File size: 287 MB on mobile, up to 10 GB on desktop upload. A converted GIF will be well under these limits.
  • Frame rate: 30 or 60 fps. TikTok preserves 60 fps if the source provides it.
  • Looping: TikTok auto-loops all videos. Your converted GIF will loop seamlessly, same as the original.
  • GIF stickers: TikTok's built-in GIF feature uses GIPHY. For custom animation, upload your converted MP4 as a regular video.

X / Twitter: GIF to MP4

X (formerly Twitter) has a native "GIF" upload button, but it actually converts GIFs to MP4 internally. You can skip the middleman:

  • Direct GIF upload: X accepts GIFs up to 15 MB and auto-converts to video. For GIFs larger than 15 MB, convert to MP4 first and upload as video.
  • Video upload: MP4 up to 512 MB, max 2 minutes 20 seconds. H.264 with AAC audio.
  • Resolution: 1280×720 or 1920×1080. X re-encodes at lower bitrate, so higher source quality helps.
  • Loop behavior: Short videos (under ~60 seconds) auto-loop on X. Longer videos show a replay button.
  • Quality tip: converting GIF to MP4 yourself (instead of letting X do it) gives you control over quality settings. X's built-in conversion is aggressive.

Facebook: GIF to MP4

Facebook has built-in GIF support via GIPHY, but for custom animations:

  • Feed posts: Upload MP4 directly. 1080×1080 (square) gets the most engagement. Max file size 4 GB, max duration 240 minutes.
  • Facebook Reels: 1080×1920 vertical, max 90 seconds. Same format as Instagram Reels.
  • GIF sharing: Facebook supports GIF URLs from GIPHY/Tenor in comments and messages, but not direct GIF file uploads in posts. Convert to MP4 for posts.
  • Quality: Facebook compresses video aggressively. Starting with a high-quality MP4 (instead of a 256-color GIF) produces noticeably better results after Facebook's re-encoding.

Discord: GIF to MP4

Discord has strict file size limits that make GIF problematic:

  • Free tier: 25 MB file limit. Many animated GIFs exceed this. Converting to MP4 reduces file size by 90%+, bringing most animations well under the limit.
  • Nitro: 500 MB limit. Less of a concern, but MP4 still uploads faster and plays more smoothly.
  • Inline playback: Discord auto-plays MP4 files inline, just like GIFs. The user experience is identical.
  • Emoji/reactions: Discord uses APNG and GIF for custom emoji (128 KB limit). This is the one case where GIF format is specifically required — you cannot use MP4 for emoji.

Optimal Conversion Settings

For the best results across all social platforms, use these settings:

Setting Recommended Value Why
CodecH.264 (AVC)Universal support on all platforms
ContainerMP4Required by Instagram, TikTok, X, Facebook
Frame rate30 fpsNative rate for most platforms; avoids re-timing
AudioSilent AAC trackInstagram requires audio stream even if silent
Quality (CRF)18–23High source quality survives platform re-encoding better
Pixel formatyuv420pRequired for compatibility; yuv444p causes playback issues

Our converter applies all these settings automatically. Upload your GIF, click convert, and get a social-media-ready MP4.

Common Issues and Fixes

GIF too short for Instagram

Instagram requires videos to be at least 3 seconds long. If your GIF is a 1-second loop, the converted MP4 must be looped 3+ times to meet the minimum. Most converters, including ours, handle this automatically. If your platform rejects the file, check the duration.

Blurry or pixelated output

This happens when the source GIF has a very small resolution (e.g., 240×240) and is uploaded to a platform that displays at 1080p. The platform upscales the low-res video, creating blur. For best results, start with the highest resolution GIF available.

Colors look washed out

GIFs are limited to 256 colors, which can include colors outside the standard video color space. During conversion, these are mapped to the BT.709 color space used by H.264. In rare cases, this causes slight color shifts. The MP4 will still have better overall color fidelity than the GIF displayed on screen.

No sound on the video

GIFs do not have audio, so the converted MP4 is silent. Some platforms may not auto-play silent videos or may show a "muted" indicator. This is expected behavior and matches how GIFs work natively.

Ready to Convert?

Convert your GIF to MP4 for social media sharing

GIF MP4

Tap to choose your file

or

Supports M4A, WAV, FLAC, OGG, AAC, WMA, AIFF, OPUS • Max 100 MB

Frequently Asked Questions

No. Instagram does not support GIF uploads. You must convert your GIF to MP4 first. Instagram requires H.264 video in MP4 container, minimum 3 seconds long, with a maximum file size of 100 MB for Reels and 4 GB for regular posts.

Social platforms re-encode all uploads. GIFs with only 256 colors get compressed further, causing severe quality loss. Converting to MP4 first preserves 16.7 million colors, giving the platform a higher-quality source to compress from.

1080×1080 for square posts, 1080×1920 for Stories/Reels/TikTok, 1920×1080 for landscape YouTube. Always upload at these native resolutions — platforms downscale from the original, so higher source quality means better final result.

The MP4 file itself does not loop by default, but all social media platforms auto-loop short videos. On websites, add the loop attribute to the <video> tag. The visual result is identical to a looping GIF.

It varies: Instagram Reels 100 MB, TikTok 287 MB (mobile) or 10 GB (desktop), X/Twitter 512 MB, Facebook 4 GB, Discord 25 MB (free) or 500 MB (Nitro). GIF-to-MP4 conversion typically reduces file size by 90%+, so most converted files are well within these limits.

More GIF to MP4 Guides

GIF vs MP4: Which Format for Web Animations?
GIF vs MP4 for web animations: file size, quality, auto-play, SEO impact, when to use each format.
GIF to MP4: Why Converting Saves 90% File Size
GIF to MP4 conversion reduces file size by 90%+ with better quality. Web performance, Core Web Vitals, and HTML5 video.
Back to GIF to MP4 Converter

Request a Feature

0 / 2000