GIF to MP4 Converter: Convert Animated GIF to Video Online

Turn an animated GIF into a compact MP4 video that plays on any phone, computer or app, without uploading it.

GIF to MP4 conversion fixes a modern problem with a very old format. Animated GIFs are everywhere, but they are heavy, limited to 256 colours per frame, and many apps, ad platforms, slide tools and upload forms take video but not GIFs, or only small ones. This free GIF to MP4 converter turns any animated GIF into a video with H.264 compression, the format that plays on practically every phone, computer, TV and editing app. If you searched for a GIF to video converter, this is the same thing: the result is a normal video file. It runs in your browser, so you can convert GIF to video without uploading it, and there is no sign-up, no watermark and no daily limit. Below: how the conversion works, how much smaller the file gets, what happens to loops and transparency, and how to do it on iPhone, Android or a computer.

How does the GIF to MP4 converter work?

A GIF is not stored as full pictures. Most frames are small patches drawn on top of the previous picture. The converter reads the GIF, rebuilds every full frame the way a browser would show it (patch by patch, following each frame’s “dispose” rule), and paints it on a white background. Each full frame is then handed to the browser’s video encoder (WebCodecs) with the exact time it should stay on screen, taken from the GIF itself. The encoder writes an H.264 MP4, or a VP9 WebM if you chose WebM under “More options”.

Worked example (computed from the code’s rules): a 499x280 GIF with 4 frames whose delays are 0.10, 0.10, 0.50 and 0.10 seconds. H.264 needs even sizes, so the video is 500x280, with one extra white column on the right. The frames start at 0.0, 0.1, 0.2 and 0.7 seconds, and the video lasts 0.8 seconds, exactly like the GIF. The long pause on frame 3 is kept.

How to use

  1. Choose a GIF

    Click the box or drag in an animated GIF from your computer or phone.

  2. Pick the output (optional)

    MP4 is the default. To get WebM instead, open “More options” and choose WebM.

  3. Press Start

    Each GIF frame is drawn and encoded as video. The progress bar shows how far it has got.

  4. Download the video

    Press Download and compare the size before and after. “Convert another file” starts again.

Why VidHaul

Usually much smaller

Video compression stores mostly what changes between frames, so the same animation often takes a fraction of the GIF’s space.

Every frame’s timing kept

Each GIF frame keeps its own display time, so pauses and speed-ups in the GIF play the same in the video.

Plays everywhere

The output is an H.264 MP4, the most widely supported video type, for apps and upload forms that refuse GIFs.

Private and free

Everything happens in your browser on your own device. No upload, no sign-up, no watermark and no daily limit.

How much smaller is the MP4 than the GIF?

We cannot promise an exact number, because it depends on the animation. What we can show is what the encoder is asked for. When your browser uses bitrate mode, the converter aims for the bitrate below, which grows with the GIF’s size and does not depend on how many colours or frames the GIF has.

Target H.264 bitrate by GIF size (kbps) and size of 10 s of video320x240267 kbps, about 0.33 MB per 10 s480x270439 kbps, about 0.55 MB per 10 s640x360758 kbps, about 0.95 MB per 10 s500x500819 kbps, about 1.0 MB per 10 s800x4501158 kbps, about 1.45 MB per 10 sBitrate mode, “high” quality, H.264 MP4. WebM (VP9) aims about 40% lower.
Computed from the settings the tool uses (the encoder’s “high” quality level, which scales the bitrate with frame size). Many browsers use constant-quality mode instead, where size follows the content: simple animations come out smaller, busy ones larger.

For comparison, a 10 second 480x270 GIF at 10 frames per second holds about 13 MB of raw picture data before GIF’s own compression. Real GIFs of that size are often several MB. Google’s web.dev guide gives a real example: a 3.7 MB GIF became a 551 KB MP4 and a 341 KB WebM. The result screen shows your own before and after sizes.

How to convert a GIF to MP4, step by step

  1. Choose your GIF. Click the box at the top of the page or drag an animated GIF onto it.
  2. Optional: change the output. Open “More options” under the box and pick MP4 (default) or WebM. Formats your browser cannot create are hidden.
  3. Press Start. The progress bar moves frame by frame. Cancel stops it.
  4. Download. The video is saved with the same name as your GIF. “Copy summary” copies the before and after size.

There is nothing else to set, because the converter keeps the GIF’s own size and frame timing.

What the converter keeps and changes

In your GIFIn the MP4
Width and heightSame, plus 1 white pixel if a side is an odd number (H.264 needs even sizes)
Frame delaysKept frame by frame
Delay of 0 (no delay set)Shown for 0.1 s, like most browsers do
Very short delaysAt least 0.02 s per frame
Transparent pixelsWhite
Loop settingNot stored; the video holds one play-through
Colours (max 256 per frame)Same colours, now in a full-colour video
SoundNone (GIFs have no sound)

Why convert a GIF to video?

Smaller files that load faster

A smaller file means quicker sending, less mobile data and faster web pages. Replacing big GIFs with short videos is a standard web speed tip.

Apps and sites that only accept video

Many upload forms, social apps, presentation programs and ad managers list MP4 as the accepted format. Converting the GIF to MP4 gets it through.

Editing and reuse

As an MP4, the animation becomes a normal clip you can trim, add music to or join with other footage. Use the video cutter to trim it, add music to video to give it sound, or the video merger to join it with other clips.

Does GIF to MP4 keep the loop?

A GIF has a loop setting inside the file. MP4 does not. The video contains the animation once, and looping is up to the player: many chat apps and websites loop short silent videos automatically, while a normal video player stops at the end. If you need the animation to repeat inside the file itself, for example to post it somewhere that does not loop, convert it first and then use loop video to repeat it 2, 3, 4, 5 or 10 times in one file.

What happens to transparent GIFs?

H.264 video has no transparent background, so every transparent pixel becomes white. A sticker with a see-through background will sit on a white box in the video. If you need transparency, keep the GIF. If the GIF is just too big, try the GIF compressor instead, which keeps it a GIF.

GIF vs MP4 at a glance

Animated GIFMP4 (H.264)
ColoursUp to 256 per frameFull colour
File sizeLargeUsually much smaller
SoundNoneSupported
TransparencyOn or off per pixelNot supported
LoopingStored in the fileUp to the player
Plays automatically in emailUsuallyUsually not
Accepted by upload formsOften limitedAlmost everywhere

When should you keep the GIF?

Keep the GIF when you need a transparent background, or when the place you post to only shows images, such as many email newsletters, forum signatures and older documentation tools, where a GIF plays by itself but a video would not. For sharing, uploading, editing or embedding on your own site, the video is usually the better choice.

Convert GIF to video on iPhone, Android, Mac or PC

iPhone

Open the page in Safari, tap the box and pick the GIF from Files or Photos. Download the MP4, then save it to Photos or share it from Files.

Android

Open the page in Chrome, pick the GIF from your gallery or Files, and download the MP4 to your Downloads folder.

Mac, Windows and Linux

Use a current Chrome, Edge, Firefox or Safari. Nothing to install. Long GIFs convert faster on a computer than on a phone.

Need it the other way round?

If you have a video and want a GIF, use video to GIF for any format or MP4 to GIF for MP4 files. If your MP4 is still too big for an email or chat, run it through the video compressor.

How accurate is the GIF to MP4 converter?

  • Timing: every frame keeps its own delay, so total length matches the GIF. Two exceptions: a delay of 0 becomes 0.1 s, and anything under 0.02 s becomes 0.02 s. Many browsers also slow down near-zero GIF delays when they show them, so the MP4 often plays a little faster than the GIF did in a browser.
  • Picture: the video is built from the GIF’s own frames, so it cannot add detail or colours the GIF did not have. Video compression can soften very fine pixel art slightly.
  • Size: usually smaller, but a tiny GIF with very few frames can come out about the same size or even larger, because a video file has fixed overhead.
  • When it fails: broken or non-animated files, very old browsers without WebCodecs, and extremely large GIFs on phones with little memory. The page shows a message instead of a broken video.

Why this tool is different

Upload-based converters send your GIF to a server, convert it there and send back a link. This one builds the video in your own browser tab. That has a few results you can check. There is no upload wait, and no server size cap. Your GIF never leaves your device, which matters for unreleased designs, internal demos or personal animations. And after the page has fully loaded, the converter keeps working with your internet switched off.

The converter also rebuilds each frame exactly as a browser would draw the GIF, including each frame’s own delay and dispose rule, instead of guessing a single frame rate for the whole animation. That is why GIFs with uneven timing, like a long pause on the last frame, play the same as video.

What we measure

The rules on this page come straight from the code the tool runs: the white background, rounding odd sizes up to even ones, a 0.1 s delay when the GIF sets none, a 0.02 s minimum per frame, and the encoder’s “high” quality level. The bitrates in the chart are computed from that quality level and the frame size; where the browser supports constant-quality encoding it uses that instead (a quantizer of 22 on H.264’s 0 to 51 scale, lower is better). We do not claim a fixed percentage saving, because the saving depends on your GIF. We do not collect, log or keep your file.

VidHaul vs typical online GIF to MP4 converters
VidHaulTypical upload-based sites
Upload neededNoYes
File size limitNone set by us; your device’s memory is the limitOften a fixed upload limit
WatermarkNeverSometimes on free plans
Sign-upNot neededSometimes needed for bigger files
Works offline after loadingYesNo
PrivacyThe GIF never leaves your deviceThe GIF is usually kept on a server for a while

Sources

Only convert GIFs you own or have the right to use.

Frequently asked questions

How to convert GIF to MP4?

Choose your animated GIF in the tool above, press Start and wait for the progress bar to finish. Then press Download to save the MP4 video.

How to convert a GIF to video?

Converting the GIF to MP4 is the simplest way. MP4 is a normal video file, so you can play it, share it or put it in a video editor like any other clip.

How to save a GIF as a video on iPhone or Android?

Open this page in Safari or Chrome on your phone, choose the GIF from Files or your photos and press Start. Then download the MP4 and save or share it like any video.

Does GIF to MP4 keep the loop?

The MP4 contains the animation once. Whether it loops depends on the player or app; many chat apps and websites loop short silent videos automatically.

Will the MP4 be smaller than my GIF?

Usually yes, often much smaller, because video compression is far more efficient than GIF. The page shows the size before and after so you can check.

What happens to transparent parts of the GIF?

H.264 MP4 video has no transparency, so transparent areas become white in the video.

Can I convert multiple GIFs to MP4 at once?

No, the tool converts one GIF at a time. Press “Convert another file” after each download to do the next one.

Is my GIF uploaded to a server?

No. The GIF to MP4 conversion runs entirely in your browser, so your file never leaves your device.

More free tools