Video to GIF

Trim a clip and export an optimized GIF with palette control, all in your browser.

Video

Drop a video here or pick one, then trim it and choose a palette.

Everything runs in this tab: your files and inputs never leave your device.

Media engine

This tool runs ffmpeg inside your browser. The engine is a one time download of about 31 MB, and your browser keeps it afterwards, so later visits start it straight from the cache and work offline. Nothing is uploaded: your files and inputs never leave your device.

Trim

Seconds ("12.5"), mm:ss ("1:20"), or hh:mm:ss ("0:01:20.500"). Leave a box empty to start at the first frame or run to the end of the clip.

Size and rate

Set an end time to see the frame count. At 12 frames per second, every second of video is 12 frames.

Colors

A per frame palette gives every frame its own 256 colors, so it handles scene changes and color shifts that a single global palette smears. It also makes a noticeably bigger file, so reach for it only when the global palette visibly breaks down. GIF has no real interframe compression, which means the same clip is often ten times larger as a GIF than as MP4 or WebM: if the place you are posting to accepts video at all, send the video.

Related tools

What it does

Turns a video clip into a GIF using the real two filter ffmpeg pipeline: palettegen builds a 256 color table from your footage, then paletteuse quantizes the frames against it. That is what separates a clean GIF from the muddy, banded output most converters produce. You control the trim window, the frame rate, the width, whether the palette is built once for the whole clip or fresh on every frame, which dithering method smooths the color steps, and whether the result loops. ffmpeg runs inside this tab through WebAssembly, so the clip stays on your machine.

How to use it

Drop a video in, or pick one, then press "Load media engine" the first time (a one time download your browser keeps afterwards). Type a start and end time as seconds, mm:ss, or hh:mm:ss to trim, and set the frame rate and width for the size you need. Press Convert, watch the progress, then preview the GIF and download it. If the frame estimate warns you, cut the range or drop the frame rate before running.

Why this one

The GIF sites cap you at a few seconds, watermark the output, queue you behind other jobs, and upload your clip to do it. Most of them also skip the palette pass entirely, which is why their GIFs look like they came out of 1998. This does the proper two pass palette pipeline locally, with no length cap beyond what your machine can hold, no watermark, and no signup: your files and inputs never leave your device.

FAQ
Why do my GIFs look banded or blotchy?
GIF allows only 256 colors per palette, so every gradient has to be approximated. A global palette picks one table for the whole clip, which is small but drifts when the scene changes; a per frame palette gives each frame its own 256 colors and handles those shifts at the cost of file size. Dithering is the other half: Sierra2 4a scatters the error to fake extra shades and looks smoothest, Bayer uses a fixed crosshatch that stays still between frames and compresses better, and turning dithering off gives flat bands that suit screen recordings and line art. If you see blotches, try the per frame palette; if you see moving grain, try Bayer or no dithering.
Why is the GIF so much bigger than the video?
GIF has no interframe compression worth the name and no modern entropy coding, so a clip that is 2 MB as MP4 can easily be 20 MB as GIF. The levers that actually work are length, frame rate, and width, in that order: trim harder, drop to 10 or 12 frames per second, and scale to 480 pixels wide or less. Palette and dithering choices change size too, but only by tens of percent. If the destination accepts video at all, an MP4 or WebM will look better and weigh far less.
Is my video uploaded anywhere?
No. The ffmpeg engine is downloaded once and then runs inside this tab, reading the file straight from memory: your files and inputs never leave your device. Nothing about the clip is logged or sent on, and the finished GIF is built and downloaded locally.

Keyboard shortcuts: press ? anywhere on this page to see them.