APNG to GIF
Convert an animated PNG to an animated GIF.
GET
1 credit
/v1/convert/apng-to-gif
curl -OJ "https://convert.toolkitapi.io/v1/convert/apng-to-gif?url=https://toolkitapi.io/animated.png"
import httpx
resp = httpx.get(
"https://convert.toolkitapi.io/v1/convert/apng-to-gif?url=https://toolkitapi.io/animated.png",
)
print(resp.json())
const resp = await fetch("https://convert.toolkitapi.io/v1/convert/apng-to-gif?url=https://toolkitapi.io/animated.png", {
});
const data = await resp.json();
console.log(data);
# See curl example
Response
200 OK
Binary GIF file streamed as a download (Content-Type: image/gif)
Description
Convert an animated PNG to an animated GIF.
How to Use
1
1. GET this endpoint with the APNG `url`.
2
2. Save the streamed GIF.
About This Tool
Converts an animated PNG (APNG) into an animated GIF. APNG offers superior color depth and alpha, but GIF remains the most compatible animated format across email clients and legacy platforms.
Per-frame transparency and timing are preserved to the extent GIF supports them. True 24-bit color is reduced to GIF's 256-color palette.
Why Use This Tool
- Email animations — GIF is more widely supported in email clients than APNG
- Legacy platforms — Old forums, wikis, and CMSes still prefer GIF
- Messaging apps — Universal animated-image support on chat platforms
- Compatibility fallback — Ship GIF alongside APNG for non-supporting browsers
Frequently Asked Questions
Will colors look different?
Possibly — GIF is limited to 256 colors per frame, so images with subtle gradients may show banding.
Is the frame timing preserved?
Yes — per-frame delays are carried over from APNG to GIF.
What about transparency?
GIF supports 1-bit (index) transparency only. Alpha gradients in the APNG are quantized.
Start using APNG to GIF now
Get your free API key and make your first request in under a minute.