Skip to content
Initurn

Convert APNG to GIF

Files never leave your device. All processing happens in your browser.

How to convert APNG to GIF

  1. 1

    Drop in your animated PNG.

  2. 2

    Every frame is decoded, recoloured to 256 shades and re-timed.

  3. 3

    Download a GIF that plays anywhere.

This is the only tool here that has to preserve motion, which makes it the most involved. Every other converter decodes one picture and re-encodes it. This one pulls apart an animation frame by frame, rebuilds each frame’s colours from scratch, and reassembles the whole thing with its timing intact.

You are trading colour for compatibility

APNG is technically the better format. It stores full 24-bit colour with smooth 8-bit transparency, exactly like a still PNG. GIF allows 256 colours per frame and transparency that is strictly on or off. Converting therefore means quantising every frame down to a 256-colour palette, and on gradients or photographic content you will see the difference as banding or a fine speckled dither.

The reason to do it anyway is that GIF goes places APNG does not. Plenty of chat apps, forums, older email clients, presentation software and upload forms accept GIF and either reject an APNG or, worse, display only its first frame as a still image.

What is preserved and what changes

  • Frame timing is carried across. APNG stores delays in milliseconds and GIF in hundredths of a second, so timings are rounded to the nearest centisecond.
  • Very short delays are raised to a floor of about 20 milliseconds, because GIF cannot express faster and browsers clamp them anyway.
  • Soft transparency becomes hard transparency. Semi-transparent pixels are forced fully visible or fully invisible, so feathered edges and drop shadows gain a jagged outline.
  • Each frame gets its own palette, which costs a little file size but stops a colour-shifting animation from banding badly on later frames.

Expect the GIF to be larger

People are often surprised by this, since GIF has fewer colours. But APNG inherits PNG’s compression, which is considerably better than the LZW scheme GIF has used since 1987, and it can store only the changed region of each frame. A GIF of the same animation is commonly two to four times bigger. If size is what you care about and the destination supports it, a short video or WebP animation beats both.

If your file is not animated

An APNG is a normal PNG with extra animation chunks, so a still PNG is a perfectly valid input that would produce a one-frame GIF. That is almost never what anyone wants, so the tool detects it and says so rather than handing you a static file. Conversion runs in a background thread on your own device, and nothing is uploaded.

Questions about APNG to GIF

Why convert APNG to GIF when APNG is better?

Compatibility. APNG has better colour and smoother transparency, but many chat apps, forums, email clients and upload forms only accept GIF — and some show an APNG as a single still frame rather than rejecting it outright.

Why does my GIF look banded or speckled?

GIF allows only 256 colours per frame, so every frame is quantised down from full colour. Gradients and photographic content show this most, as banding or a fine dither pattern. There is no setting that avoids it — it is the format.

Why is the GIF bigger than the APNG?

APNG uses PNG compression, which is much more efficient than GIF’s LZW scheme, and it can store only the part of each frame that changed. Two to four times larger is normal, despite the GIF having fewer colours.

What happens to soft edges and drop shadows?

They get a hard edge. GIF transparency is one bit per pixel, so partially transparent pixels are forced either fully visible or fully invisible. Smooth fades against a background are the main casualty.

Is the animation speed the same?

Very close. APNG stores delays in milliseconds and GIF in hundredths of a second, so each frame is rounded to the nearest centisecond, and very fast frames are raised to about 20 milliseconds since GIF cannot go quicker.

I get a message saying my file is a still image.

Your PNG has no animation chunks, so it contains one frame. Converting it would produce a single-frame GIF, which is almost certainly not what you wanted — use the PNG converters for still images instead.

Is there a frame limit?

Yes, 300. Each frame has to be quantised individually, and beyond that the work takes long enough to make the tab unresponsive. Long animations are better served by a video format.