Video to GIF

Published Updated

Make a looping GIF from an MP4, WebM or any other video your browser can play. It starts at 10 fps and 320 px wide and stops after 450 frames.

Any video, as long as your browser plays it

This is the catch-all among the site's GIF converters. Its file picker offers every video type, but the frames come from the browser's own player: the tool seeks a hidden copy of the video to each timestamp and copies what it shows.

The MDN container guide lists MP4 and WebM as supported in all browsers, with WebM players required to handle VP8 and VP9. QuickTime is listed for older Safari only, and AVI has no entry of its own. Support for a container also says nothing about the codec inside it.

Memory at the 450-frame cap

Frames are captured first and encoded afterwards, so all of them sit in memory as 4 bytes per pixel. The width you pick is never larger than the video's own width. Figures are for a full 450 frames, before the encoder's own work:

Source video320 px wide480 px wide640 px wide
1920 x 1080 landscape320 x 180, 104 MB480 x 270, 233 MB640 x 360, 415 MB
1080 x 1920 portrait320 x 569, 328 MB480 x 853, 737 MB640 x 1138, 1.31 GB
1080 x 1080 square320 x 320, 184 MB480 x 480, 415 MB640 x 640, 737 MB
2560 x 1080 ultrawide320 x 135, 78 MB480 x 203, 175 MB640 x 270, 311 MB

A short clip uses less: 10 seconds at 10 fps is 100 frames, about 22% of each figure.

Making a GIF from a video

  1. Step 1

    Open any video file

    The picker accepts every video type. Once the line below the preview shows pixel size and length, the browser has decoded it.

  2. Step 2

    Choose speed and width

    The page starts at 10 fps and 320 px. Other choices are 5 or 15 fps and 480 or 640 px; the height follows the video's shape.

  3. Step 3

    Convert and save

    A percentage counts the frames as they are captured. The result shows frame count, pixel size and file size, and the GIF takes the video's name.

Which GIF page to use

The site has several converters built on the same capture and the same encoder: one shared of up to 256 colors and frame delays in hundredths of a second, both as set out in the GIF89a specification. They differ in what they accept:

PageAcceptsWorth knowing
MP4 to GIFMP4Same settings as here
MOV to GIFMOV and MP4Notes on iPhone HEVC clips
AVI to GIFAVISays so when the browser cannot play the file
WebM to GIFWebMCovers files from browser and screen recorders
Video to GIF (this page)Any video typeError message for an unplayable file
Video to WebPAny video typeAnimated WebP instead of GIF, same 450-frame cap

For stills, Video Frame Extractor saves PNG or JPG frames. A heavy GIF can go through GIF Compressor.

GIF size by speed and width, measured

We ran this page's capture-and-encode steps, with the site's own frame-seek helper and GIF encoder, on a synthetic 4.97-second, 640 x 360 WebM (a moving gradient, a circle, a frame counter and a tone; 758,129 bytes), in Chromium 153.0.8010.12 (the build that ships with Playwright, headless, not Google Chrome). Each cell is one run and shows the GIF size, with the number of frames in the header.

Width5 fps (25 frames)10 fps (50 frames)15 fps (75 frames)
320 px (320 x 180)165,176 B325,046 B502,328 B
480 px (480 x 270)297,656 B573,792 B865,490 B
640 px (640 x 360)443,049 B910,131 B1,292,498 B

The cost per frame stayed close to constant for each width, about 6.5 KB at 320 px, 11.5 to 12 KB at 480 px and 17 to 18 KB at 640 px, so the size followed the frame count. Doubling the width from 320 to 640 px made each frame about 2.7 times larger, not 4 times, even though it holds 4 times the pixels. Three of the nine GIFs came out larger than the 758 KB source video, and the 640 px, 15 fps one was 1.7 times its size, because a GIF stores every frame as a picture with no motion compression. The clip is a gradient with moving shapes, so a flatter or a busier clip would give different numbers.

The same settings in three engines

At 10 fps and 480 px the GIF was 573,792 bytes in Chromium 153, 600,446 in Firefox 155.0 and 601,598 in Playwright's WebKit build (user agent Version/26.6, not the Safari app). Capturing the 50 frames took 3.3, 2.7 and 2.9 seconds and encoding took 0.26, 0.35 and 0.25 seconds. In all 27 runs, 1,350 captured frames in total, none was fully transparent, including in WebKit.

Video to GIF questions

Which video formats does it accept?

Every type the file picker offers, but conversion only works for videos your browser can decode. MDN lists MP4 and WebM among the containers supported in every browser. For AVI, MKV and other types it depends on your browser and on the codec inside, so check that the preview plays.

Why does the Convert button stay grey?

It waits until the browser reports the video's length and size. If the browser cannot decode this file, the line under the preview turns into an error message (seen with a junk file in Google Chrome 156 and the WebKit build). Convert the video to MP4 first with Video Converter.

How much of my video ends up in the GIF?

Up to 450 frames from the very start: 90 seconds at 5 fps, 45 at the default 10 fps, 30 at 15 fps. To start later in the video, cut it first with Trim Video.

Why did the tab freeze or crash on a portrait video?

Each captured frame is kept as uncompressed pixels until the GIF is written. A 1080 x 1920 phone clip at 640 px wide gives frames of 640 x 1138, and 450 of them take about 1.3 GB. Pick 320 or 480 px, or a lower frame rate.

Will the GIF loop forever?

Yes. The encoder writes the NETSCAPE2.0 loop block set to repeat without end, so the animation keeps cycling for as long as it is on screen.

Is the sound kept?

No. GIF stores images only, so the soundtrack is ignored. Use Video to MP3 if you need the audio as a separate file.

How big will my GIF be?

In our test, a synthetic 5-second 640 x 360 clip gave between 165,176 bytes (320 px, 5 fps) and 1,292,498 bytes (640 px, 15 fps) in Chromium 153. Each frame cost about 6.5 KB at 320 px, 11.5 to 12 KB at 480 px and 17 to 18 KB at 640 px, so multiply by the frame count for a rough idea. Real footage will differ.

Does a lower frame rate make the GIF smaller?

Yes, almost in proportion. The 480 px test GIF was 297,656 bytes at 5 fps, 573,792 at 10 fps and 865,490 at 15 fps.

Related guide

Making a GIF from a video: size, frame rate and quality. The guide explains the 450-frame cap and the memory a full capture needs, with the 480 px portrait case at about 737 MB.

Related Tools