A video file is not a GIF
Video to GIF means taking a moving picture you already have and writing a GIF from a piece of it. People also ask how to convert video to gif, or how to turn a video into a GIF, and those are the same job. A video keeps its own timing, its own size, and often a soundtrack. A GIF is a stack of pictures, a wait on each picture, and a note that sends the player back to the first picture. The soundtrack does not come along. The wait is a whole number of hundredths of a second, and this page will not write a wait below 2.
The work happens in the browser you have open. You choose a video, you set where the piece starts, where it ends, how many pictures to keep each second, and how wide the result should be. One button writes the file and downloads it. The video is not posted anywhere. Nothing is painted on top of the pictures. If the browser cannot decode the file, the page says so on the same screen and stops.

The end time is not a frame
A ferry crosses the striped harbor in 10 frames. The hull starts against the left side of the striped harbor, and each later picture carries it farther toward the open water. The stripes in the water stay put. Only the boat itself travels. The stack, the dark hull, and the pale wake all move together across the striped water.
Samples are taken on a half-open stretch. The first picture is the start time. The next ones step forward by one divided by the frame rate. A time that lands exactly on the end is left out. From 0 seconds to 2 seconds at 10 frames per second, that is twenty pictures: 0.0, 0.1, and so on through 1.9. The picture at 2.0 is not in the file. A shorter stretch from 0.5 to 1.5 at the same rate keeps ten pictures, and the one at 1.5 is the one that gets dropped.
That rule is why two tries with the same frames and the same settings write the same bytes. The times do not drift, and the colors are chosen once for the whole file.
Frame rate is a wait, not a resize
The frame rate does not change how many pixels are in the picture. It decides how far apart the samples sit, and it decides the wait stored on every frame. The wait is the nearest whole number of hundredths to 100 divided by the frame rate. At 10 the wait is 10. At 5 the wait is 20. At 12 the wait is 8. At 15 the wait is 7. At 24 the wait is 4. Each of those is within half a hundredth of the exact split. A rate that would need a wait of 0 or 1 is refused, because browsers stretch those two values out to about a tenth of a second and the motion would not be the rate you picked.
A higher rate keeps more pictures from the same stretch, so the file grows and the motion looks smoother. A lower rate keeps fewer pictures and the wait on each one is longer. The clock here is the slow setting. If you already have a GIF and only the wait is wrong, you can change how long each frame of a GIF waits without sampling a video again.

Each picture of the clock waits 20 hundredths of a second. That wait is what a five-per-second setting stores, since 100 divided by 5 lands on 20. The striped wall, the tick marks, and the shelf do not move. Only the hand on the cream face moves from one picture to the next.
Width sets the size, and height follows

The tram, the brick row, and the road occupy a canvas 440 by 160. The width is the number typed on the tool. The windows stay in their rows while the tram rolls past them, and the road dashes keep the same spacing. The bricks stay level while the tram rolls along the row.
You set the width. The height is that width times the video’s height, divided by the video’s width, then rounded to a whole pixel. A 40 by 20 frame requested at width 20 comes out 20 by 10. It is not squashed into a square, and it is not given a height you type separately. Both edges have to land between 1 and 4,096 pixels. If the rounded height would fall outside that, the page does not write a file.
The tram in this picture keeps its shape while it travels. Scaling happens before the colors are reduced to the palette the GIF can hold. The whole file shares one palette.
Some choices never become a file
Four refusals show up as a line of text on the tool, and the download does not start. A start time that is later than the end time is backwards, so it is refused. A start that sits on the end, or a start that sits past the clip once the end has been pulled in, is an empty stretch, so it is refused. A stretch that would keep more than 120 pictures is refused. At 10 frames per second that ceiling is 12 seconds. At 5 frames per second it is 24 seconds. The way through is a shorter stretch or a lower frame rate, not a second button.
A file the browser cannot play is also refused. AVI, MKV, WMV, and FLV are turned away by their names, because this page does not ship another decoder for them. A file that looks like a video but never reports a width is turned away the same way.
This hallway file is 8,969 bytes. A start that meets the end, a start that comes after the end, and a range that would keep more than 120 pictures never become a download. The door in the hall still opens across the pictures that do get written. The empty and backwards ranges are the ones that stop.

A long end time stops at the clip
The park is drawn with 32 colors: grass, path, tree, and bicycle. Every one of those colors appears in the first picture of the park, from the pale sky down to the bicycle wheels. Early pictures put the bicycle farther left along the dirt path. Later pictures leave it farther over to the right.

If you type an end that is later than the video, the end becomes the length of the video before any sample is taken. A 2 second clip with an end of 9 seconds is the same job as an end of 2 seconds. The pictures, the waits, and the bytes match. The start is never pulled below zero. A start that is still past that shortened end is the empty case, and nothing is written.
The red bicycle in the picture is the same kind of stop. It travels, and then the last pictures hold still. Holding still is a real frame with the same wait as the ones before it. It is not a missing frame, and it is not a frame taken from past the end.
The GIF loops, and it has no soundtrack

The fish takes 3 frames to circle the bowl. The Netscape loop count is 0, so the player returns to the first place and continues. Nothing in the file is a soundtrack. If the motion is right and the weight is wrong, another page on this site can later shrink that finished file down.
Every file this page writes asks the player to loop forever. That request is the Netscape block with a count of 0. There is no control here for play-once or play-three-times. The fish in the bowl visits three places and then the player is sent back to the first place.
Audio never enters the file. A GIF has no track for it. The download is pictures and waits. If the pictures you wanted were already stills, turn still pictures into a GIF is the other door. If the GIF is the right motion and the wrong weight, make a GIF file smaller is the next stop.
How to turn a video into a GIF
- Choose the video. Drop an MP4, WebM, or MOV. It stays in this browser. AVI, MKV, WMV, and FLV are refused, and so is a file that never reports a picture size.
- Set the range, the rate, and the width. Start and end are seconds. The frame rate is 5, 10, 12, 15, or 24. The width is a whole number of pixels. Height follows the video. The line under the controls tells you how many frames that choice will write.
- Make the GIF. One button samples the video, writes the GIF, and downloads it. The same frames and the same settings write the same bytes. More than 120 frames is refused before the file is built.
- Open it somewhere else only if you want. The GIF can be handed to another tool on this site after it exists. Sharing, if you choose it later, sends the GIF.
Questions about turning a video into a GIF
Does the video get uploaded?
No. The page reads the file with a video element, draws the chosen frames, and builds the GIF in the browser. There is no request that posts the video. A file the browser cannot decode shows an error on the tool and stays on your machine.
Why is the end time missing from the GIF?
The end time lives on the video clock. A GIF never receives that clock. It receives pictures, and a wait written on each picture. The moment you marked as the stop has no picture of its own and no field where a clock time could sit. What you watch is the motion from before you stopped, played again from the first picture.
Can I keep the sound?
No. The file this button writes is a GIF, and a GIF has no soundtrack. The fish in the bowl loops because of a Netscape count of 0. It does not loop because a sound is playing. If you need the sound, keep the video.
What if the GIF is too long or the wrong size?
More than 120 frames is refused. Shorten the range or pick a lower frame rate. The width is whatever you set, and the height follows the video’s shape, with both edges kept between 1 and 4,096. After the file exists, another tool on this site can change the wait or make the file smaller. This page does not do those jobs in the same step.