GIF to APNG Converter
Turn an animated GIF into an animated PNG. Every frame, color and transparent pixel is kept exactly, and nothing is uploaded.
How it works
- 1Drop a .gif file, or paste one with Ctrl+V.
- 2Convert. Each frame is stored losslessly as PNG data in one animated file.
- 3Download the .png and use it anywhere animated PNG plays.
How the APNG is written
This converter writes the APNG file itself, in your browser, and it reads the GIF twice. The first pass collects every color used in any frame. If the total is 256 or fewer, which is true for most GIFs, frames are stored as indexed pixels that point into one shared palette, with a transparency table when needed. If the total is higher, frames are stored as 32-bit RGBA instead. The second pass compresses each frame with zlib at its highest level. Like a GIF, each frame stores only the area that changed since the previous one. The first frame covers the whole canvas and doubles as the still image that apps without APNG support show.
Why an APNG can come out larger than the GIF
A GIF frame can carry its own palette, so a GIF made from video may use 256 colors per frame and many more across the whole animation. That pushes the converter into RGBA mode, where every pixel takes four bytes before compression instead of one, and the file can end up larger than the GIF. Icons, loaders and stickers with flat colors usually stay small. The badge next to the preview shows the size change, so you can tell right away which case you have.
What is kept and what is not
- Pixels: every frame matches the GIF frame exactly. Nothing is lossy and no colors are added.
- Timing: delays are copied. A GIF delay of 0 or 1 hundredth of a second is written as 100 ms, because that is how browsers play it.
- Looping: forever stays forever. A GIF with no loop setting plays once, and so does the APNG.
- Transparency: APNG supports soft, 8-bit alpha, but a GIF has only on and off, so edges stay hard. For soft edges, export an APNG from the original animation software instead.
Where an APNG makes sense
Current browsers play APNG in an img tag, which makes it a good fit for short icons, loaders and stickers on your own pages. Discord asks for APNG for animated stickers and caps the file at 512 KB, so check the size badge before you upload. For a longer or photographic clip, GIF to WebP gives a much smaller file. To retouch single frames first, split the GIF with GIF to PNG Frames.