GIF Ready
← GIF Guides

Animated PNG (APNG) Explained: Better Than GIF?

APNG (Animated PNG) is a PNG file with extra frames added. It keeps everything PNG is good at, full 24-bit color and smooth 8-bit transparency, and adds animation on top. It beats GIF on quality, but it's rarely smaller, and outside browsers it's much less widely supported.

How APNG works

APNG was created at Mozilla in 2004 as an extension to PNG. Firefox shipped it early, and the other browsers added it over the following decade. It became part of the official PNG specification with the third edition, published by the W3C in 2025.

The clever part is backward compatibility. An APNG file still uses the .png extension and starts with a normal PNG image. A viewer that doesn't understand the animation chunks simply shows that first image and ignores the rest. Nothing breaks; the animation just doesn't play.

That also means you can't tell an APNG from a regular PNG by its name. If a "PNG" sticker you downloaded animates in the browser but sits still in an image editor, it's an APNG.

APNG vs GIF vs animated WebP

FeatureGIFAPNGAnimated WebP
Colors256 per frameFull colorFull color
TransparencyOn/off per pixelFull alpha (soft edges)Full alpha (soft edges)
CompressionLossless, LZWLossless, DeflateLossy or lossless
Typical sizeBaselineSimilar to much largerUsually smaller than both
BrowsersAllAll current browsersAll current browsers
Apps and emailAlmost everywhereLimited, often first frameMixed

A few points behind the table:

For a fuller comparison that includes AVIF and MP4, see WebP vs GIF vs APNG vs MP4.

Where APNG is supported

So APNG works when you control where it's displayed, mainly your own web pages or a platform that asks for it.

When to use APNG

Use APNG when:

Skip it when:

Making an APNG from a GIF

Converting a GIF to APNG won't add colors the GIF never had, and it won't soften its hard transparency edges. You only get APNG's real advantages when you build it from full-quality source frames.

If the GIF is all you have, you can still split it into frames with the GIF to PNG tool, which exports every frame as a full-size PNG in a ZIP. You can edit those frames, then assemble them with any APNG-capable tool. The free command-line tool ffmpeg can also convert directly:

ffmpeg -i input.gif -plays 0 output.apng

-plays 0 makes it loop forever. Rename the result to .png if the place you're uploading it expects that extension.

Try it