Supported: MP4, WebM, MOV (browser-dependent). No video is uploaded to a server.
How to Use This Video to GIF Converter
- Upload your video: Click "Choose Video" and select an MP4, WebM, or MOV file. Larger files take longer to load but are processed entirely in your browser.
- Set the clip range: Drag the "Clip Start" and "Clip End" sliders to select the portion of the video you want to turn into a GIF.
- Adjust frame rate: Choose between 5 and 30 frames per second. Lower frame rates create smaller files; higher frame rates look smoother.
- Set output width: Choose the GIF width in pixels (120 to 800). Height is calculated automatically to preserve aspect ratio.
- Convert: Click "Convert to GIF". The tool extracts frames, quantizes colors, and encodes the animated GIF in your browser.
- Preview and download: Once complete, preview the GIF, check the file size, and download it.
Calculation & Data Method
This tool generates an animated GIF entirely in the browser using the Canvas API and a JavaScript GIF encoder. The process is:
- Frame extraction: The video is seeked to the clip start, then played back at real speed. A frame is sampled at the interval defined by your chosen FPS. For example, at 12 fps, a frame is captured every ~83 milliseconds.
- Canvas drawing: Each sampled frame is drawn onto a canvas sized to your chosen output width. Height is computed to match the source aspect ratio.
- Color quantization: GIF supports a maximum of 256 colors per frame. The encoder builds a color palette from the sampled pixels and maps each pixel to the nearest palette color.
- LZW encoding: Each quantized frame is compressed with the LZW algorithm (the standard GIF compression) and written into the animated GIF container with frame delays.
- Delay per frame: The frame delay is calculated as 1000 ÷ FPS milliseconds. For 12 fps, each frame displays for approximately 83 ms.
Worked Video to GIF Example
Scenario: You have a 30-second 1920 x 1080 MP4 video and want to convert a 3-second clip to GIF at 12 fps and 480 px wide.
- Clip duration: 3 seconds
- Frame rate: 12 fps
- Total frames: 3 × 12 = 36 frames
- Output width: 480 px
- Output height: 480 × (1080 ÷ 1920) = 270 px
- Frame delay: 1000 ÷ 12 = ~83 ms per frame
- Result: A 480 x 270 animated GIF with 36 frames, approximately 1.5–3 MB depending on image complexity.
If you increased the frame rate to 24 fps, you would get 72 frames — roughly doubling the file size. If you reduced the width to 240 px, the file size would drop to roughly a quarter of the original.
Interpret Results
The output GIF loops infinitely by default. Frame delay is determined by your FPS setting. Lower FPS values create smaller files but choppier motion; higher FPS values look smoother but increase file size significantly because GIF stores every frame independently. Because GIF is limited to 256 colors per frame, gradients and photographic content may show banding or dithering. The preview shows the actual GIF you will download, including its file size and frame count.
Assumptions and Limits
- No audio: The GIF format does not support audio. The audio track is discarded.
- Color limit: GIF supports a maximum of 256 colors per frame. Gradients and detailed photos will show visible banding.
- File size: GIF files grow quickly with resolution, frame rate, and clip length. For clips longer than ~10 seconds, file sizes become impractical. Consider using MP4 or WebM for longer content.
- Browser support: Requires a modern browser with Canvas support (Chrome, Edge, Firefox, Safari).
- Processing speed: Conversion happens in real time relative to your clip length. A 5-second clip takes about 5 seconds to process.
- Memory: Very long clips or very high resolutions may cause memory issues, especially on mobile devices.
- No server upload: All conversion is local — your video never leaves your device.
Frequently Asked Questions (FAQs)
How do I convert a video to GIF online?
Upload your video, set the clip start and end times, choose your frame rate and output width, then click Convert. The tool generates an animated GIF that you can preview and download.
Does a GIF have audio?
No. The GIF format does not support audio. When you convert a video to GIF, the audio track is discarded. This is a limitation of the GIF file format itself.
What frame rate should I use for a GIF?
GIFs typically use 10 to 15 frames per second. Lower frame rates create smaller files but look choppier. Higher frame rates look smoother but create much larger files. 12 fps is a good balance for most GIFs.
Does this tool upload my video to a server?
No. All conversion happens locally in your browser using HTML5 Canvas and JavaScript. Your video never leaves your device.
Why is my GIF file so large?
GIF is an uncompressed format with a limited 256-color palette. File size depends on resolution, frame count, and image complexity. Reduce width, lower frame rate, shorten the clip, or reduce colors to shrink the file size.
Can I convert a MOV or WebM file to GIF?
Yes, as long as your browser can decode the video format. Modern browsers typically support MP4 (H.264), WebM, and sometimes MOV. If a format does not load, try converting it to MP4 first.