How to Convert Video to GIF
GIFs are everywhere: Slack reactions, tutorial snippets, social media posts, documentation examples. They play automatically, loop endlessly, and work in places where video embeds do not. Converting a video clip to GIF is the most common way to create them, and a browser-based converter handles the entire job locally without uploading the source video.
When to use GIFs
- Chat and messaging: reaction GIFs, quick demos, funny moments
- Documentation: short UI walkthroughs that show a feature in action
- Social media: eye-catching animations for posts and comments
- Email: GIFs play inline where video does not
- Presentations: looping animations that do not require clicking play
- Bug reports: a 5-second GIF of a UI glitch is worth a thousand text descriptions
- Tutorials and how-tos: stepwise interaction sequences that need to play without controls
How to convert video to GIF
- Upload your video: select a video file in MP4, WebM, MOV, or other common formats.
- Set GIF parameters: choose the start time, duration, frame rate (5-24 FPS), and output width (240-800px).
- Download your GIF: the converter uses a two-pass palette method for better color accuracy, then produces your animated GIF.
A brief history of the GIF format
GIF (Graphics Interchange Format) was created by Steve Wilhite at CompuServe in 1987 to display color images over slow dial-up connections. The format uses LZW compression, which was efficient for the limited color palettes typical of computer graphics in the late 1980s. GIF89a, released in 1989, added animation support: multiple frames stored in a single file, each with a configurable delay, played back in sequence.
Animated GIFs became iconic on the early Web (1995-2005): spinning email icons, dancing baby animations, "under construction" banners. The format faded with the rise of broadband and HTML5 video (2008+), but came back in 2012-2013 thanks to Tumblr, Reddit, and Twitter, where short looping animations were ideal for fast content consumption.
In 2026, animated GIFs are technically inefficient (modern formats like APNG, WebP, and AVIF compress 5-10x better), but GIF remains universally supported. Every messaging app, every browser, every documentation tool reads GIF. That universality is why it persists even when better formats exist.
The two-pass palette method explained
GIF is limited to 256 colors per frame. Choosing which 256 colors to use makes a big visual difference.
Single-pass conversion: the encoder picks 256 colors as it processes each frame. Different frames may use different palettes, causing flicker, posterization, or muddy colors during palette transitions.
Two-pass palette: the encoder first analyzes ALL frames to find the optimal 256 colors for the entire animation, then applies that single palette consistently across every frame. Result: smoother color, no flicker, noticeably better quality on gradients and skin tones.
Tradeoff: two-pass takes about 2x longer to encode. For a 5-second clip, that means 4 seconds instead of 2. Worth it for almost every use case.
Some encoders also support "global palette + per-frame local palette" (the GIF89a spec allows it), which trades a small file-size increase for even more color fidelity. This is mostly visible on photographic content; cartoons and screenshots look identical with single global palette.
Keeping GIF file sizes reasonable
GIFs can get very large very quickly. Here is how to keep them under control:
| Setting | Small file | Medium | High quality |
|---|---|---|---|
| Width | 320px | 480px | 640px |
| Frame rate | 8 FPS | 12 FPS | 15 FPS |
| Duration | 2-3 sec | 3-5 sec | 5-8 sec |
| Typical size | 500 KB-1 MB | 1-3 MB | 3-8 MB |
The biggest factors are width and duration. Halving the width reduces file size by roughly 75% (4x fewer pixels per frame). Doubling the duration roughly doubles the file size. Frame rate has a smaller effect because GIF interframe compression skips unchanged pixels.
GIF vs WebP vs APNG vs MP4
- GIF: universal support, limited to 256 colors per frame, no audio, larger file sizes. Best for messaging, email, and documentation where compatibility matters most.
- WebP (animated): 5-10x smaller files than GIF, full 24-bit color, supported in all modern browsers (Chrome 32+, Firefox 65+, Safari 14+, Edge 18+). Best for web pages where you control the audience.
- APNG: similar to WebP, full color, supported in modern browsers but rarely supported in messaging apps. Niche use today.
- MP4 (silent loop): smallest file sizes, full color, full video quality, but does not auto-play in all contexts and may not loop without explicit attributes. Best for high-quality looping content where you can control the player.
If you are sending to chat, email, or unknown audiences, use GIF. If you control the website where it appears, use WebP. If you need top quality and have a video player, use looped MP4.
Common pitfalls
- GIFs of dark scenes look posterized: limited palette especially struggles with smooth gradients in dark backgrounds. Brighten the source video, or accept the artifact, or use WebP instead.
- GIFs of text or UI look fuzzy: GIF compression introduces dithering artifacts around hard edges. For screen recordings of text, increase the width to 800-1000px so anti-aliasing remains readable.
- GIF is too large for messaging app upload limits: Slack typically allows 50 MB, Twitter 15 MB for GIF, Discord 8 MB on free tier. If your GIF exceeds the limit, reduce duration first (biggest impact), then width, then frame rate.
- GIF plays at wrong speed: each frame has its own delay in the GIF, measured in 1/100ths of a second. Some encoders round inconsistently. Modern browsers correct this; some older apps do not. If you see speed inconsistency, try re-encoding with a different tool.
- Color shifts between source video and GIF: GIF uses sRGB color space; HDR videos must be tone-mapped down. The two-pass palette helps but cannot fully reproduce HDR content.
- Transparency loss: GIF supports transparency but only fully transparent or fully opaque (no partial alpha). If your source video has soft-edged transparency, expect aliased edges in the GIF.
Tips
- Trim the video first: if you only need a 3-second moment from a longer clip, trim the video down before converting. Less footage means a smaller GIF.
- Keep it short: the best GIFs are 2-5 seconds. Longer animations become very large and lose the quick, punchy quality that makes GIFs effective.
- Lower the frame rate: 10-12 FPS looks smooth enough for most uses and is much smaller than 24 FPS. Reserve high frame rates for smooth motion like UI animations.
- Reduce the width: a 480px wide GIF is more than enough for Slack, email, or documentation. You rarely need 800px.
- Crop tightly: removing unused background space reduces pixel count and file size. A 640x360 GIF cropped to 400x300 saves ~50% of the file size.
- Consider WebP for the web: if your audience uses modern browsers, an animated WebP looks identical at roughly 1/8th the file size of a GIF. Tools like ffmpeg can produce both from the same source.
Privacy
The video-to-GIF converter runs entirely in your browser. The source video file you upload never leaves your device, the converted GIF is produced locally, and nothing is logged or stored on a server. This matters because video clips often contain sensitive content: internal product demos, customer screen recordings, personal moments not meant for public hosts. Cloud GIF converters by design upload your video to their servers, sometimes retaining the source for "service improvement" or analytics. A browser-based converter has none of that exposure.
Frequently Asked Questions
Why are GIFs so much larger than the original video?
GIFs use a simple frame-by-frame format with limited compression. A 5-second MP4 clip might be 500 KB, but the same clip as a GIF could be 5 MB. Reducing the frame rate, dimensions, and duration helps keep GIF sizes manageable.
What frame rate should I use?
10-15 FPS is good for most GIFs. Higher frame rates (20-24) look smoother but create much larger files. Lower rates (5-8) work for simple animations or reactions.
Can I make a GIF loop?
GIFs loop by default. When you convert a video clip to GIF, it will automatically repeat endlessly when viewed in a browser or messaging app.
What is the two-pass palette method?
The first pass analyzes all frames to find the best 256 colors for the entire animation. The second pass applies that optimized palette. This produces noticeably better color quality than a single-pass conversion.