This page's code did not start.

Opening index.html directly from a folder blocks JavaScript modules, so nothing will happen when you choose a video. Serve the folder over http instead:

powershell -ExecutionPolicy Bypass -File serve.ps1

Then open http://localhost:8080/.

Video to GIF — convert a video to a GIF

Pick the section, the size, and the frame rate.

Language: English
View source
Your videos are processed in your browser. No processing upload.

Every frame is read, resized, quantized and written by your own browser, on your own hardware. Nothing here can fetch or send anything — there is no network feature in this tool at all — and there is no server on the other end of this page to send a video to even if there were.

Live check: checking…

Offline: checking…

Don't take our word for it: open DevTools, watch the Network tab, and make a GIF. Not one request carries a frame, a filename, or a byte of what you chose. Or unplug from the internet and make one anyway — a tool that sent your video away to be converted would simply stop.

1 Choose a video

2 Pick the section

Play the clip and mark the part you want. I sets the start where the playhead is, O sets the end, and both grips on the bar can be dragged.

0:00.000 —

3 Size and frame rate

Width The height follows, so the shape never changes. Width is what a GIF costs: half the width is a quarter of the pixels.

Exact width In pixels, between 16 and 1920.

Frames per second Not the video's own rate: frames are sampled from it. Twelve reads as motion; above twenty the file grows faster than the smoothness shows.

Dithering Mixes two palette colours where the right one is missing. Ordered, so a still background does not shimmer.

Loop forever Off plays it through once and stops.

Section
—
Output
—
Frames
—
Rough file size
—

View as Markdown

How to turn a video into a GIF

  1. Choose a video. Drop an MP4, MOV, M4V or WebM onto the picker, or select one by hand. It is read straight off your disk by the browser; nothing is sent anywhere while you do it.
  2. Mark the section. Play the clip and press I where it should start and O where it should end, or drag the grips on the bar. A GIF is a few seconds long — this is the setting that decides whether the file is small or enormous, far more than the other two.
  3. Choose the width and the frame rate. 480 pixels wide and 12 frames a second suits most things a GIF is for. Halving the width quarters the pixels; twelve frames a second reads as motion without paying for the ones nobody sees.
  4. Make it, and download. The frames are read, one palette of 256 colours is chosen for the whole animation, and each frame is written as only the part of the picture that changed. It plays on the page when it is done, which is the same file the download gives you.

The longer version

How to turn a video into a GIF Which section, which width and which frame rate to choose, why a GIF of a video is ten times the size of the video, and when to use one at all.

Questions

Is my video uploaded anywhere?

No. It is read, sampled and converted by your own browser on your own hardware. There is no server side to this tool, and the page's Content-Security-Policy names every address it may contact — none of them belongs to this site. Unplug from the internet and make a GIF anyway if you would rather check than be told.

Which video formats can I convert?

MP4, M4V and MOV are read directly, whatever is inside them: H.264, HEVC, AV1 or VP9, as long as your browser can decode that codec. Anything else your browser can play — WebM most obviously — is read by seeking the player to each instant instead, which is slower and slightly less exact about which frame lands where. A file the browser can neither read nor play, which in practice means AVI, WMV, FLV and most MKVs, is refused with a message saying so rather than failing halfway through.

Why is my GIF so big?

Because GIF is a format from 1987 that stores whole pictures rather than motion. There is no way to make one of a five-second clip that is as small as the five-second MP4 it came from — a GIF of a video is routinely ten times the size of the video. The three settings that actually decide it are, in order: how long the section is, how wide the picture is, and how many frames a second. Halving the width quarters the pixels, and it is pixels that cost.

Why only 256 colours?

That is the format: a GIF carries one table of at most 256 colours and stores each pixel as a number into it. This tool chooses those 256 by counting the colours in every frame of your section and splitting them into 256 groups — median cut, the standard method — so the palette fits your clip rather than being a fixed set of colours. Where a colour is missing, dithering mixes the two nearest ones so a gradient stays a gradient instead of becoming stripes.

What does the dithering setting do?

It trades a little noise for a lot of banding. With it on, a sky that would otherwise become four flat bands stays a gradient, at the cost of a faint texture and a larger file. With it off the picture is flatter and the file smaller, which suits screen recordings, line art and anything already made of flat colour. The dither used here is ordered rather than the error-diffusion kind, so an unchanged background stays perfectly still between frames instead of shimmering.

Is there a limit on the length or the size?

The page estimates retained frames, GIF output and temporary decoding buffers before starting, and refuses plans above a bounded planning budget. A browser device-memory hint can lower that budget; it does not measure free memory or guarantee that a tab will stay within it. A smaller width, shorter section or lower frame rate reduces the output work, while the source still needs its own decoding buffers.

Does it keep the sound?

A GIF cannot carry sound. There is no version of the format that has audio, which is the main reason the web mostly replaced GIFs with silent looping video. If the sound matters, keep the video — the Video Cutter will cut a section out of it without re-encoding a frame.

Is it free, and do I need an account?

It is free, and there is no account, no sign-in, no trial and no watermark. The site carries advertising, which is what pays for it; the ads are not given anything about your video.