MP4 to GIF
Upload an MP4 video and convert it to an animated GIF. Choose the frame rate (10, 15, or 20 fps) and output width (320, 480, or 640 pixels) to control quality and file size. The tool uses ffmpeg's two-pass palettegen/paletteuse technique to produce significantly better-looking GIFs than a naive conversion — colors are analyzed across the entire video to build an optimal 256-color palette.
GIFs are useful for short loops, reactions, tutorials, and anywhere you need an animated image that works without a video player. Keep clips short (under 10 seconds) to avoid enormous file sizes — GIF is inherently less efficient than video codecs.
Everything runs in your browser using ffmpeg.wasm — your video is never uploaded to a server.
By The Paper Room Editorial Team — Video Tools
Frequently asked questions
Why is the GIF file so much larger than the MP4?▼
GIF uses lossless per-frame compression without inter-frame prediction, making it inherently less efficient than video codecs like H.264. A 2 MB MP4 clip might produce a 10-20 MB GIF. To keep file sizes manageable, use a lower fps (10), smaller width (320), and keep clips short.
What fps should I choose?▼
10 fps is good for most GIFs and keeps file size small. 15 fps looks smoother and works well for tutorials or UI demonstrations. 20 fps is the smoothest but produces the largest files. Most GIFs on the web are 10-15 fps.
What does the two-pass palette technique do?▼
GIFs are limited to 256 colors. The two-pass technique first analyzes all frames to find the optimal 256 colors for the entire video, then uses that palette when converting. This produces much better color accuracy than the default single-pass conversion, especially for videos with gradients or varied colors.