How to Convert MP4 to GIF
Converting an MP4 video to a GIF is one of the most common tasks in digital media work. Whether you are creating a reaction clip, a product demo, or a tutorial loop, the process takes just a few minutes once you know the right tools and settings. Here is how to do it well.
Using the GIFDB MP4 to GIF Converter
The fastest browser-based method is the GIFDB MP4 to GIF converter. Open it, click Upload, and select your MP4 file. Once the video loads, you will see a timeline with handles at each end. Drag the left handle to set your start time and the right handle to set your end time — you are trimming the clip to just the section you want in the GIF. For most purposes, a window of 2–8 seconds is ideal; longer clips produce much larger GIF files.
Select your output resolution. 480p is the right choice for most social media and messaging uses — it looks sharp on phone screens and keeps the file under 5 MB for clips up to about 6 seconds. If you need a crisper result for a website or portfolio, 720p looks noticeably better but produces a larger file. Click Convert, wait a few seconds, and download the GIF.
Using Ezgif for More Control
Ezgif.com is a free browser tool with more granular conversion controls. Go to the Video to GIF tab, upload your MP4, and you can set the start and end time in seconds, choose the frame rate (10, 15, 20, or 25 fps), set the output size, and choose whether to use a color palette optimized for the video content or a fixed palette. More fps means smoother animation but a larger file. For most content, 15 fps hits the sweet spot. Click Convert and download the result.
Using FFmpeg for Batch and Scripted Conversions
For developers or anyone who needs to convert multiple files programmatically, FFmpeg is the most powerful option. Install it from ffmpeg.org, then run a command like: ffmpeg -i input.mp4 -vf "fps=15,scale=640:-1:flags=lanczos" -loop 0 output.gif. This converts input.mp4 to a GIF at 15 fps, scaled to 640px wide with proportional height, using the high-quality Lanczos scaling algorithm, with infinite looping. Adding a color palette generation step produces significantly better color quality: run ffmpeg twice, first to generate the palette, then to apply it during conversion. The FFmpeg documentation has detailed examples for this two-pass approach.
Choosing the Right Settings
Frame rate is the main quality-versus-size trade-off. At 10 fps, animation is choppy but files are small — acceptable for simple demos and step-by-step sequences. At 15 fps, most content looks smooth enough for casual use. At 24 fps, fast motion looks clean but files can be very large. For the best results at 15 fps, it helps to start with a source video that was shot at a frame rate that divides cleanly into 15 — 30fps or 60fps source both divide to 15fps evenly, while 24fps source at 15fps output results in uneven frame drops that create subtle jitter.
After Conversion
Open your GIF in a browser to verify the animation, timing, and colors before using it. If the file is too large for your target platform, the guide on compressing GIFs covers the steps to reduce it further. For a comparison of GIF with the source MP4 format in terms of when each is the better choice, see GIF vs MP4. And for all the conversion tools and guides in one place, the main GIF format guide is the starting point.