By Updated

GIF to Video Converter

Convert any animated GIF into a much smaller mp4 or webm: entirely in your browser via ffmpeg.wasm. mp4 + auto-play loop is typically 10-20x smaller than the original GIF.

Interactive tool

ffmpeg.wasm engine loads on first run (~32 MB)

The engine is cached for the rest of your session. Every transcode runs entirely in your browser: files never leave your device.

Threading: detecting…

Drop a GIF to convert

Animated GIF in, smaller mp4 or webm out.

What is the GIF to Video Converter?

A free, in-browser tool that turns an animated GIF into a much smaller mp4 (H.264) or webm (VP9). Same loop, same length, dramatically lower bandwidth, perfect for landing pages, docs, and embeds. No upload, no signup.

How to Use the Converter

  1. 1Drop a .gif file (animated)
  2. 2Pick mp4 or webm
  3. 3Pick a loop strategy: once, finite, or infinite
  4. 4Click Convert
  5. 5Preview the silent video and download
What you get

Key features

mp4 + webm output

H.264 + AAC for universal compatibility, or VP9 for the smallest webm

Loop strategies

Once, N times, or infinite: controlled via -stream_loop

Even-pixel scale guard

Adds scale=trunc(iw/2)*2:trunc(ih/2)*2 so libx264 + yuv420p never errors out

Faststart for mp4

Adds -movflags +faststart so the file plays from the first byte over HTTP

Multi-threaded ffmpeg.wasm

Uses SharedArrayBuffer when available for faster transcoding

100% private

No upload, no logs, no signup: the GIF stays in your browser

Why Convert GIFs to Video?

GIFs use a 256-colour palette and have no inter-frame compression, which makes them 10-20x larger than the same content as an H.264 mp4 or VP9 webm. Replacing GIFs with auto-playing muted video is one of the single biggest wins for web page weight: every major site (Twitter, Reddit, Imgur) does it.

Common use cases

  • Shrink a reaction GIF before posting where uploads count against quota
  • Replace a 5 MB landing-page GIF with a 300 KB mp4 + auto-play loop
  • Convert a documentation GIF into a chat-platform-friendly mp4
  • Make a tweet-friendly looping clip from any animated GIF
  • Compress an old GIF screen capture for an issue tracker

mp4 vs webm

  • mp4 (H.264 + AAC): universal compatibility. iMessage, Twitter, Slack, every browser.
  • webm (VP9): 30-50% smaller for the same quality, but Safari < 14 cannot play it.

Auto-play loops in HTML

For a true GIF-replacement embed, use <video autoplay loop muted playsinline src="...">. Browsers only autoplay muted video, so do not strip the muted attribute even when there is no audio track.

Loop strategies explained

  • Once: single playthrough; perfect for "video that fires once on hover".
  • Finite N: pre-bakes N repetitions into the file; great for chat platforms that won't loop.
  • Infinite: uses container-level metadata; the player has to respect the loop attribute.
Pro tips

Tips & best practices

Always pick mp4 unless you need webm

mp4 + H.264 plays everywhere. webm is smaller but still has compatibility gaps on older platforms.

Infinite loops are best done via HTML

Pick "once" + use <video loop> in HTML: the file stays small and the player handles the loop.

GIFs are silent, so is the output

The converted file has no audio track. If you need sound, start with a real video file instead of a GIF.

Built for trust

Privacy & security

Conversion runs entirely in ffmpeg.wasm inside your browser. The source GIF is never uploaded, logged, or stored. Engine artefacts are served from our own origin (not a third-party CDN).

Frequently Asked Questions

Why is the converted file so much smaller?

GIFs are limited to 256 colours and have no inter-frame compression. Modern video codecs (H.264 in mp4, VP9 in webm) compress changes between frames, so the same animation is typically 10-20x smaller.

Will it auto-loop like a GIF?

On the web, embed it with <video autoplay loop muted playsinline> and it will behave exactly like a GIF: except it’s smaller and CPU-friendly. The Once mode pairs perfectly with HTML <video loop>.

Does the output have sound?

No. GIFs do not have an audio track, so the converted file is silent. (Browsers require muted videos to autoplay anyway, so this is usually what you want.)

Should I pick mp4 or webm?

Pick mp4 for universal compatibility (Twitter, iMessage, Slack, every browser). Pick webm for the smallest file, but be aware Safari < 14 cannot play it.

Does the file get uploaded?

No. Conversion runs locally via ffmpeg.wasm. The engine artefacts are served from the same origin under /ffmpeg/<version>/.