Video · 59 tools · nothing uploads

GIF to MP4

Turn an animated GIF into an MP4. This parses the GIF89a bytes itself, including disposal method and transparency compositing, then encodes the composited frames through WebCodecs. Browser only; transparent pixels become opaque black, MP4 has no alpha channel.

Input

GIF to MP4 reads the raw GIF89a bytes of an animated file itself, working out each frame's disposal method and transparency before compositing it. The composited pictures then encode into MP4 through WebCodecs. Any pixel left transparent turns opaque black, since MP4 carries no alpha channel at all. This page runs in the browser only.

Questions

Does this handle a GIF built from partial-frame deltas correctly?

Yes. This tool parses the GIF89a bytes itself, including disposal method and transparency compositing, so a GIF whose frames only redraw part of the canvas decodes to the same full frames a browser would display, not the raw per-frame rectangles the file stores.

What happens to transparent pixels?

They become opaque black. MP4 has no alpha channel, so a transparent GIF pixel is composited onto a canvas that starts fully transparent black, and that is what lands in the video rather than the checkerboard a GIF viewer shows.

Which engine handles this, and where can it run?

A GIF89a parser built into this tool reads the source and mediabunny with WebCodecs encodes the composited frames into MP4, so it is browser only. The command line and MCP refuse it and point to the web page.

What size should I expect?

A small source stays small. A 64 by 48 pixel test GIF a little over half a second long produces a correspondingly small MP4 with a real mdat box holding sample data, each frame delay from the GIF becoming its video frame duration.

What is the reverse page?

MP4 to GIF runs the opposite direction, the reverse pair of this one, sampling frames from the video and quantizing them onto a shared palette.

Related Video tools

n→nMOV to MP4Repackage a QuickTime MOV into MP4. Both are the same ISOBMFF box family carrying the same H.264/H.265 and AAC, so every packet is copied across with no decode and no re-encode.Runs on each file you dropn→nMKV to MP4Repackage a Matroska MKV into MP4 with no decode and no re-encode. A subtitle or attachment track MP4 has no room for is dropped and named, the video and audio packets are copied across untouched.Runs on each file you dropn→nTS to MP4Repackage an MPEG transport stream (.ts) into MP4. TS repeats its stream tables throughout the file for channel-hopping and has no seek index; MP4 gets one, so the same packets seek instantly once copied across.Runs on each file you dropn→n3GP to MP4Repackage an old 3GP mobile video into MP4. 3GP is already an ISOBMFF variant carrying H.264/AAC or the older H.263/AMR, so a modern player that refuses the 3GP extension plays the identical packets once they sit in an MP4 box.Runs on each file you dropn→nMP4 to WebMTranscode an MP4 to WebM. H.264/AAC and VP8-VP9/Opus are unrelated codec families, so every frame is decoded and re-encoded rather than copied, in the browser only, through WebCodecs.Runs on each file you dropn→nWebM to MP4Transcode a WebM to MP4. VP8/VP9/AV1 and Opus/Vorbis are not MP4-native codecs, so this decodes and re-encodes every frame through WebCodecs, in the browser only, rather than repackaging the bytes.Runs on each file you dropn→nMP4 to GIFTurn an MP4 clip into an animated GIF. WebCodecs decodes the frames and this tool builds the GIF89a bytes itself: one shared 256-colour palette across every sampled frame, no dithering. Browser only.Runs on each file you dropn→nMOV to GIFTurn a QuickTime MOV screen recording or clip into an animated GIF. WebCodecs decodes the frames and this tool builds the GIF89a bytes itself, one shared palette across every sampled frame. Browser only.Runs on each file you drop