APNG Animation Explained: Frame-Based Graphics, Transparency, and Image Quality
Article Nov 29, 2026

APNG Animation Explained: Frame-Based Graphics, Transparency, and Image Quality

M Seemab

M Seemab

Content Creator & Editor

APNG, or Animated Portable Network Graphics, extends the PNG format so a single file can hold many frames and play them as an animation. It keeps PNG's full color and 8-bit alpha transparency, so it looks far better than a GIF, and programs that do not understand animation still show the first frame as an ordinary PNG.
APNG started in 2004 as a proposal from Mozilla engineers and was first supported in Firefox. The PNG working group did not adopt it at that time, and a different animated format, MNG, never won wide support. Over the following years, browsers adopted APNG anyway, and it has since been included in the third edition of the PNG specification. This guide explains how the frames are stored, what the transparency options mean, how large the files get, and where the format is a good choice.

Key Points

  • APNG adds animation to PNG through extra chunks: acTL, fcTL and fdAT.
  • Every frame can use full color and an 8-bit alpha channel.
  • Unsupported software displays the first frame, so APNG degrades gracefully.
  • Compression is lossless, so quality is high and long animations can be large.
  • Current mainstream browsers support it, but many editors and platforms do not.
  • Animated WebP, AVIF, or video are lighter for long clips.
KEY TAKEAWAY
“APNG is a PNG that learned to move. Anything that cannot play it simply shows the still image and carries on.”

How APNG Stores Animation

An APNG file is a valid PNG with extra chunks. The animation control chunk, acTL, appears before the image data and records the number of frames and the number of times to play. Each frame has a frame control chunk, fcTL, that gives its size, its position on the canvas, how long to display it, how to dispose of it afterwards, and how to blend it with what is already there. Frame pixel data is stored in IDAT chunks for the default image and in IDAT chunks for later frames.
The default image is a normal PNG image. A program that knows nothing about APNG ignores the animation chunks and shows that image. The first frame of the animation can be the default image or, if desired, a separate fallback picture that is not part of the animation, which allows a designer to show a meaningful still where animation is unsupported.
Chunk
Purpose
Notes
acTLAnimation control: frame count and loop countA loop count of zero means repeat indefinitely
fcTLFrame control: size, offset, delay, disposal, blendOne per frame
IDATImage data for the default imageSame as an ordinary PNG
fdATFrame data for later framesCarries a sequence number

Disposal and Blending: Why Frames Can Be Small

Each frame may cover only a rectangle of the canvas, so an animation where only a small part changes can store only that part. Two settings make this work. The disposal method tells the player what to do with the area after the frame has been shown: leave it, clear it to transparent, or restore what was there before. The blend operation decides whether a new frame replaces the pixels underneath or is composited over them using alpha. Used well, these options keep simple animations compact, and used badly they cause ghosting, where traces of earlier frames remain.
Setting
Options
Effect
DisposalNone, background, previousControls what remains after a frame
BlendSource or overReplace pixels or composite with alpha
Frame regionAny rectangleSmaller regions mean smaller files
DelayFraction of a second per frameSets the speed of each frame

Color, Transparency and Quality

APNG frames can use any PNG color type, including 24-bit color with an 8-bit alpha channel. There is no 256-color restriction, and soft shadows and anti-aliased edges blend smoothly with any background, which GIF cannot do. Compression is lossless, so quality depends only on the source frames. That fidelity makes APNG a good fit for interface animation, animated stickers, and graphics with fine gradients.

File Size Considerations

Lossless frames add up. A short animation of flat shapes can be tiny, while a long or photographic animation can reach many megabytes. APNG is often smaller than GIF for graphics with gradients or alpha, because GIF has to dither a limited palette. For video-like or photographic content, lossy animated WebP, animated AVIF or a short video file will normally be far smaller. Specialised optimizers help by reducing frame rectangles, reusing identical pixels and choosing disposal and blend modes automatically.
Content
APNG size
Better option if size matters
Flat vector-style loopSmallAPNG is fine
Gradient or alpha-heavy interface animationModerateAPNG or animated WebP
Photographic motionVery largeVideo or animated AVIF
Long clipVery largeVideo

Browser and Software Support

Firefox led support, and Safari, Chrome and Chromium-based Edge followed, so current mainstream browsers display APNG. Outside browsers, the picture is mixed: some image viewers and editors show only the first frame, and many social platforms re-encode or reject APNG uploads. The MIME type is image/apng, and files normally use the .png extension, sometimes .apng, which makes an animated file hard to tell apart from an ordinary PNG without opening it. Always test in each environment where you plan to publish.

APNG Compared With Other Animation Formats

  • APNG and GIF: APNG offers more colors and true alpha but less recognition in chat apps and older tools. See the GIF guide.
  • APNG and PNG: A standard PNG is a still image; APNG is backward compatible. See the PNG guide.
  • APNG and animated WebP: WebP can be lossy and smaller, while APNG is always lossless. See the WebP guide.
  • APNG and video: video is smaller and can carry sound, but does not handle transparency as simply across browsers.

Working With APNG Files

The SnapZain Image Format Converter does not list APNG as a separate input or output, and its page states that multi-frame sources may be flattened during conversion, so an uploaded animated PNG may produce at most a still image. If frames matter, use a dedicated animation tool. A typical workflow is to export numbered PNG frames from an editor or video, assemble them with an APNG assembler, optimize the result, and verify playback in several browsers.
  • GIF to APNG: moves indexed frames to PNG frames. Soft transparency appears only if you rebuild it, since GIF had one-bit transparency.
  • APNG to GIF: reduces to 256 colors and loses soft edges.
  • APNG to a still image: extract the frame you need, or accept the default image.

Building a Clean APNG: Workflow Notes

  • Plan the loop: make the last frame flow into the first so the repeat is invisible.
  • Keep frames small: crop each frame to the area that changes.
  • Choose a clear first frame: it is what unsupported software will show.
  • Use sensible delays: very short delays may be capped by browsers.
  • Optimize last: run an APNG optimizer after the animation is final.
  • Test in several browsers: check that disposal and blending look identical.
These habits keep files small and prevent the ghosting that plagues hasty exports.

Frame Timing Cheat Sheet

Goal
Typical delay per frame
Note
Smooth motionAbout 1/24 to 1/30 of a secondLarger files
Light interface animationAbout 1/12 to 1/15 of a secondGood balance
Slideshow-like loopHalf a second or moreVery small files
Very short delays may be capped by browsers, so test the final file instead of trusting the numbers alone.
Accessibility deserves a thought as well. Animated images can distract or cause discomfort, so keep loops short, avoid rapid flashing, and respect visitors who prefer reduced motion where your page allows you to swap in a still frame. Always describe the content of the animation in the alt text, not just its title.

Common APNG Mistakes

  • Naming an APNG as .gif: the container is PNG.
  • Skipping optimization: raw exports can be huge.
  • Assuming platform support: test first and keep a GIF or video fallback.
  • Ignoring the default image: make it a good still for fallback viewers.
  • Editing in a still-image editor: saving can strip the animation chunks.

Continue Reading

Conclusion

APNG delivers GIF-style animation with PNG-quality color and alpha, backward compatible with ordinary PNG viewers. It is an excellent choice for short, crisp loops in environments that support it, and a poor one for long or photographic clips. Pick it for quality, choose WebP, AVIF, or video for size, and always plan for the platforms that will show only the first frame.

Frequently Asked Questions

Is an APNG the same as a PNG?

An APNG is a PNG with additional animation chunks. Every APNG is a valid PNG, but a standard PNG has no animation data.

What happens in software that does not support APNG?

It shows the default image as an ordinary still PNG.

How can I tell whether a .png file is animated?

Open it in a browser or APNG-aware viewer, or inspect the file for acTL, fcTL, and fdAT chunks with a PNG chunk tool.

What does the acTL chunk do?

It records the number of frames and how many times the animation plays, where zero means indefinitely.

What is the FCTL chunk?

The frame control chunk. It sets each frame's size, position, delay, disposal method, and blend operation.

Why do some APNG animations show ghosting?

A wrong disposal or blend setting leaves parts of earlier frames on the canvas. Correct the settings or export again with an optimizer.

Is APNG better than GIF?

For quality, yes, because it has full color and true alpha. For recognition in chat apps and older tools, GIF is still more widely accepted.

Which browsers support APNG?

Currently, Firefox, Safari, Chrome, and Edge display it. Check a support table for older versions.

Why is my APNG so large?

Each frame is stored losslessly. Reduce dimensions, frame count, and color complexity, run an optimizer, or consider WebP or video for long clips.

Can an APNG have a different first image than its animation?

Yes. The default image can be a separate fallback picture that is not part of the animation.

Can APNG be used for stickers?

Some messaging platforms accept APNG for animated stickers, but each has its own size, dimension, and duration rules.

How soft can APNG transparency edges be?

Each frame can carry an 8-bit alpha channel, so edges and shadows can fade smoothly, unlike GIFs' on-or-off transparency.

What is the MIME type of APNG?

image/apng. Files usually keep the .png extension, though .apng is also used.

Does APNG support looping?

Yes. The loop count in the animation control chunk can be a fixed number or zero for endless looping.

Can I edit an APNG in a normal image editor?

Many editors treat it as a still PNG and may drop the animation when saving, so use animation-aware tools.

How do I create an APNG?

Export numbered PNG frames, assemble them with an APNG tool, set delays and loops, optimize the file, and test it in several browsers.

Will an APNG animate in email?

Often not. Many email clients show a still frame or block the image type, so GIF or a link is safer.

How does APNG compare with animated AVIF?

APNG is lossless and widely displayed in browsers, while animated AVIF can be much smaller but has fewer creation tools.

Does the SnapZain converter keep APNG animation?

Its page lists no APNG-specific support and warns that multi-frame sources may be flattened, so do not rely on it to preserve animation.

When is APNG the right choice?

For short, crisp animations that need smooth transparency and will be shown in browsers or apps that support the format.

Why do some APNGs look choppy in one browser but smooth in another?

Browsers treat very short frame delays differently, and some enforce a minimum. Use common frame delays and test in several browsers.

Share this article

Join the Conversation