Convert APNG to GIF
Make a GIF from an animated PNG, with its timing and looping, on your own device.
- Nothing is uploaded
- Works offline after first visit
- Open source
- No watermark · limit is your device’s memory; phones hold less
Convert an APNG, an animated PNG, to GIF in your browser. Each frame keeps its delay and the loop count. It is free, needs no account and adds no watermark, and your files are not uploaded: everything runs in your browser on your device. The size limit is your device’s memory, and phones hold less; give the page a short while after one visit to save itself for offline use, and then it works offline.
Done
Free, no ads. Support StayPut
Open the network tab. Your files never appear in it.
Add files and run the tool to see every request this tab makes.
Your files are processed on this device and never sent to a server. Reload the page to clear everything from memory.
An APNG is an animated PNG: a .png file with extra chunks that tell a browser to play several frames. Many chat apps, social sites and upload forms only accept GIF, or show an APNG as a still picture. A GIF plays almost anywhere.
Drop an APNG and every frame is decoded, composited the way browsers play it (its dispose and blend rules applied), and written as a GIF frame with its own delay and its own 256-colour palette. The picture size and the loop count are kept. Your browser does all of it; the file is not uploaded and there is no watermark.
Know what you are giving up: GIF has 256 colours per frame and its transparency is on or off, so gradients can band and soft edges become hard edges. The file size usually shrinks only a little. If you need the full-colour version, keep the APNG.
How it works
- Drop one or more animated PNG files, or tap to pick them.
- Convert. Each one becomes a GIF in your browser.
- Download the .gif, or a zip when you converted several.
In your browser, not on a server
UPNG.js (MIT, by Photopea) reads the animated PNG in your tab and composites each frame with its dispose and blend rules into a whole picture. gifenc (MIT) then reduces every picture to its own 256-colour palette, with pixels under half opacity made transparent, and writes it as a GIF frame with the APNG’s delay and loop count. The file is assembled in memory.
Compared with upload-based tools: Online APNG to GIF converters upload the file to convert it on a server and may cap the size or keep a copy. Here the conversion runs on your device, and the page keeps working offline after one visit and a short wait.
Verify it yourself. Give the page a short while after one visit to save itself for offline use, then turn off Wi-Fi or switch to airplane mode and run the tool again. Or open your browser's developer tools (F12, or Cmd-Option-I on a Mac), pick the Network tab, and watch it while you convert. The panel above does the same count for you.
Questions
Why does the GIF look worse than the APNG?
GIF holds 256 colours per frame and its transparency is on or off. Smooth gradients can show banding, and soft or anti-aliased edges become hard edges. An APNG has full colour and 8-bit transparency.
Will the GIF be smaller?
Usually only a little. For a much smaller file, use Compress GIF afterwards, or GIF to MP4.
Why do chat apps want a GIF?
Many chat apps and upload forms only accept GIF for animated pictures, or flatten an APNG to its first frame. GIF is the format they all know.
Can I go the other way?
Yes. GIF to APNG turns a GIF back into an animated PNG with full colour.
Is the file uploaded anywhere?
No. There is no server in this process. The page is a static file and the work is done by code running inside your browser tab. Give the page a short while after one visit to save itself for offline use; then you can turn off Wi-Fi and it still works.
More image tools
APNG to GIF
Turn APNG files into animated GIFs that chat apps and upload forms accept. Converted on this device, never uploaded.
Image to ASCII art
Turn a picture into text characters you can copy, paste or save, made on this device.
Pixel art converter
Chunky pixels and a limited palette from any picture, previewed live and made on this device.
Photo to sketch
Pencil, charcoal or coloured pencil from any photo, previewed live and drawn on this device.