Browser-based video tool · MP4, WebM, MOV → animated GIF

Video to GIF Converter

Pick the moment you want from a video, up to 30 seconds of it, and turn it into a looping GIF with no watermark. The browser plays the file from your disk, this page grabs the frames and builds the GIF in the tab, and the video is never uploaded.

Video and clip

Any video this browser can play. MP4 (H.264) and WebM work almost everywhere.

Drop a video here or click to choose

.mp4, .webm, .mov, .m4v, .ogv

GIF settings

The estimate updates as you change them.

Speed

Animated GIF

The GIF plays here once it is made

Choose a video to start.

Every frame shares one 256-colour palette with no dithering, so smooth gradients can show bands, and the GIF has no sound. Each frame is stored whole, which is why width and frame rate drive the file size.

Video to GIF Converter

Operator: Abdulla Al Fahad. How tools are built and checked

A GIF is still the surest way to put a few seconds of motion somewhere that will not play video: a bug ticket, a README, a help-desk macro, an email newsletter. The awkward part is getting a short clip out of a long recording at a sensible size, because GIF stores every frame as a full picture with at most 256 colours, and a careless export easily runs to tens of megabytes.

This converter works on a video file you already have. You mark a start and an end, by typing times or by pausing the player and pressing a button, then choose the frame rate, width, speed and looping. Before any work starts it tells you how many frames that makes, how long one loop lasts and roughly how large the file will be. The browser decodes the video from your disk, the page captures the frames and builds the GIF in the same tab, and nothing is uploaded or watermarked.

Key features

  • Opens any video the browser can play, usually MP4, WebM, MOV or M4V, straight from disk, and shows its size in pixels and its length.
  • Start and end fields that take seconds (12.5), minutes and seconds (1:05.5) or hours (1:02:03), with buttons that copy the player's current time.
  • Preview clip plays only the chosen section, at the chosen speed.
  • Frame rate of 5, 8, 10, 12, 15, 20 or 25 fps.
  • Output width from 160 to 800 px in 10 px steps with the height kept in proportion; a narrower video is never enlarged, and a very tall one is narrowed to stay within 1440 px high.
  • Speed of 0.5×, 1×, 1.5× or 2×.
  • Loop forever, play once, or play 2 to 100 times.
  • Boomerang: forward, then backward, without repeating the end frames.
  • Frame count, loop length and an estimated size range before you start.
  • Progress bar with a Cancel button, a preview of the finished GIF and a download named after the original file.

What sets the frames, their timing and looping

Three settings decide the frames. The clip length is the end minus the start, in seconds of the original video. The speed sets how much video passes between two frames: at 10 fps and 1× the tool takes a frame every 0.1 s of video, at 2× every 0.2 s, at 0.5× every 0.05 s. The frame count is the clip length divided by that step, rounded, so 4 seconds at 10 fps and 1× gives 40 frames, while the same 4 seconds at 2× gives 20 frames that play in 2 seconds.

GIF stores each frame's display time in hundredths of a second, so the frame rate becomes a delay. 10 fps is exactly 10 hundredths and 25 fps exactly 4, but 15 fps would be 6.67. Rounding every frame to 7 would make the animation run 5% slow, so the tool rounds the running total instead: the frames get 7, 6, 7, 7, 6, 7 and so on, and every 15 of them add up to exactly one second. 12 fps alternates 8, 9, 8 and 8 fps alternates 13 and 12 for the same reason.

The repeat setting writes the standard NETSCAPE2.0 loop block. Loop forever stores a count of 0. The format counts repeats after the first play, so Play 3 times stores 2, and Play once leaves the block out, which viewers treat as a single play.

How it works

The file is opened through an object URL, a local address that lets the video element read it from disk without the page copying it; the address is released when you choose another file or leave. Some WebM files, including screen recordings from other tools, report their length as unknown. For those, the tool seeks far past the end so the browser reads through the file and finds the real length.

When you click Make GIF, the player is paused and moved to each planned time in turn. After each seek the tool waits for the browser's seeked event and, where requestVideoFrameCallback is available, for the new frame to be handed to the screen, for at most 120 ms more. It then draws the frame onto a canvas at the output size with high-quality smoothing and reads the pixels back.

The captured frames then go through the same GIF encoder as this site's Images to GIF tool, one shared 256-colour palette for the clip. The way back of a boomerang reuses the compressed frames of the way forward, so it adds file size but almost no extra work.

Common use cases

  • A QA tester cuts the six seconds where a dropdown flickers out of a ten-minute screen recording and attaches the GIF to the bug, so developers see the problem without downloading a video.
  • A developer adds a 640 px GIF of a command-line tool running to a README, at 8 fps because terminal output changes in steps rather than smooth motion.
  • A social media manager turns two seconds of a product video into a 360 px boomerang, so the motion swings back and forth without a visible jump at the loop point.
  • A chemistry teacher slows a three-second clip of a colour change to 0.5× for a slide deck that only accepts images.
  • A support lead makes a looping clip showing where a setting lives in the app and pastes it into a help-desk reply template that is sent hundreds of times a week.

How to use this tool

  1. Drop a video on the box, or click it and choose one.
  2. Find the start of the moment in the player, pause, and click Set to current playback time under Start. Do the same under End, or type both times.
  3. Click Preview clip to check the section at the chosen speed.
  4. Choose the frame rate, width, speed, repeat and boomerang, and read the frame count and estimated size.
  5. Click Make GIF and wait for the frames to be captured and compressed, or click Cancel.
  6. Check the preview, then click Download GIF.

Example

Video and settings

Screen recording, 1920 × 1080 px, 9:40 long
Start 0:12.00, End 0:16.00 (4 seconds)
Frame rate 10 fps · Width 640 px · Speed 1×
Repeat: Loop forever · Boomerang off

What the tool plans and shows

GIF size: 640 × 360 px
Frames: 4 s ÷ 0.1 s = 40, each shown for 10 hundredths of a second
One loop: 4.00 s
Estimate before a frame is measured: 901 KB to 5.27 MB
If the paused frame measures 0.08 bytes per pixel: 541 KB to 937 KB
Same clip at 2× speed: 20 frames, 2.00 s per loop, 271 KB to 469 KB

Tips for best results

  • Set the start and end before anything else. The frame count, loop length and size estimate all follow the clip, so tuning width and frame rate first is wasted effort.
  • Find the moment in the player rather than guessing numbers: pause on the first frame you want, press Set to current playback time under Start, then do the same under End. Preview clip then plays just that section at the speed you chose.
  • For screen recordings and interface demos, 8 to 12 fps is usually enough, because interfaces jump between states. Keep 20 or 25 fps for camera footage with continuous movement, and expect a larger file.
  • Width moves the size more than anything else. Going from 640 to 480 px cuts the pixels in every frame to 56%, and the estimate follows straight away.
  • Pause the player on a busy frame before trusting the estimate. It is measured from the frame showing in the player, so a frame from a calm part of the clip gives an optimistic figure.
  • Try boomerang on short movements such as a wave, a pour or a head turn. The animation runs forward and back, so it never jumps from the last frame to the first.

Edge cases to watch

Some files will not open because the browser cannot decode them, and an error message appears when that happens. HEVC (H.265), which recent iPhones use for video by default, is the most common case; an MP4 copy with H.264 video opens almost everywhere.

One GIF takes at most 30 seconds of video and 300 frames. When your settings would go past either, the clip end is pulled in and a note says where it now ends, so read the note before you click Make GIF.

Captured frames are held in memory until the palette is chosen, so the tool takes at most 60 million pixels of them. At 800 × 450 px that is 166 frames; at 480 × 270 px the 300-frame limit is reached first.

Gradients show bands. All frames share one palette of 256 colours with no dithering, so a sunset in a travel clip, drifting smoke, a blurred background behind a speaker or dim indoor footage comes out in visible steps, while screen recordings and flat animation stay clean.

The GIF has no sound and no transparency: every frame is stored as a complete, opaque picture.

The size estimate is a range, not a promise. It comes from a single frame, so a clip that cuts from a plain wall to a crowd can land outside it.

Common errors and how to fix them

The page says this browser cannot play the file.
Its container or codec is not supported here, often HEVC video from an iPhone. Export or convert the clip to MP4 with H.264, or to WebM, and choose it again. A different browser may also play it.
The file opens, but a message says the picture cannot be shown.
The browser understood the audio track but not the video codec, or the file has no video at all. Convert it to MP4 with H.264 video.
A note says the clip now ends earlier than the end you typed.
A cap applied: 30 seconds of video, 300 frames, or 60 million captured pixels. Lower the frame rate, raise the speed or reduce the width to fit more of the clip, or split it into two GIFs.
The video stopped responding while seeking.
Each seek gets 10 seconds. Very large files, or files with few keyframes, can be slow to seek. Try a shorter clip, or re-save the video as MP4 with H.264.
The finished GIF is bigger than the estimate.
The estimate comes from one frame and busier parts of the clip compress worse. Pause on a busy frame to get a better estimate, then lower the width or frame rate, or shorten the clip.

Best practices

  • Look up the upload limit of the place the GIF is going and compare it with the upper figure of the estimate before you start.
  • Start a moment before the interesting part and stop right after it. A tight clip loops better and is smaller.
  • For recordings with text, keep the width and lower the frame rate rather than the other way round: 640 px at 10 fps keeps text readable, while 320 px at 25 fps blurs it and still produces many frames.
  • Put a sentence of alt text or a caption next to the GIF for readers who cannot see it or have animations turned off.

How the size estimate is worked out

Because every frame is stored whole, a GIF's size is close to frames × pixels × bytes per pixel, and only the last number depends on the picture. The tool measures it. Whenever the player settles on a frame, the page draws that frame at your output size, encodes it as a one-frame GIF with the same encoder and divides the bytes by the pixels. The range shown is 0.75 to 1.3 times frames × pixels × that figure. Until a frame has been measured, it uses a deliberately wide 0.1 to 0.6 bytes per pixel.

Worked through: 40 frames at 640 × 360 is 9.2 million pixels. If the paused frame measures 0.08 bytes per pixel, the estimate reads 541 KB to 937 KB. At 480 px wide (270 high) the same 40 frames are 5.2 million pixels, and at a similar figure the estimate drops to 305 KB to 528 KB. The tool measures the frame again at the new width, because smaller frames usually compress a little worse per pixel.

The caps, and what to change when one applies

The limits keep the work inside what a browser tab can hold. When one applies, the end of the clip moves in, and a note gives the new end and the setting most likely to help.

  • Clip length: at most 30 seconds of the original video, whatever the speed.
  • Frames: at most 300 in the GIF. For 16:9 video up to 590 px wide that is the limit you meet first: at 25 fps and 1× it covers 12 seconds of video, at 10 fps all 30 seconds. A boomerang counts both directions, so at most 151 frames are captured for it.
  • Memory: at most 60 million pixels of captured frames, held as two bytes each while the palette is chosen. From 600 px wide (16:9) this cap comes first: 640 × 360 allows 260 frames, which is 26 seconds at 10 fps or 10.4 seconds at 25 fps, and 800 × 450 allows 166 frames.
  • Speed stretches the frame limit: at 2× and 10 fps, 30 seconds of video becomes 150 frames that play in 15 seconds.

What it cannot do

Worth knowing before you start, because none of these can be changed with a setting:

  • Open video the browser cannot decode. HEVC (H.265), the default for recent iPhone video, is the usual case; an MP4 copy with H.264 video opens almost everywhere.
  • Go past 30 seconds of video, 300 frames or 60 million captured pixels in one GIF. The clip end moves in and a note says where.
  • Show smooth gradients. One 256-colour palette with no dithering turns sunsets, smoke, blurred backgrounds and dim footage into visible steps.
  • Keep sound or transparency. GIF has no audio, and every frame is stored as a full, opaque picture.
  • Promise an exact size. The estimate comes from one frame, so a clip whose content changes a lot can land outside it.

Your video stays on your computer

The video is read by the browser's own decoder through a local object URL, the frames are drawn into a canvas in the tab, and the finished GIF becomes a Blob that the preview and the download link point at. No part of the file is sent anywhere. That matters for unreleased product footage, recordings of internal dashboards or customer records, and family videos, and it also means there is no upload to wait for with a large file.

Frequently asked questions

What is the longest GIF I can make?

30 seconds of video, 300 frames, or 60 million pixels of captured frames, whichever comes first. For a 16:9 video up to 590 px wide, 10 fps at 1× gives the full 30 seconds and 25 fps gives 12. Wider than that, the pixel limit takes over: at 640 px it is 26 seconds at 10 fps and 10.4 at 25 fps. Raising the speed or narrowing the GIF fits more video.

Why does my 15 fps GIF have delays of 7 and 6?

GIF stores delays in whole hundredths of a second, and 15 fps needs 6.67. Mixing 7s and 6s keeps every second of animation exactly one second long, where 7 every time would run 5% slow.

Can I make a GIF from a YouTube or Instagram link?

No. The tool only opens video files on your device; it does not fetch anything from the web.

Does the GIF keep the sound?

No. The GIF format cannot carry sound, so if the audio matters, share the clip as a video instead.

Why is the GIF narrower than the width I picked?

Either the video itself is narrower, and enlarging it would add no detail, or it is so tall that the GIF would pass 1440 px high, in which case it is narrowed to fit. A note under the width slider says which.

Will Play 3 times work in every app?

The file stores two repeats after the first play, which is how browsers read the loop count. Some chat and email apps ignore the count and loop every GIF forever, or play it only once.