Initializing... drag & drop files here
Supports: GIF
This tool turns an animated GIF into an MPEG video — an MPEG program stream using the MPEG-2 codec by default, with MPEG-1 also selectable. MPEG is a legacy-leaning target: it plays on DVD-era hardware, set-top boxes, and old editing suites that pre-date H.264. For almost everything else — web, phones, messaging, social — GIF to MP4 is the better pick: same animation, a fraction of the size, and it plays everywhere. Convert to MPEG only when something on the receiving end specifically needs it.
| Property | GIF (source) | MPEG (MPEG-2) | MP4 (H.264) |
|---|---|---|---|
| Standard | GIF89a (1987) | ISO/IEC 13818, ITU-T H.262 (~1995) | ISO/IEC 14496, H.264 (~2003) |
| Container | GIF | MPEG program stream | MP4 (ISO BMFF) |
| Colors per frame | 256 (palettised) | ~16.7M (8-bit YUV) | ~16.7M (8-bit YUV) |
| Inter-frame compression | None (each frame standalone) | Yes (I/P/B frames) | Yes (I/P/B frames) |
| Typical size, equal quality | 1x (baseline) | ~5x larger than MP4 | smallest of the three |
| Audio from a GIF source | None (GIF has no audio) | None — output is silent | None — output is silent |
| Plays in web browsers | Yes, in <img> |
No native browser support | Yes, ~96%+ via <video> |
| Best at | Tiny reactions, pixel art | DVD authoring, legacy players, old NLEs | Web autoplay, social, messaging |
The headline: MPEG-2 carries far more color than GIF's 256-color palette, but it is an old codec. At equal visual quality an MPEG-2 clip is roughly five times the size of the same content in H.264 MP4, and no mainstream browser plays a raw .mpeg inline. MPEG earns its place only where legacy compatibility is the requirement.
.mpeg/.mpg cleanly but chokes on modern H.264.<video autoplay loop muted playsinline>.It keeps its motion. We read every frame of the animated GIF and encode them in order as a true MPEG video, so a looping GIF becomes a playable clip of the same length — not a single held frame. The per-frame "Image Duration" control you may have seen on other image-to-video tools is hidden for GIF input precisely because the GIF already carries its own frame timing; we use that timing directly.
No. GIF has no audio stream at all, so there is nothing to carry over — the resulting MPEG is silent by nature, not muted. This is expected for any GIF-to-video conversion. If you need narration or music, add an audio track afterwards in a video editor.
By default the MPEG container is encoded with the MPEG-2 codec (ISO/IEC 13818 / ITU-T H.262), which is what DVD players and most legacy MPEG hardware expect. If you specifically need MPEG-1 (the older ISO/IEC 11172 standard used for Video CD and capped near 1.5 Mbit/s), open Advanced Options and choose MPEG-1 under Video Codec. Pick MPEG-1 only when a device explicitly requires it; MPEG-2 is the safer default for DVD-era playback.
Because MPEG-2 is an older, less efficient codec. It uses inter-frame compression — far better than GIF, which stores every frame whole — but it predates H.264 by roughly a decade. At equal visual quality, an MPEG-2 clip is commonly around five times the size of the same content as H.264 MP4. That inefficiency is the trade-off for MPEG-2's broad legacy-hardware compatibility. If size matters, convert to MP4 instead.
No — the output can match the source but never exceed it. The GIF you upload is already limited to 256 colors per frame and whatever resolution and frame rate it was saved at. MPEG-2 can hold far more color than that, so it won't add banding, but it also can't invent detail the GIF never captured. Upscaling the resolution just enlarges the existing pixels; it doesn't recover lost color or sharpness.
Usually not natively. Browsers don't play raw .mpeg/.mpg in a <video> tag, and most phones won't open it without a third-party player like VLC. MPEG-2's strength is decades-old hardware — DVD players, set-top boxes, broadcast gear — not modern web or mobile. For anything browser- or phone-bound, use GIF to MP4; H.264 MP4 has roughly 96%+ browser support and plays inline on iOS and Android.
Yes. Use MPEG to MP4 to re-wrap an MPEG clip into a modern, web-friendly H.264 MP4. Note that re-encoding from an already-lossy MPEG can't recover quality lost in the first pass — so if you still have the original GIF, converting that straight to MP4 gives a cleaner result than a GIF-to-MPEG-to-MP4 round trip.
Meaningfully smaller, because MPEG-2 adds the inter-frame compression GIF completely lacks. In our testing, a 5-second 480p animated GIF in the 6-10 MB range converts to an MPEG-2 program stream in the low hundreds of KB to low single-digit MB, depending on motion and the quality preset. The savings are biggest on photographic or gradient-heavy clips where GIF's 256-color palette wastes the most space. An H.264 MP4 of the same clip would be smaller still.