Turn any short MP4, MOV or WebM clip into a crisp animated GIF. Trim the exact moment, choose the frame rate, width, colors, dithering and loop count, see an estimated file size before you convert, and download a GIF with no watermark. Your video never leaves your device.
Last updated:
GIF settings
Encoder
Estimated size: choose a video first
Your GIF
Advertisement
Advertisement
How to use the MP4 to GIF
Choose a video by dropping it on the box or clicking to browse.
Trim the clip: type start and end times, or play the video and press Set to now. Press Play selection to check it.
Pick the GIF settings: frame rate, width, colors, dithering, loop and speed. The estimated size updates as you change them.
Press Convert to GIF and wait for the progress bar. The first ffmpeg run downloads the encoder once.
Press Download GIF, or Change settings to try a smaller or smoother version.
How the high-quality GIF conversion works
The Best quality encoder runs the same two-step method that video professionals use with ffmpeg on the command line. First palettegen scans every frame of your trimmed clip and builds the 256 (or fewer) colors that represent it best. Then paletteuse maps each frame to that palette with the dithering you chose and stores only the rectangle that changed since the previous frame. The filter chain looks like this:
Without a custom palette, a GIF falls back to a generic one and skin tones, skies and gradients turn blotchy. Lanczos scaling keeps the picture sharp when you make it smaller.
Why width, fps and length matter so much
Before compression, a GIF frame stores one byte (a palette index) per pixel, so the raw size is width × height × frames bytes, where frames = seconds × fps ÷ speed. LZW compression and storing only the changed rectangle of each frame shrink this, but the raw number shows how quickly a GIF grows. Example for a 5 second 16:9 clip:
Size
Pixels per frame
Raw data at 10 fps (50 frames)
Raw data at 15 fps (75 frames)
Raw data at 25 fps (125 frames)
320 × 180
57,600
2.9 MB
4.3 MB
7.2 MB
480 × 270
129,600
6.5 MB
9.7 MB
16.2 MB
640 × 360
230,400
11.5 MB
17.3 MB
28.8 MB
Doubling the width quadruples the pixels; doubling the frame rate doubles the frames. The size estimate above the Convert button encodes real frames of your clip, so use it to compare settings.
Tips for small, sharp GIFs
Trim hard. Length is the biggest factor: a 3 second loop is often all you need.
Lower the frame rate before the width. Going from 24 to 12 fps halves the frames, and most viewers barely notice.
Use "Moving parts" for screen recordings and clips with a still background, so the palette is spent on what changes.
Choose None or Bayer dithering for flat graphics; error-diffusion dithering adds noise that compresses poorly.
Check upload limits: many chat apps and forums limit GIFs to between 8 and 15 MB.
Frequently asked questions
How do I convert an MP4 to a GIF without losing quality?
A GIF can only hold 256 colors per frame, so some loss is unavoidable, but you can keep it small. Use the Best quality encoder, which builds a custom palette for your clip with ffmpeg's palettegen and maps every frame to it with paletteuse, keep 256 colors and Sierra dithering, and use a width of 480 to 640 px at 12 to 15 fps.
Why is my GIF so much bigger than the MP4?
MP4 uses modern video compression that predicts each frame from the previous ones and stores only the differences very efficiently. GIF uses simple LZW compression of 8-bit indexed pixels, so the same clip is usually many times larger as a GIF. Every pixel of width, every extra frame per second and every extra second adds to the size.
What frame rate and width should I use?
10 to 15 fps looks smooth for most clips and keeps the file small. Use 20 to 30 fps only for fast motion. For chat apps and websites 480 px wide is a good default; 320 px is enough for reaction GIFs, and 640 to 800 px for detailed screen recordings.
What does dithering do?
Dithering mixes nearby palette colors in a fine pattern to fake colors the 256-color palette doesn't have, which avoids ugly banding in gradients and skies. Sierra and Floyd–Steinberg spread the color error to neighbouring pixels and look smoothest. Bayer uses a fixed grid pattern that compresses better. None gives flat color areas and the smallest files for cartoons and screen recordings.
How accurate is the size estimate?
It encodes a few real frames from the middle of your clip at the chosen settings and scales the result to the full number of frames, so it is usually within about 20 to 30%. Clips where the amount of motion changes a lot, or the ffmpeg encoder's different palette, can make the final file smaller or larger.
Is there a length limit?
Up to 1,500 frames per GIF, for example 100 seconds at 15 fps. In practice GIFs longer than 10 to 15 seconds become very large; for longer clips an MP4 or WebM is a much better choice.
Is my video uploaded to a server?
No. The video is decoded and the GIF is encoded inside your browser, either by ffmpeg compiled to WebAssembly or by the built-in encoder. Only the encoder program itself is downloaded from a public CDN the first time; your file never leaves your device.
Are all the tools on FreeToolCabin tested for quality and accuracy?
Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.