Video to GIF
Turn part of an MP4, MOV or WebM video into an animated GIF in your browser, with an optimized colour palette, a size estimate and a preview.
Times as seconds (75.5) or minutes:seconds (1:15.5).
The GIF is made by FFmpeg compiled to WebAssembly, in two passes (a colour palette tuned to your clip, then the frames). The first time, about 30 MB are downloaded, then kept in your browser's cache. A browser is slower than desktop software: keep clips short.
This GIF will be large and slow to make. For a lighter file, shorten the selection, lower the frames per second or reduce the width.
How to make a GIF from a video
- Drop a video on the box above, or click it to choose a file (up to 300 MB).
- The first 5 seconds are selected. Move to the moment you want and press Set start here, then Set end here, or type the times as seconds (
12.5) or minutes:seconds (0:12.5). Play selection replays the chosen part. - Choose the Frames per second and the Width. The line next to the button shows the length, the number of frames, the size in pixels and a rough estimate of the file size.
- Press Make GIF. A progress bar appears with a Cancel button.
- The animated GIF is shown as a preview. If you like it, download it; if it is too heavy, change the settings and make it again.
How the conversion works
A GIF can only hold 256 colours per frame, while a video frame has millions. The quality of a GIF depends mostly on which 256 colours are chosen. This tool uses FFmpeg’s two-pass method, the one recommended for good-looking GIFs:
- Palette pass. FFmpeg reads the selected part once and builds a palette of the 256 colours that best represent this particular clip (
palettegen), giving extra weight to the parts that move. - Encoding pass. It reads the clip again and maps every frame to that palette (
paletteuse), with light error-diffusion dithering to smooth gradients. Only the areas that change between frames are re-dithered, which avoids flickering noise and keeps the file smaller.
The frames are also resampled to the chosen frame rate and resized with the Lanczos filter, which keeps text and edges sharp. The result loops forever, like most GIFs on the web.
Everything runs in your browser with FFmpeg compiled to WebAssembly. The first time, about 30 MB are downloaded and kept in your browser’s cache. Your video is never uploaded.
Keeping the GIF small
GIF is an old and inefficient format: a GIF is often 5 to 10 times heavier than the same clip as MP4. Its size grows with width × height × number of frames, so:
- Shorten the clip. 2 to 6 seconds is typical for a reaction or a demo.
- Lower the frames per second. 10 fps looks smooth enough for most content and weighs half as much as 20 fps. Screen recordings often look fine at 5–8 fps.
- Reduce the width. Going from 640 px to 480 px divides the pixel count by almost two. 480 px is a good default for chat and social networks.
The size estimate assumes about 0.3 bytes per pixel per frame. Real clips vary a lot: flat screen recordings compress much better, grainy camera footage much worse. When the estimate goes above 15 MB or the clip exceeds 450 frames, the tool shows a warning. Beyond 1,500 frames it refuses, because the conversion would take too long and use too much memory in a browser.
Limits
A browser is slower than desktop software: each pass decodes the video on a single processor core. Short clips at moderate widths convert in seconds; long clips at full HD can take minutes. For a long excerpt, cut it first with the video trimmer, then convert only that part. Files your browser can’t play (AVI, some MKV) can still be converted, but without a preview: type the start and end times.
Frequently asked questions
Is my video uploaded?
No. The conversion runs in your browser with FFmpeg compiled to WebAssembly. Nothing is sent to a server.
Why is my GIF so large?
Because GIF compresses badly: each frame is stored almost as a full picture with 256 colours. Shorten the selection, lower the frames per second or reduce the width. Halving the width divides the size by about four.
What frame rate should I choose?
10 fps is a good balance between smoothness and size. Use 15–25 fps for fast motion such as sports or gaming, and 5–8 fps for screen recordings or slideshows.
Why are there two passes?
The first pass finds the 256 colours that suit your clip best; the second pass draws every frame with them. A single generic palette gives banding and wrong colours, which is why GIFs made this way look much cleaner.
Is the size estimate accurate?
It is a rough guide, not a promise. It uses an average ratio, and the real size depends on how much the picture moves and how detailed it is. The exact size is shown after the conversion.
Does the GIF keep the sound?
No. The GIF format has no audio. To keep the sound, trim the video instead, or extract the audio as an MP3 separately.
Related tools
- Video Trimmer Trim an MP4, MOV, WebM or MKV video in your browser. Pick the start and end on a preview, cut fast without re-encoding or frame-exact. No upload.
- Video Frame Grabber Extract any frame of a video as a full-resolution PNG or JPG image, step frame by frame, or capture one image every few seconds as a ZIP. No upload.
- Video Compressor Compress a video in your browser to share it by email or chat. Choose a quality or a target size in MB, lower the resolution, no upload.
- Video to MP3 Extract the sound of an MP4, MOV, WebM or MKV video as an MP3 file in your browser. Choose the bitrate, keep only a part, nothing is uploaded.