Initializing... drag & drop files here
Supports: APNG, PNG
An animated PNG stores every frame losslessly, so even a short loop can run tens of megabytes and won't open in most legacy media players, DVD-authoring tools, or older editors. Converting to MPG wraps the animation in the classic MPEG container — by default it encodes MPEG-2 video, the same codec used by DVD-Video and digital-TV broadcast — so it plays in long-standing desktop players and disc-authoring software that predate MP4. The honest trade-offs: MPEG-2 is lossy and has no alpha channel, so APNG transparency is flattened onto a solid Background Color, and the result is larger than an MP4. If you just want the smallest universally-playable clip, convert APNG to MP4 instead.
.apng onto the page or click "Upload" to choose it. You can add several files at once.| Property | APNG (input) | MPG / MPEG-2 (output) |
|---|---|---|
| Year / standard | PNG ext. 2004 (W3C 2023) | ISO/IEC 13818, 1996 |
| Compression | Lossless | Lossy (visually close at high quality) |
| Typical file size | Large — often several times bigger | Smaller than APNG, larger than MP4 |
| Alpha transparency | Yes (8-bit alpha) | No — flattened onto a Background Color |
| Default codec here | n/a | MPEG-2 video |
| Audio track | No | Optional (none added from a still-image APNG) |
| Built-in loop flag | Yes | No native loop flag |
| Best for | Lossless web/sticker loops | DVD authoring, legacy players and editors |
This converter encodes MPEG-2 video into the .mpg container by default, which is the codec DVD-Video and digital-TV broadcast use. MPEG-2 (ISO/IEC 13818, published 1996) supports higher bit rates and better quality than the older MPEG-1 (1993), which targeted CD-ROM/Video-CD data rates of around 1.2 Mbps. Both are valid inside a .mpg file, so older players that accept one generally accept the other.
MPEG-2 video has no alpha channel, so any APNG transparency is flattened onto a single solid color during conversion. The default is black; set Background Color to white or any other color so the flattened area matches the player, page, or disc menu where the video will appear. There is no way to keep true transparency in an MPG — if you need an alpha channel, stay on APNG or convert APNG to WebP instead.
Choose MPG when you specifically need the MPEG-2 container — DVD authoring, older desktop players, or editing software that won't ingest modern formats. For almost everything else, APNG to MP4 is the better target: H.264 produces a much smaller file at the same visual quality and plays on essentially every phone, browser, and editor. MPG is the right answer only when a legacy tool or workflow demands it.
MPEG-2 is an older, less efficient codec than the H.264 used in MP4, so for the same resolution and quality it produces a noticeably bigger file. In our testing, a 1080p 3-second APNG loop of about 9 MB converted to roughly a 1.5-2 MB MPG at the default quality — small versus the source APNG, but several times larger than the equivalent MP4. Lowering the Video resolution or Quality Preset shrinks it further.
No. APNG stores a loop count in the file; the MPEG container has no native loop flag, so the clip plays once unless the player or your authoring tool is set to repeat it. For web embedding, MP4 with the loop attribute on a <video> tag is far easier than MPG — another reason to prefer APNG to MP4 unless a legacy MPEG workflow requires the .mpg file.