Video to GIF

Video to GIF

Convert video clips to animated GIFs. Control FPS, size, duration, crop region. Free online video to GIF converter, works offline in browser

GIF is the worst format for video by every technical measure — 256-color palette, no compression of similar frames, 5-50x bigger than equivalent MP4. But GIF is the most universally embeddable format: works in every email client, every chat platform, every legacy CMS. For social media short clips, MP4 wins (smaller, better quality, autoplay on most platforms); for embeds in places that block video, GIF still rules. This tool converts MP4/WebM/MOV to GIF with quality controls, and equally importantly, suggests MP4 or WebP-animation alternatives when those would be better.

When GIF is the right format

  • Email — many email clients strip video tags but allow img with GIF source. A reaction GIF in a marketing email works; an MP4 typically does not.
  • Slack, Discord, Teams — all autoplay GIFs; some autoplay MP4 but many strip them down to a link/thumbnail.
  • GitHub READMEs — GIFs render inline; MP4 does not (links to download instead).
  • Legacy CMS / blog platforms — anywhere that allows img tags but not video.
  • Short loops (under 3 seconds) — GIF and MP4 size are closer for tiny clips; GIF wins on compatibility.
  • Print of digital art — surprisingly, some online art sites prefer GIF for animation submission.

When MP4 or WebP-animation is better

  • Modern social media (X, Instagram, TikTok, YouTube) — all prefer MP4. Most upload pipelines convert GIF to MP4 internally anyway.
  • Anywhere with a video player — MP4 takes 5-50x less bandwidth and shows in higher quality.
  • Long clips (over 10 seconds) — GIF size becomes prohibitive (10+ MB). MP4 is comparable to seconds long.
  • High motion — GIF's palette and inter-frame compression handle fast movement badly. Looks blocky.
  • High frame rate — GIF is technically capable of high fps but most renderers cap at ~50fps. MP4 handles 60fps natively.
  • WebP-animation — Chrome and Firefox supported since ~2020, Safari since 14. Smaller than GIF, larger than MP4. Use when you need animated images in modern browsers but want better quality than GIF.

Working example: a UI demo for a tweet

Input

A screen recording: 1920×1080, 8 seconds, 60fps, 24MB MP4

Output

Optimization strategy:

1. Resize to 720×405 (half size) — saves 75%
2. Reduce to 24 fps — saves 60% from 60fps
3. Quality: 80% — saves 20% with little visible loss

Results:
  Original MP4 (1920×1080, 60fps, 8s):  24 MB
  Optimized MP4 (720×405, 24fps):         1.8 MB
  Animated WebP (720×405, 24fps):         2.4 MB
  GIF (256 colors, 720×405, 15fps):      11 MB
  GIF (128 colors, 480×270, 12fps):       4 MB

Recommendation for Twitter: MP4 (auto-played natively, small file).
For a GitHub README: optimized GIF at 480×270 / 12fps / 128 colors.

GIF size growth is brutal. Doubling dimensions = 4x size. Doubling frame rate = 2x size. Most demo GIFs work fine at 480-720px wide and 10-15fps; smaller is almost always better.

GIF optimization tricks

  • Reduce dimensions — biggest single lever. A 480px-wide GIF is one-fourth the size of a 960px one at same fps and duration.
  • Reduce frame rate — 12-15 fps is fine for screen recordings. 30+ fps GIFs are wasteful for desk-top demos.
  • Reduce color palette — 256 colors is the GIF max. For UI demos with limited colors, 64-128 colors save substantially with no visible loss. For photographic content, 256 colors is typical.
  • Trim duration — every wasted second adds size. Cut tightly.
  • Inter-frame compression (some encoders) — only stores changes from the previous frame. Works well for static-background screen recordings.
  • Dithering — adding noise hides palette banding. Floyd-Steinberg is the standard.
  • Loop count — most GIFs loop infinitely. For demos that should play once and stop, set loop count = 1.

When to reach for this tool

  • You recorded a short screen capture and want to embed it in a README or email.
  • You have a reaction video and want a GIF for chat reactions on Slack/Discord.
  • You are publishing tutorial content on a platform that does not support video embeds.
  • You inherited GIFs that are several MB each and want to compress them for web performance.

What this tool will not do

  • It will not produce hours-long GIFs. Even with optimization, GIFs over 30 seconds become tens of MB and impractical. Use video formats for long content.
  • It will not improve source quality. A blurry, low-resolution source becomes a blurry, low-resolution GIF.
  • It will not record screen — for capturing, use a screen-recorder tool first.
  • It will not handle audio. GIF has no audio support. If your video has audio that matters, use MP4 or WebM.

Conversion happens in your browser via FFmpeg-WASM. Videos and resulting GIFs never upload anywhere. Useful for confidential demos and internal screen recordings.

Frequently asked questions

Why is GIF so much larger than MP4?

GIF uses lossless LZW compression on each frame stored as 8-bit palette images. MP4 uses inter-frame compression (only stores diffs from previous frame) and chroma subsampling (eyes are less sensitive to color detail than luminance). Modern video codecs are 50+ years more advanced than GIF (1987 vs H.264 2003, AV1 2018).

Should I use animated WebP instead of GIF?

For modern browsers, yes — smaller than GIF and supported in Chrome, Firefox, Safari, and Edge since ~2020. The catch: many platforms (email, older CMS) do not support animated WebP — they show only the first frame. For broad compatibility, GIF still wins.

How long can a GIF be?

No protocol limit. Practical: under 5 seconds for "reaction" use; under 30 seconds for short demos. Beyond 30 seconds, GIF size grows past 10MB and becomes impractical. Switch to video format.

Why does my GIF look "bandy" with stripes?

256-color quantization combined with no dithering produces visible bands in areas with smooth gradients (skies, soft shadows). Enable dithering (Floyd-Steinberg) to scatter the bands as noise, which looks better. Or accept the limitation — GIF is what it is.

Can I convert a GIF back to MP4?

Yes — easy. FFmpeg, ImageMagick, or browser-based tools handle it. The result is smaller and higher quality if the original was a video that became a GIF. If the original was always a GIF (hand-animated), the MP4 captures the same content but loses no information.

Why are some GIFs ugly compared to others?

Frame rate, palette, dither, and source quality. A high-quality screen-record source at 12fps with 256 colors and Floyd-Steinberg dither looks good. A phone-recorded video downsampled to 8fps with 32 colors and no dither looks terrible. Optimize deliberately.

Related tools

Published · Updated · E-Utils editorial team