GIF to APNG

Convert GIF to APNG format

Click or drop a GIF file hereChoose a GIF file

About GIF to APNG

GIF to APNG turns an animated GIF into an animated PNG. It decodes the GIF with gifuct-js, rebuilds every frame the way a GIF player draws it, including optimized GIFs that store only the changed pixels and all three disposal methods, and writes the frames losslessly with upng-js. Frame delays and the play count of the GIF are carried into the APNG. Colors and transparency stay exactly as in the GIF: the tool adds no detail the GIF did not have. The GIF is converted on this page and is not uploaded.

How to convert GIF to APNG

  1. 1Choose an animated .gif; it starts playing in the box.
  2. 2Click "Convert to APNG".
  3. 3Check the result and the number of frames shown under it.
  4. 4Click "Download" to save converted.png, an animated PNG.

Formats and limits

Input
GIF (image/gif)
Output
APNG, saved as converted.png
Frame size
Up to 16.8 MP per frame, read from the GIF header before decoding
Compression
Lossless, with no color reduction
Timing
Delays copied from the GIF; a delay of 0 becomes 100 ms

Where your file is processed

The GIF is decoded and the APNG encoded by JavaScript on this page, so your file is not uploaded and the APNG is created on your device. When an error appears, our error log gets that sentence cleaned of names, plus the tool and browser names; the GIF itself is never part of it.

Frequently asked questions

Will an optimized GIF come out with holes?

No. Each frame is drawn over the previous one, as a GIF player does, so a GIF that stores only the pixels that changed still gives complete frames. The three disposal methods of the GIF format, including restore to background and restore to previous, are applied.

Does the APNG loop like the GIF?

Yes. The loop count stored in the GIF, in its NETSCAPE2.0 block, is copied: forever stays forever, and a GIF without that block, which plays once, gives an APNG that plays once.

Is the conversion lossy?

No. The rebuilt frames are stored as full-color PNG data with their alpha channel, so every pixel is kept. The APNG cannot be better than the GIF, though: the palette and the hard transparency of the GIF stay as they were.

Is there a size limit?

Yes: 16.8 MP per frame at most, taken from the GIF header before anything is decoded. File size and frame count have no fixed cap; long animations take longer.

Tips and tricks

  • ✓Need a GIF again later? APNG to GIF converts in the other direction.