Video to GIF
Convert MP4, WebM, or OGG video to animated GIF — trim, resize, and adjust frame rate
Turn any MP4, WebM, or OGG clip into an animated GIF — trim the segment you want, set the frame rate, pick a width, and download. No watermarks, no accounts, no waiting in a queue. And everything runs in your browser. Nothing gets uploaded.
How It Works
The browser loads your video into a hidden <video> element, then seeks through it frame by frame at the interval you chose. Each frame gets drawn onto a Canvas, and gif.js encodes those frames into an animated GIF using Web Workers. Two workers run in parallel, so encoding stays fast even on longer clips.
Examples
Quick UI Demo for a Pull Request
You recorded a 12-second screen capture showing a new dropdown menu in action and need an inline preview for the PR description.
dropdown-demo.mp4
12s duration, 1920×1080
FPS: 10 · Width: 480px
Quality: 10
dropdown-demo.gif
480×270 px · 120 frames
~1.8 MB · loops forever
Reaction GIF from a Movie Clip
Trim a 2-second moment out of a 30-second WebM clip for a chat reaction.
funny-moment.webm
Start: 8.5s · End: 10.5s
FPS: 15 · Width: 320px
Quality: 10
funny-moment.gif
320×180 px · 30 frames
~420 KB
Product Walkthrough for an Email
Email clients block video embeds but display GIFs just fine. You want a 6-second preview of your app’s onboarding flow at a small size for a newsletter.
onboarding-flow.mp4
Start: 0s · End: 6s
FPS: 8 · Width: 400px
Quality: 15
onboarding-flow.gif
400×225 px · 48 frames
~980 KB — email-safe
Who Uses This
Embed short UI demos directly in GitHub pull requests and issue comments.
Drop animated product previews into email campaigns where video won’t play.
Show step-by-step flows in documentation without linking to external video hosts.
Create reaction GIFs and quick clips for Discord, Slack, and forum posts.
Common Mistakes
A 30-second, 1080p GIF can hit 50+ MB. Trim to just the clip you need and drop the width to 480px or below. Smaller dimensions make a huge difference — cutting width in half roughly quarters the file size.
20 FPS looks smooth, but it doubles the frame count compared to 10 FPS — and doubles the file size along with it. For most screen recordings and demos, 8–10 FPS is plenty. Save high frame rates for fast action clips.
If the video preview doesn’t load, your browser probably can’t decode the codec. This happens a lot with HEVC/H.265 files. Re-encode the video to H.264 MP4 first — any free tool like HandBrake handles that in seconds.
Technical Details
- Processing: 100% client-side — nothing uploaded
- Encoding: gif.js with 2 Web Workers
- Input Formats: MP4 (H.264), WebM (VP8/VP9), OGG (Theora)
- Max Duration: 30 seconds per GIF
- Browser Support: Chrome, Firefox, Safari, Edge
Frequently Asked Questions
How do I convert an MP4 to GIF without losing quality?
Keep the quality slider low (around 5–10) and match the output width to your actual display size. There’s no point rendering a 1080p GIF if it’ll show at 400px wide. The fewer pixels you ask for, the sharper each one looks in the final file.
Why is my GIF file so large?
GIFs store every single frame as a full image — there’s no inter-frame compression like video has. A 10-second clip at 15 FPS is 150 separate images stitched together. Cut the duration, lower the FPS to 8–10, shrink the width, or bump the quality number up to 15. Any one of those helps; combine them for the biggest drop.
Is the video uploaded to a server?
No. Everything runs in your browser using JavaScript and the Canvas API. The video stays on your device the entire time, and the GIF is generated locally. Close the tab and all data disappears.
What’s the best frame rate for a GIF?
10 FPS is the sweet spot for most use cases — screen recordings, UI demos, tutorials. It looks smooth enough and keeps the file size reasonable. For fast-motion content like gameplay, bump it up to 15. Below 8 FPS and things start looking choppy.
Can I convert a GIF longer than 30 seconds?
The 30-second cap is there for a reason — GIFs above that length balloon into massive files that crash browsers and frustrate viewers. If you really need a longer animation, split it into multiple GIFs or consider using a video format with better compression like WebM or MP4.