MP4 to GIF Converter
Turn an MP4 clip into a crisp animated GIF — choose the frame rate and width. Runs entirely in your browser; your video never leaves your device.
What does converting MP4 to GIF actually do?
MP4 to GIF conversion re-renders an H.264 video into an animated GIF, an image format from 1987 that stores every frame as an indexed bitmap capped at 256 colours per palette. That palette limit is why GIFs show colour banding, and the lack of interframe compression is why the same clip is usually several times larger as a GIF than as the MP4 it came from. This converter runs a two-pass ffmpeg chain: the first pass analyses the clip and builds an optimised palette with palettegen=stats_mode=diff, and the second maps every frame onto it with paletteuse=dither=bayer, which is visibly cleaner than a single-pass export. You choose the frame rate (8, 10, 12, 15 or 20 fps) and the output width (320, 480, 640 or 800 px); height scales proportionally. The default, 12 fps at 480 px, suits most screen recordings. The whole conversion runs locally through ffmpeg.wasm, so your MP4 is never uploaded; the engine itself downloads once per session, on your first conversion.
How to Use the MP4 to GIF Converter
Three steps, all in your browser.
-
Load your MP4
Drag an MP4 onto the box or click to pick one. Short clips make the best GIFs — a few seconds is ideal.
-
Choose frame rate & width
Higher frame rate is smoother but larger; a smaller width keeps the file light. 12 fps at 480 px is a good default.
-
Make GIF & download
Click Convert. The GIF is built with a two-pass colour palette for clean quality, then you can preview and download it.
How big will my GIF be, and which frame rate and width should I pick?
GIF has no motion compression, so size scales with pixels × frames. These two controls are the only levers that matter.
Every frame of a GIF is stored as its own LZW-compressed image drawn from a palette of at most 256 colours. Nothing in the format can say “this block moved four pixels left”, so a GIF’s weight scales almost linearly with width × height × frame count. The table below is the raw pixel budget for a five-second 16:9 clip at each setting offered on this page, indexed against the 480 px / 12 fps default.
| Size | Frame rate | Frames in 5s | Pixel budget | vs default | Best for |
|---|---|---|---|---|---|
| 320×180 | 10 fps | 50 | 2.88 M | 0.37× | Chat and Slack reactions |
| 320×180 | 15 fps | 75 | 4.32 M | 0.56× | Smooth motion at small size |
| 480×270 | 10 fps | 50 | 6.48 M | 0.83× | Forum and issue-tracker posts |
| 480×270 | 12 fps | 60 | 7.78 M | 1.00× | The default — start here |
| 480×270 | 20 fps | 100 | 12.96 M | 1.67× | Fast motion in a small frame |
| 640×360 | 12 fps | 60 | 13.82 M | 1.78× | README and documentation embeds |
| 800×450 | 12 fps | 60 | 21.60 M | 2.78× | Presentation size; expect a heavy file |
| 800×450 | 20 fps | 100 | 36.00 M | 4.63× | Avoid unless the clip is about a second |
Two things this converter does that a naive export does not. It builds the palette with palettegen=stats_mode=diff, so the 256 colours are chosen from the pixels that actually change between frames rather than from the static background — moving subjects keep their colour instead of being crushed into the backdrop. And it applies an ordered Bayer dither rather than error diffusion: the Bayer cross-hatch stays in the same place frame to frame, so LZW finds far more repeats and the file lands smaller, at the cost of a faint texture on smooth gradients.
Practical rule: halve the frame rate before you halve the width. Dropping 20 fps to 10 fps costs motion smoothness you rarely notice in a three-second loop; dropping 640 px to 320 px visibly softens text and faces. If the clip is longer than about ten seconds, trim it first with the Video Trimmer — length costs more than either setting.
Frequently Asked Questions
How do I convert an MP4 to a GIF?
Is my video uploaded to a server?
Why is my GIF large, and how do I shrink it?
Is there a length or file-size limit?
Does it add a watermark?
More video tools
MOV to MP4
Convert QuickTime MOV to a playable MP4.
MKV to MP4
Convert Matroska MKV to a playable MP4.
WebM to MP4
Convert WebM to MP4 for editors and uploads.
AVI to MP4
Convert legacy AVI to a modern, smaller MP4.
GIF to MP4
Shrink an animated GIF into a small MP4.
GIF to Video
Convert an animated GIF into a video file (MP4).
Video Trimmer
Cut a clip out of any video by start and end time.
MP4 to MOV
Remux an MP4 to MOV for Apple apps — lossless.