Skip to content

Convert MP4 to GIF online

Turn the first few seconds of an MP4 video into a good-quality animated GIF, processed entirely in your browser.

Processed on your device via WebAssembly. Nothing is sent to any server.

or click to select it

Turn an MP4 video into a good-quality animated GIF, directly in your browser, without installing anything or uploading the file to a server.

First generates a color palette tailored to your specific video, then applies it while building the GIF — a two-pass technique that produces far more colors and less banding than a generic GIF.

Use cases

  • Turn a funny moment from a video into a GIF to share in chat.
  • Convert a short clip from a screen recording into a GIF for documentation.
  • Generate an animated preview of a video for a website or social post.

How it works

  1. 1

    Upload your MP4 video

    Only the first 30 seconds of the video are used.

  2. 2

    Click Convert

    ffmpeg.wasm generates an optimized color palette and builds the GIF in your browser.

  3. 3

    Download the GIF

    Once it's done, download the resulting animated GIF.

Technical details

Uses ffmpeg.wasm inside a Web Worker in your browser. To keep the process manageable, only the first 30 seconds of the source video are used — GIFs grow very quickly in size with duration, even from a source file of just a few MB.

Frequently asked questions

Why is only the first 30 seconds used?

A GIF isn't compressed like a video — every frame is heavy, so limiting the duration avoids huge files and excessive wait times.

Why does it run in two passes instead of one?

The first pass analyzes the video's actual colors to build an optimal palette; the second applies it while generating the GIF. The result has far fewer artifacts than converting directly.

Video & Audio