About the Video to GIF
GIF is a 1990s format with 256 colours per frame and no video compression to speak of, so the size of the result is decided mostly by three numbers you control here: how many frames there are, how wide they are, and how much changes between them. Length is capped at 30 seconds and frame rate at 20 per second. A five second clip at 10 frames per second and 480 pixels wide is typically one to a few megabytes; a 30 second clip at 720 pixels can run into tens of megabytes, and the page warns before and after when a GIF is likely to be too heavy to share.
The page decodes the frames at the times you ask for with WebCodecs, scales them with the canvas, and writes the GIF with gifenc. Colours are reduced with a quantiser, either separately for each frame, which looks best, or once for the whole clip, which avoids colour flicker between frames and is a little smaller. Frame delays are rounded to hundredths of a second the way the format requires, with the rounding error carried forward so the loop keeps its true length. Loop can be forever, once, or three repeats.
GIF has no audio, so only the picture is converted; to keep the sound, use the Video Converter or pull it out with Extract Audio from Video. To check delays and loop count in the result, open it in GIF Viewer, and to take it apart again use GIF Splitter.
How to use
- Drop an MP4, MOV, WebM or MKV video on the pane.
- Set the Start time and Length of the part you want, up to 30 seconds.
- Pick the frame rate and width. Lower values give a much smaller file.
- Wait for the encoding bar, check the preview and the file size, then press Download.
Common questions
- Why is my GIF so large?
- GIF stores every frame as an indexed picture with only simple compression. Size grows with frames times width times height, so halving the width cuts the file to roughly a third or less, and halving the frame rate cuts it in half. A short MP4 or WebM of the same clip is usually many times smaller.
- What is the longest clip I can convert?
- 30 seconds, and at most 600 frames in total. Longer clips would produce files too large for browsers and chat apps to handle comfortably.
- What is the difference between the two palette options?
- A palette per frame picks the best 256 colours for each picture, which looks best but can shimmer when colours change. One palette is chosen from several frames across the clip and reused, which keeps colours steady and the file smaller, at some cost for scenes whose colours change a lot.
- Is the video uploaded?
- No. The video is decoded and the GIF written inside your browser. It needs a browser with WebCodecs video decoding (current Chrome, Edge and Firefox have it); the page names what is missing if yours cannot.
- Will the GIF have sound or transparency?
- Neither. GIF cannot carry audio, and the frames are flattened onto an opaque picture.