Video6 min

How to Convert MP4 to GIF (with Perfect Color Palettes)

Convert MP4 to high-quality GIF using FFmpeg's two-pass palette workflow — sharp colors, no banding, all in your browser.

MP4→GIF conversion runs locally via Zro7 MP4 to GIF using ffmpeg.wasm. Videos never leave your browser.

To convert an MP4 to a high-quality GIF, use Zro7 MP4 to GIF. It runs FFmpeg's two-pass palette workflow (palettegen + paletteuse) in your browser, producing GIFs with vivid colors and no banding — instead of the muddy 256-color mess you get from a naive one-pass conversion. Nothing is uploaded.

Why GIFs usually look bad

GIF only supports 256 colors per frame. A one-pass conversion picks a generic web-safe palette that fits nothing well, so gradients band and skin tones turn gray. FFmpeg's palettegen filter analyzes your specific video and builds a custom 256-color palette; paletteuse then applies dithering to hide the color quantization. Same file size, dramatically better result.

Recommended settings

  • Framerate: 15 fps for most content (source 30/60 fps looks fine). Higher = larger file.
  • Width: 480–720 px; GIFs balloon fast at 1080p.
  • Dither: Bayer scale 5 for smooth gradients; Floyd-Steinberg for detail-heavy scenes.

Steps

  1. Open MP4 to GIF.
  2. Drop the video (MP4, MOV, WebM all fine).
  3. Set start/end timestamps and output width/fps.
  4. Click Convert. Two-pass palette runs automatically.
  5. Download the GIF.

When to skip GIF entirely

For any platform that supports it (Slack, Discord, most modern web CMSes), a short muted MP4 or WebM is 5–20× smaller than the equivalent GIF and looks better. GIF only wins when the destination truly requires it (email newsletters, legacy forums, Reddit inline previews).

Frequently asked questions

Why is my GIF still huge?

GIF has no inter-frame compression. Reduce fps, width, or duration — those are the three levers. 3 seconds at 15 fps at 480 px is a good ceiling for <5 MB.

Can I loop or reverse?

GIFs loop by default; the tool exposes loop count and a reverse toggle for boomerang effects.

Does it preserve audio?

GIF has no audio. If you need sound, keep the MP4.

What about APNG or WebP animation?

Both are supported as export options — smaller than GIF, better colors, but not universal.

Is anything uploaded?

No. ffmpeg.wasm runs in a Web Worker.

Related posts

← Back to blog