How to Make a High-Quality GIF from a Video (Without a Huge File)

Learn why GIFs made from video look grainy or bloated, how palettes, frame rate and width affect size, and how to make a sharp GIF from any clip.

Updated September 29, 2026 5 min read

Use the free Video to GIFTurn a video clip into a high-quality animated GIF with palette optimisation

GIFs are still the lowest-common-denominator animation. They play inline in README files, issue trackers, help-centre articles, chat apps and email clients that would never autoplay a video. The trouble starts when you convert a video clip: the result is either blotchy and banded, or it looks fine and weighs 30 MB.

Both problems come from the same place: the GIF format itself. This guide explains the three settings that decide quality and size, shows how a two-pass palette makes a visible difference, and walks through creating a GIF in the browser or with ffmpeg.

What makes a GIF look bad or weigh too much

The 256-colour limit

Each GIF frame can use at most 256 colours from a palette. A video frame may contain tens of thousands. The converter has to pick which 256 colours to keep and approximate the rest, usually with dithering, a pattern of dots that tricks the eye into seeing in-between shades.

A naive conversion uses a generic palette, which wastes slots on colours that never appear, so gradients such as skies and skin tones band badly. A per-clip palette, generated by analysing the actual clip first, spends all 256 slots on colours that matter. That is the single biggest quality improvement you can make.

Frames add up fast

GIF stores frames with lossless compression and only modest reuse between frames. File size therefore grows roughly with:

size ≈ number of frames × pixels per frame × (how much changes per frame)

Number of frames is clip length × frame rate. A 10-second clip at 24 fps is 240 frames; at 10 fps it is 100. Halving the width divides the pixel count by four. Those two settings matter far more than any "optimise" button.

Sensible starting points

Use Frame rate Width
UI demo, screen recording 8-12 fps 480-640 px
Reaction or meme clip 10-15 fps 320-480 px
Smooth motion showcase 15-24 fps 320-480 px, short clip

Screen recordings compress well because most of the screen stays still between frames. Handheld camera footage compresses badly because everything moves, so keep those GIFs short and small.

Make a GIF with our tool

The Video to GIF converter uses ffmpeg's two-pass method in your browser: pass one builds a palette from your clip, pass two maps every frame to it with ordered dithering and only redraws the changing parts.

  1. Open Video to GIF and drop an MP4, MOV, WebM or other video onto the box.
  2. Type the Start (m:ss) and End (m:ss) of the moment you want. Below the fields, the tool shows the clip length and roughly how many frames the GIF will contain.
  3. Choose a Frame rate from 5 to 24 fps. The default of 12 fps suits most clips.
  4. Choose a Width: 240, 320, 480 (recommended), 640 px or Original. Height follows automatically to keep the proportions.
  5. Leave Loop forever on for a classic repeating GIF, or switch it off so it plays once and stops on the last frame.
  6. Click Make GIF. You will see "Pass 1 of 2: building colour palette" and then "Pass 2 of 2: rendering GIF".
  7. Preview the result, check the size, and download.

If your settings exceed 300 frames, the tool warns that the GIF may be tens of megabytes. Clips longer than 60 seconds are not accepted at all, because GIFs of that length are impractical; a looping video is the better format there. As with every browser tool on this site, processing is single-threaded, so it is slower than a desktop app, and the video must fit in the browser's memory.

Other ways to make a GIF

ffmpeg two-pass

This is the same technique the tool uses, and you can fine-tune it:

ffmpeg -ss 12 -t 4 -i clip.mp4 -vf "fps=12,scale=480:-1:flags=lanczos,palettegen=stats_mode=diff" palette.png
ffmpeg -ss 12 -t 4 -i clip.mp4 -i palette.png -lavfi "fps=12,scale=480:-1:flags=lanczos[x];[x][1:v]paletteuse=dither=bayer:bayer_scale=5:diff_mode=rectangle" output.gif

-ss 12 -t 4 takes four seconds starting at 12 s. stats_mode=diff biases the palette towards moving areas, and diff_mode=rectangle only re-encodes the changing region of each frame. Try dither=sierra2_4a for smoother gradients at a slightly larger size.

gifski

gifski is a free command-line and desktop encoder that produces very high-quality GIFs using cross-frame palettes. It is excellent for final polish, especially on macOS.

Phone features

Some phone gallery apps can create GIFs from videos or burst photos, and messaging keyboards have GIF makers. They are convenient for social sharing but offer little control over size.

Tips for smaller, sharper GIFs

Cut first, then convert

Find the exact moment before converting. Every unnecessary half-second is dozens of frames. If you prefer to cut visually, trim the source with Trim Video and then convert the whole short clip.

Crop away still areas

A screen recording with a large static sidebar still costs pixels. Crop to the region that matters with Crop Video before making the GIF.

Reduce noise

Film grain, low light and compression artefacts in the source all change from frame to frame, which ruins GIF compression. Well-lit, stable footage gives smaller GIFs.

Consider video instead

If the destination supports video, a muted looping MP4 is usually far smaller. See the guide on replacing GIFs with MP4 and the GIF to MP4 tool.

Need individual frames?

To split an existing GIF into images, see how to split a GIF into frames.

Frequently asked questions

What is the best frame rate for a GIF?

For most uses, 10-15 fps looks smooth enough and keeps files manageable. Use higher rates only for short clips where fluid motion is the point.

Why does my GIF look grainy?

GIF can show only 256 colours per frame, so gradients are dithered. A palette generated from your own clip, as this tool does, reduces the effect; very colourful footage will always show some grain.

How long can a GIF be?

Technically there is no hard limit, but size grows with every frame. This tool caps clips at 60 seconds, and in practice most good GIFs are well under 10 seconds.

Can a GIF have sound?

No. The GIF format has no audio. If sound matters, share a video file instead.

Does the tool add a watermark?

No. The GIF contains only your frames, and the video is processed on your device without being uploaded.

Try it now: Video to GIF

Loading tool…