GIF from Video

Turn a clip from a video into an animated GIF, animated WebP or APNG in your browser. Pick the start, end, frame rate, width and palette, and the finished file is read back so you see its real frame count, delays, colours and size. Nothing is uploaded.

Tool Media & Files Updated Oct 16, 2026
How to Use
  1. Drop a video your browser can play (MP4, WebM, and in most browsers MOV). A built-in test animation is used until you do.
  2. Set the start and end in seconds; with a video loaded, the two buttons copy the player’s current position.
  3. Choose the frame rate (1 to 30 fps) and width (64 to 800 px). The panel shows how many frames that makes and the delay stored for each.
  4. Pick GIF (with a palette of 16 to 256 colours and optional dithering), animated WebP or APNG, and how many times it plays.
  5. Press Make animation. The result plays on the right with its real file size, and Show Work reads the file back: frames, delays, palette and loop count.
Input
Drop a video, or
MP4, WebM, MOV — captured on your device, never uploaded
s
s
fps, 1–30
px, 64–800
colours

Load a video, or press a preset to use the built-in test animation.

Presets
Clip, Delays and Result
Frames
—
Frame delay
—
File size
—
Palette
—

Worked Example

The built-in test animation. It is 4 seconds long at 640 × 360. At 10 fps and 480 px wide the tool captures 4 × 10 = 40 frames at t = 0, 0.1, 0.2 … 3.9 s, each 480 × 360 × 480 ÷ 640 = 480 × 270 pixels, 5.2 megapixels in all. 100 ÷ 10 = 10 hundredths of a second per frame, so every delay is stored as 10 cs and the 40 frames last exactly 400 cs = 4.00 s.

A frame rate that does not divide 100. At 15 fps a frame should last 6.67 cs. The tool rounds the running total: round(6.67) = 7, round(13.33) − 7 = 6, round(20) − 13 = 7, so the delays go 7, 6, 7 and repeat, and 2 seconds of video becomes 30 frames lasting exactly 200 cs. 30 fps works the same way with 3, 4, 3 cs, and 25 fps divides evenly at 4 cs.

The common mistake: asking a GIF for a very high frame rate. 100 fps would need delays of 1 cs, but browsers play any delay of 0 or 1 cs as 10 cs, a rule Chromium says it copied from Firefox to stop flashing adverts. A “100 fps” GIF therefore plays at 10 fps, ten times slower than intended. That is why this tool stops at 30 fps, where no delay is shorter than 3 cs.

Show Work

Load a video or press a preset to see the frame times, the stored delays and the finished file read back.

Formulas

Frames
n = (end − start) × fps
Frame i is captured at start + i ÷ fps
GIF delay of frame i
d = round((i+1)·100 ÷ fps) − round(i·100 ÷ fps)
In hundredths of a second; WebP and APNG use 1,000 and milliseconds
Playback rate
fps = 100 × n ÷ Σd
Delays of 0 or 1 cs play as 10 cs in browsers
Palette size
colours = 2^(N + 1)
N is the 3-bit field in the GIF header, so 2 to 256
Height
h = round(w × source h ÷ source w)
640 × 360 at 480 px wide is 480 × 270

Hundredths of a Second and 256 Colours

GIF is CompuServe’s Graphics Interchange Format. Its 89a version, whose specification is dated 31 July 1990, added the Graphic Control Extension, where each image gets a delay time “in hundredths (1/100) of a second”. That unit is why GIF timing is coarse. A colour table holds 2^(N+1) entries for a 3-bit N, so a GIF frame can use at most 256 colours, picked from 16.7 million. Looping is not in the specification at all: it comes from an application extension block named NETSCAPE2.0, which stores how many times to repeat.

Browsers added their own rule on top. Chromium’s image code says that many adverts set a delay of 0 to flash as fast as possible, so, following Firefox, any frame of 10 ms or less is shown for 100 ms. Newer animated formats store milliseconds: animated WebP keeps each frame’s duration in an ANMF chunk and APNG in an fcTL chunk, and both compress far better than GIF, WebP because each frame can be lossy and APNG because it is PNG’s deflate with full colour.

About This Tool

This tool turns part of a video into an animated GIF, animated WebP or APNG. It captures frames from your browser’s own video player at exact times, spaces the stored delays so the animation lasts as long as the clip, and then reads the finished file back, frame by frame, to report what was really written: the frame count, every delay, the palette size and the loop count.

Everything runs in your browser, and the GIF palette work runs in a background worker so the page stays responsive. Your video is never uploaded. Until you load one, a built-in test animation with a moving ball and a clock is used, so each setting can be tried at once.

It is for anyone making reaction GIFs, product loops, or short demos for bug reports and documentation.

Related tools: GIF Optimizer, Animated GIF Maker, and Video Converter.

Frequently Asked Questions

Why is the frame rate limited to 30 fps?

GIF stores each frame’s delay in hundredths of a second, so 30 fps is stored as 3, 4, 3 cs and 50 fps would need 2 cs per frame. Browsers play any delay of 0 or 1 cs as 10 cs, so a “100 fps” GIF plays at 10 fps. 30 fps keeps every delay at 3 cs or more and is as smooth as most screen recordings.

Why does 15 fps use delays of 7, 6, 7 cs?

100 ÷ 15 = 6.67 hundredths, which a GIF cannot store. Rounding every frame to 7 cs would play at 14.3 fps and make a 2-second clip last 2.10 s. This tool rounds the running total instead, so the delays go 7, 6, 7, 7, 6, 7 and every 3 frames take exactly 20 cs: 30 frames last exactly 2.00 s.

Which videos can it read?

Frames are captured by your browser’s own video player, so it reads what your browser can play: MP4 with H.264, WebM, and MOV with H.264 in most browsers. AVI, WMV, MKV with unusual codecs and HEVC in some browsers will not open; convert them to MP4 or WebM first with the Video Converter.

Why is my GIF so big, and should I use WebP?

GIF compresses each frame losslessly with LZW and at most 256 colours, which suits flat graphics but not camera footage. Fewer pixels, frames or colours all help: halving the width quarters the pixels. Animated WebP is usually several times smaller for real video and plays in all current browsers, but some chat apps and older software only accept GIF.

Is the sound kept, and is my video uploaded?

GIF, animated WebP and APNG are image formats with no audio track, so the sound is dropped; keep a video for sound. Nothing is uploaded: frames are captured and encoded in your browser.

How do I use the GIF from Video?

Simply type your numbers and read the result, which refreshes the instant you change something. There is nothing to submit and nothing to wait for.

Does it cost anything or need an account?

No. The tool is completely free, there is no account to create, and it keeps working offline after the page first loads.

Is anything I type uploaded?

No. The tool works entirely on your device, so the values you enter never leave your browser.

Common Use Cases

A reaction GIF

Cut 2 seconds at 15 fps and 400 px wide: 30 frames, small enough for most chat apps.

A bug report or README demo

A 6-second screen recording at 10 fps and 640 px makes 60 frames that play inline in an issue tracker.

A product loop for a web page

Animated WebP at quality 80 is usually several times smaller than the same clip as GIF.

Checking a GIF’s timing

Read the stored delays back to see why a 15 fps GIF made elsewhere plays at 14.3 fps.

Last updated: