GIF to Video Converter
Operator: Abdulla Al Fahad. How tools are built and checked
A 24-frame GIF with 4 centiseconds per frame lasts 0.96 seconds, which is too short for a feed that wants at least 3. Asking for a minimum of 3 seconds makes the page play it four times, 3.84 seconds in all, and record that as an MP4 or WebM at 933 kbps, about 461 KB for a 720 by 720 frame. The GIF is the source of every frame and its timing; this page decides how often it repeats and what shape the video is. For the other direction, Video to GIF on this site cuts a clip into a GIF.
Key features
- Frame delays read from the file, with the browser rule that a delay of 0 or 1 centisecond means 100 ms
- Repeats from 1 to 200, or a minimum length that rounds up to whole passes, capped at 10 minutes of video
- A background colour for transparent areas and for the bars of a square or vertical frame, and a switch between smooth and hard-edged scaling
How frame delays, repeats and transparency are handled
The input must be a real GIF, GIF87a or GIF89a, up to 25 MB and 500 frames; the file's first six bytes are checked, so a WebP or APNG animation renamed .gif is refused with a message. All frame disposal methods, local palettes, interlacing and transparency are handled when the frames are decoded. The output is an MP4 or WebM with no sound track. The frame width runs from 64 to 1920 pixels (made even) and its shape is the GIF's own, square, vertical 9:16 or landscape 16:9. The GIF is scaled to fit inside and centred, never cropped.
How it works
Each GIF frame is decoded to a full-canvas RGBA picture. During recording, the elapsed time is taken modulo the length of one pass and a binary search over the frame start times picks the picture to show; it is drawn onto the background colour and scaled into the frame. Rendering uses the same real-time recorder as Split Screen Video Maker, so a 3.84-second video takes about 3.84 seconds to make.
The recorder redraws about 31 times a second, so the video can show at most about 30 distinct pictures a second. A GIF whose delay is 4 centiseconds (25 pictures a second) is reproduced frame for frame; one with 2-centisecond delays (50 a second) loses some frames.
Common use cases
- Posting a 1.2-second reaction GIF to a feed that only takes video, repeated five times to run 6 seconds
- Putting a 300 by 300 pixel-art GIF into a 1080 by 1080 frame with smoothing off so the pixels stay square-edged
- Placing a 498 by 280 loading animation in a 1080 by 1920 vertical frame on a dark background for a story
How to use this tool
- Choose a GIF. It plays above, with its size, frame count, length per pass and loop setting.
- Set how many times to play it, or a minimum length.
- Choose the frame shape and width, the background colour, and smooth or hard-edged scaling.
- Pick quality and file type, then click Convert to video.
Example
A 498 by 280 GIF, 24 frames at 4 cs each, converted to a 720-pixel-wide video
Minimum length 3 s
Five repeats
Square frame at width 720Length and frame for each setting
One pass: 960 ms
Minimum 3 s: 4 passes = 3.84 s (raised from 1)
Five repeats: 5 passes = 4.8 s
Square frame: 720 × 720, GIF scaled to 720 × 405 and centred
Bitrate: 933 kbps balanced, about 461 KB for 3.84 sEdge cases to watch
A GIF made with many very short delays is slowed by browsers and by this page: a delay of 0 or 1 centisecond is played as 100 ms, so a GIF that looked frantic in an editor may look calmer here.
The video keeps the GIF's 256-colour look, banding included; it cannot add colours the GIF never had.
A video made from a tiny GIF at a large width is mostly enlargement. The file size is set by the frame size and quality preset, not by the GIF's size, so a 480 by 480 GIF can give a bigger video than the original file.
- For pixel art enlarged to a bigger frame, switch smooth scaling off. The default softens edges, which looks blurry on a 16 by 16 sprite blown up to 1080 pixels.
- A GIF with transparency needs a background colour that matches where it will sit; an MP4 or WebM from this page has no transparent channel.
Common errors and how to fix them
- The page says the file is not a GIF.
- The first bytes are not GIF87a or GIF89a. A WebP, APNG or MP4 renamed .gif is not read here; use the original format's own tool.
- A GIF is rejected for size or frame count.
- The limits are 25 MB and 500 frames. Trim it first, for instance with a GIF editor, then load the shorter file.
Best practices
- Choose the frame shape from where the video will be shown, then the width from the largest size it will be shown at; 720 is a sound default for a feed.
- Prefer a minimum length over a repeat count when a platform sets a lower bound, since the page rounds the length up to whole passes for you.
What a GIF's frame delay means
A GIF stores each frame's delay in hundredths of a second. Early browsers treated 0 as 'as fast as possible', which made some animations unwatchably fast, so browsers settled on showing delays of 0 or 1 centisecond for 10 centiseconds (100 ms). This page copies that rule, which means the video matches what a browser shows, not necessarily what the GIF's author's editor showed.
Frequently asked questions
Does the video loop by itself?
Players decide for themselves whether to loop a video, so the repeats are recorded into the file. Choose how many passes you want.
Can the video keep the GIF's transparency?
No. The recorder writes opaque video, so transparent pixels are filled with the background colour you pick.
Why is the video bigger than the GIF?
The video's bitrate comes from the frame size and quality preset, not from the GIF. Pick Smallest file or a smaller width to bring it down.
Does the GIF's own loop count matter?
It is shown for information. The number of passes you choose here is what is recorded.