APNG to GIF
Published Updated
Choose your output scale, then convert your APNG into a widely supported GIF — free, private, and processed entirely in your browser.
All frames, composed the way the PNG spec says
This converter decodes every frame of an animated PNG, applies each frame's dispose and blend operations and places partial-canvas frames where they belong, and then writes an animated GIF with the same delays and loop count. What you see in a browser tab is what the GIF should play, apart from the limits of the GIF format.
The frame rules come from section 4.9 of the PNG specification, which defines APNG. A plain PNG with no animation is also accepted and gives a one-frame GIF.
What carries over and what changes
| APNG property | In the GIF |
|---|---|
| Frames and their order | All kept, up to 500 |
| Frame delay | Rounded to 10 ms, never below 20 ms |
| Play count | Forever stays forever, once means no loop setting, N plays gives a loop count of N minus 1 |
| Colors | One shared palette of up to 256 |
| Transparency | On or off, cut at alpha 128 |
| Pixel size | Original, or 75% or 50% of it |
What a GIF cannot hold
The conversion goes from a richer format to a poorer one, and these are the specific losses.
- Color. PNG can store 8 or 16 bits for each color channel (PNG specification). A GIF palette has at most 256 (GIF89a), and when the animation has transparency one entry is reserved for it, leaving 255.
- Transparency. PNG and APNG carry 8- or 16-bit alpha. GIF has a single transparent palette entry, so soft edges turn hard.
- Size on disk. Flat artwork is small in either format. A photographic animation is visibly banded as a GIF and often large, because every frame is stored in full.
Converting a PNG or APNG
Step 1
Add an APNG or PNG
Choose one file. The preview shows it as your browser renders it, and the converter reads every frame.
Step 2
Pick 100%, 75% or 50%
100% keeps the original pixel size. The other options scale width and height together for every frame.
Step 3
Convert and download
The GIF appears on the result card with its pixel size and frame count. Save it with the download button.
Is your PNG animated?
An animated PNG keeps the .png extension, so the name will not help. Drag the file into a browser tab. If it moves, it is an APNG, and browsers including Chrome, Firefox and Safari play it (MDN image format guide). If it stays still, it is an ordinary PNG, and this tool gives you a still GIF.
What the converter does to an APNG
The PNG is parsed for its size, frame count and play count. Each frame is then rebuilt on a full canvas by applying the APNG dispose and blend operations, with sub-rectangles placed at their offsets. The result is resized if you chose a scale, soft alpha edges are snapped, and the frames go to the same GIF encoder as the other GIF tools: one shared palette of up to 256 colors, one transparent slot, and no dithering.
In an APNG each frame has a delay as a fraction, a dispose operation and a blend operation, and the animation-control chunk holds the play count (PNG Third Edition). A GIF stores delays in hundredths of a second, so the delays are rounded to 10 ms steps, and the tool never writes less than 20 ms.
Worked example: a 12-frame APNG with a soft shadow
The input is a synthetic 240 x 180 APNG made with Pillow 11.3.0: a disc that changes color from frame to frame, a blurred half-transparent shadow, delays repeating 10, 20 and 40 ms, and a play count of 0 (forever). The site's own conversion function ran in Node 22 and Pillow read the GIF back to count pixels in frame 6.
| Measurement | Result |
|---|---|
| File size | 47,937 B as APNG, 9,302 B as GIF |
| Frames and loop | 12 frames in, 12 out, loops forever |
| Delays written | 20, 20, 40 ms repeating (the 10 ms frames became 20 ms) |
| Frame 6, alpha 0 or 1 to 127 | 34,263 and 6,028 pixels: 40,291 transparent in the GIF |
| Frame 6, alpha 128 to 255 | 400 and 2,509 pixels: 2,909 opaque in the GIF |
| Frame 6, partly transparent pixels left in the GIF | 0 |
The numbers match the rule exactly: every pixel under 128 alpha became transparent and every other one became opaque, so the soft shadow edge is gone. Going the other way is not free either. A flat 30-frame GIF that became a 5,761 B APNG came back as a 15,369 B GIF, against 7,761 B at the start, because the GIF encoder here writes whole frames instead of only the changed rectangle. Frame count, delays and the two repeats survived the round trip.
Edge cases
- A default image that is not part of the animation is skipped, and a PNG with no animation becomes a one-frame GIF.
- A play count of 1 gives a GIF with no loop extension, and a count of N gives N-1 repeats, since GIF counts repeats after the first play.
- A file over 31.46 MB, over 500 frames, or needing more than 300 MB (300 x 1,048,576 bytes) for its decoded frames is refused with a message before conversion starts.
- Gradients band because the palette is shared by all frames and there is no dithering.
APNG to GIF, answered
Does the GIF keep the animation of my APNG?
Yes. All frames are decoded, including frames that only update part of the canvas and the dispose and blend settings, then written as an animated GIF with the delays and the loop count. A PNG that is not animated becomes a one-frame GIF.
How are frame delays handled?
GIF stores time in hundredths of a second, so delays are rounded to 10 ms and never go below 20 ms, because browsers show 10 ms and below as 100 ms. An APNG that plays once gives a GIF with no loop setting, and one that loops forever stays that way.
Why do gradients look banded in the GIF?
A GIF animation here uses one palette of at most 256 colors shared by all frames, and there is no dithering. Smooth skies and shadows band, while flat artwork survives well.
What happens to semi-transparent pixels?
Pixels with alpha of 128 or more become fully opaque and the rest fully transparent. A drop shadow that was 40% opaque disappears, and one that was 60% opaque turns solid.
What does it need from my browser?
A recent one: Chrome 80, Safari 16.4 or Firefox 113 or newer, because the page unpacks PNG data with the browser's built-in decompression. Older browsers get a message asking you to update.
Is there a size limit?
Yes: 31.46 MB (30 × 1,048,576 bytes) per file, 500 frames and 10,000 pixels on either side. Choosing 75% or 50% also reduces the total work, which is capped at 40 million pixels across all frames.
Why is the GIF so much smaller than my APNG?
A GIF has at most 256 colors and no partial transparency. In our test a 47,937 B APNG with a soft shadow became a 9,302 B GIF, but only because the shadow's edge turned hard.
Will the round trip GIF to APNG to GIF give back my file?
Not byte for byte. A 7,761 B GIF became a 5,761 B APNG and then a 15,369 B GIF. The frames, delays and repeat count were kept, but the GIF encoder here stores whole frames.
What happens to a 10 ms frame delay?
It is written as 20 ms: an APNG with delays of 10, 20 and 40 ms gave a GIF with 20, 20 and 40 ms.