Convert an animated GIF into an MP4 video that you can post on Instagram, TikTok, X or WhatsApp. Choose how many times it loops, scale it up with sharp pixels, and pick a background for transparent areas. The GIF is decoded and recorded on your device.
Checking your browser's video encoder…
GIF
MP4Not converted yet
Scaling
Recording runs in real time: keep this tab visible until it finishes.
Advertisement
Advertisement
How to use the GIF to MP4
Add a GIF by dropping it into the box, choosing it, or pasting it with Ctrl+V. You can also try the sample.
Set the loops: short GIFs are repeated automatically so the video lasts at least about 3 seconds; change the number if you like.
Choose size and look: scale, sharp or smooth pixels, background color, frame rate and quality.
Press Convert to MP4 and keep this tab visible. Recording takes as long as the video itself.
Preview and download the finished video.
GIF vs MP4: what changes when you convert
Animated GIF
MP4 video (H.264)
Colors
Up to 256 per frame
Millions (full color)
Compression
LZW per frame, no motion compression
Motion-compensated, much smaller files
Transparency
Yes (on/off per pixel)
No, a background color is used
Timing
Own delay per frame, in 10 ms steps
Fixed frame rate
Looping
Built into the file
Set by the player, or repeat the clip inside the video
Sound
No
Possible (none is added here)
Social media upload
Often not accepted as a post
Accepted almost everywhere
How the converter works
The tool reads the GIF file with its own decoder: it unpacks the LZW-compressed pixels of every frame, applies the palette, transparency and disposal method, and builds the full picture for each moment of the animation. It then plays those frames on a hidden canvas, exactly following each frame's delay, while your browser's MediaRecorder encodes the canvas into a video at the frame rate you choose. Because GIF delays rarely match a video frame rate, each video frame shows whichever GIF frame is due at that time, so the speed stays correct.
Tips for the best result
Pixel art and small GIFs: scale up 2× to 4× with Sharp pixels on. Platforms re-compress small videos heavily, and a larger video stays crisp.
Short loops: Instagram and other apps may reject clips shorter than about 3 seconds, which is why short GIFs get extra loops by default.
Transparent GIFs: choose a background color that matches the page or chat where the video will appear.
File size: choose Small file quality or a lower frame rate. Most GIFs run at 10 to 25 frames per second, so 24 or 30 fps loses nothing.
MP4 video is usually many times smaller than the same animation as GIF, has smooth full color instead of 256 colors, and is accepted by apps such as Instagram and TikTok that do not take GIF uploads. Many sites even convert uploaded GIFs to video in the background for this reason.
Will I always get an MP4 file?
The tool records with your browser's built-in video encoder. Current versions of Chrome, Edge and Safari can record MP4 (H.264). Browsers that cannot, such as Firefox, record WebM instead; the page tells you which format you will get before you start. You can turn a WebM into MP4 with the Video Converter.
Why does the conversion take as long as the video?
The browser's MediaRecorder records the animation in real time, the same way a screen recording works. A 6-second video therefore takes about 6 seconds. Keep the tab visible while it records, because browsers slow down timers in background tabs.
What happens to transparent parts of the GIF?
Video formats such as MP4 cannot store transparency, so transparent pixels are filled with the background color you choose. White is the default; pick a color that matches where you will post the video.
Does the video keep the GIF's speed?
Yes. Every frame is shown for its own delay from the GIF file. Like web browsers, the tool shows frames with a delay of 0 or 10 ms for 100 ms, so the video plays at the speed you see in a browser.
Why are the video dimensions sometimes 1 pixel smaller?
The H.264 codec used in MP4 needs even width and height, so an odd dimension is reduced by one pixel. The longest side is also limited to 1920 pixels so the video plays everywhere.
Is my GIF uploaded?
No. The GIF is decoded by JavaScript in your browser and recorded by the browser's own video encoder. Nothing is sent to a server.