APNG to GIF
Convert APNG to GIF format
Click or drop an APNG file hereChoose an APNG file
About APNG to GIF
APNG to GIF converts an animated PNG (APNG) into an animated GIF, for apps and sites that do not show APNG. It decodes every frame with upng-js and encodes them with gifenc, on this page. Each frame gets its own palette of up to 256 colors. Mostly transparent pixels become fully transparent and the others fully opaque, because GIF has no partial transparency. Frame delays and the number of plays are copied from the APNG. A plain, non-animated PNG works too and gives a one-frame GIF.
How to convert APNG to GIF
- 1Choose an .apng or .png file; a preview appears in the box.
- 2Click "Convert to GIF".
- 3Watch the GIF play; the frame count appears in green under it.
- 4Click "Download" to save converted.gif.
Formats and limits
- Input
- APNG or PNG (image/apng, image/png)
- Output
- Animated GIF, saved as converted.gif
- Frame size
- Up to 16.8 MP per frame (width × height), on every device
- Transparency
- 1-bit: each pixel is either fully transparent or fully opaque
- Colors
- A palette of up to 256 per frame, without dithering
Where your file is processed
The APNG is read and the GIF is built by JavaScript in your browser; the file is not uploaded anywhere. An error shown on the page is logged for us with its cleaned text, the tool name, and your browser and its version, without the file or its name.
Frequently asked questions
Will transparency survive the conversion?
Yes, but only on or off: GIF lets a pixel be fully transparent or fully opaque, nothing in between. Pixels with an alpha under 50% become transparent and the others opaque, so soft shadows and smoothed edges turn into hard edges.
Does the GIF play as many times as the APNG?
Yes. An APNG set to loop forever gives a GIF that loops forever, one set to play once plays once, and a fixed count such as three plays is kept. A frame without a delay is given 100 ms.
Will the colors stay exactly the same?
No, not always. An APNG can hold millions of colors per frame and a GIF at most 256; each frame is reduced to its own palette without dithering, so gradients and photos may show bands, while flat graphics and icons usually look the same.
Is there a size limit?
Yes: a frame may have at most 16.8 MP, read from the file header before any decoding. Neither the file size nor the number of frames has a fixed limit; a long animation simply takes longer to convert.
Tips and tricks
- ✓To go the other way and keep full transparency, use GIF to APNG.
- ✓GIF Compressor can make the converted GIF lighter afterward.