Convert GIF to MP4 on Mac
Convert GIF to MP4 on Mac with FFmpeg for smaller files and smoother motion, or use GetCompress for preview and one-click export.
Your bug repro GIF is 18 MB. The same loop as MP4 is often 1 to 2 MB with full color and smooth motion. Slack, Notion, GitHub, and most doc tools accept video now, but old templates still say GIF. Converting GIF to MP4 is the fastest fix when the destination allows video. Compressing locally keeps unreleased product UI off random upload sites. QA teams that file motion bugs weekly benefit from one saved preset rather than re-exporting palette-limited GIF from screen recordings.
Why convert GIF to MP4
GIF stores a full raster per frame and caps at 256 colors. MP4 with H.264 uses inter-frame compression, full color, and typically produces much smaller files for screen recordings and UI demos.
| Factor | GIF | MP4 (H.264) |
|---|---|---|
| 5 s UI demo size | Often 5 to 20 MB | Often 1 to 3 MB |
| Color quality | 256 colors, banding | Full color |
| Motion smoothness | Limited by fps cap | Smooth at 24 to 30 fps |
| Upload tool support | Legacy forms | Most modern tools |
Before you convert, confirm the thread or ticket system accepts MP4. Many issue trackers switched to video years ago but left GIF in the template text. Ask once, then ship MP4 for every future clip.
See lossy vs lossless compression when you wonder why MP4 looks sharper at smaller size: video codecs discard imperceptible detail, while GIF stores every frame literally.
| Clip type | Send first |
|---|---|
| Screen recording repro | MP4 trimmed to action |
| Logo spin loop | MP4 or small GIF if required |
| Photo slideshow | MP4, never GIF |
If you need to go the other direction, see video to GIF on Mac . For shrinking GIF when video is not allowed, see compress GIFs on Mac .
Trim and prepare the GIF
Long GIF files waste space on idle frames at the start and end. Trim before conversion so FFmpeg does not encode motion nobody needs.
- Open the GIF in QuickTime (or open the original MP4/MOV if you still have it).
- Edit → Trim (⌘T) to the action only.
- Export MP4 directly from QuickTime if the source is video; skip GIF entirely.
When you only have the GIF file, note the loop length and width. Wide canvas GIF from full-screen captures convert to oversized MP4 unless you scale down.
| Source width | Target for bug reports |
|---|---|
| 1920 px full screen | Scale to 960 or 1280 px |
| 1280 px window | Keep or scale to 960 px |
| 640 px cropped UI | Keep width |
Remove duplicate loops when the GIF plays the same action three times. One clean cycle is enough for repro steps.
Convert to MP4 with FFmpeg
Open Terminal (Applications → Utilities → Terminal). Install FFmpeg through Homebrew (install Homebrew first if brew is not found):
brew install ffmpeg
Convert GIF to MP4:
ffmpeg -i demo.gif -movflags faststart -pix_fmt yuv420p -vf "scale=960:-2,fps=24" -c:v libx264 -crf 23 demo.mp4
Smaller file, lower resolution:
ffmpeg -i demo.gif -movflags faststart -pix_fmt yuv420p -vf "scale=640:-2,fps=15" -c:v libx264 -crf 26 demo-small.mp4
| Parameter | Smaller file | Better quality |
|---|---|---|
scale width | 640 | 960 to 1280 |
fps | 15 | 24 to 30 |
-crf | 26 to 28 | 20 to 23 |
The -movflags faststart flag moves metadata to the start of the file so browsers and preview apps start playback faster.
Batch convert every GIF in a folder:
mkdir mp4-out
for f in *.gif; do
ffmpeg -i "$f" -movflags faststart -pix_fmt yuv420p -vf "scale=960:-2,fps=24" -c:v libx264 -crf 23 "mp4-out/${f%.gif}.mp4"
done
Keep the original GIF until you verify text readability in the MP4 output on the target platform.
Using GetCompress
GetCompress fits convert GIF to MP4 on Mac when you want preview, trim, and export without maintaining FFmpeg recipes per ticket system.
Drop an existing GIF to convert, or drop MOV/MP4 to export video directly without the GIF middle step.
Workflow features that help:
- Preview and trim: cut to repro steps before encoding.
- Frame-by-frame preview: catch unreadable labels before you attach to Jira or Linear.
- Width presets: 640 or 960 px covers most bug-report forms.
- Switch to MP4: export video when the thread allows it, skipping GIF entirely.
- Batch queue: convert several motion specs after a design review.
- Local processing: keep staging UI and NDA flows off online converters.
Save a preset like “bug MP4 960w 24fps” if your team files the same kind of clip weekly. When the destination still requires GIF, use GetCompress to export at 640 px with palette limits instead of shipping an 18 MB full-screen capture.
GetCompress also helps when design sends an existing GIF from Principle or After Effects that already exceeds Slack limits. Drop the file, trim two seconds of idle loop, export MP4, and compare file size against a GIF export in the same window before you attach either format to the thread.
- Compress GIFs on MacMake GIF files smaller on Mac: shorten the loop, use MP4 when possible, or convert with FFmpeg or GetCompress.
- Convert Video to GIF on MacConvert video to GIF on Mac with FFmpeg, or export MP4 from QuickTime when the tool allows video instead of GIF.
- How to Compress Video on MacHow to compress video on Mac with QuickTime, iMovie, FFmpeg, and GetCompress. Smaller MOV and MP4 files for email, Slack, and uploads.
- Convert AVCHD to MP4 on MacConvert AVCHD to MP4 on Mac with QuickTime export or FFmpeg. H.264 MP4 for editing and uploads.
Buy GetCompress now for local media compression with reusable presets and no media upload.