Free GIF to APNG Converter

APNG (Animated PNG) stores 24-bit full color and true per-pixel alpha transparency — no 256-color ceiling, no jagged edges. Convert your GIF instantly in your browser, with no upload and no account.

100% PrivateNo UploadFree
GIF → APNGFREE
Browser-side • No upload

Drop GIF here or click to browse

Converts in your browser — nothing uploaded

How It Works

1

Select or drop your GIF file

Click the upload area or drag your .gif file onto it. The file is processed entirely in your browser — nothing is sent to any server. GIF files up to 50 MB are supported.

2

FFmpeg extracts and re-encodes every frame

FFmpeg WebAssembly reads the GIF's frame sequence, decodes each frame to a raw RGBA pixel buffer, and re-encodes them as deflate-compressed PNG frames with full 24-bit color and 8-bit alpha. The frames are assembled into an APNG container using the original frame timing from the source GIF.

3

Download your .apng file

The output file has an .apng extension and is a valid Animated PNG. Drop it into a standard HTML img tag — no JavaScript, no special attributes required. Modern browsers detect and animate APNG automatically.

4

Embed it on your site or use it in your app

Use <img src="animation.apng" alt="description of the animation"> in any HTML page. Chrome, Firefox, Safari, and Edge all animate APNG natively. You can also reference it as a CSS background-image and it will animate in all supported browsers.

Why APNG Is Better Than GIF

GIF encodes each animation frame as an 8-bit indexed image — a palette of at most 256 colors chosen to approximate the frame's actual pixel values. On any frame with more than 256 distinct colors, the encoder must substitute the closest available palette entry, producing the blocky color banding that makes GIF look dated on any rich visual content. This 256-color ceiling is baked into the GIF specification and cannot be worked around. The format has carried this constraint since 1989 with no revision.

APNG (Animated Portable Network Graphics) removes that ceiling entirely. Proposed as a PNG extension in 2004 and now supported natively by Chrome, Firefox, Safari, and Edge, APNG stores each animation frame as a complete PNG image — meaning each frame carries 24-bit RGB color (16.7 million values) and an independent 8-bit alpha channel (256 transparency levels per pixel). The color data is exact. No palette is constructed. No substitution occurs. The pixel values in the output match the source.

The alpha channel difference is equally significant for modern design work. GIF transparency is binary: a pixel is either fully opaque or fully transparent, with nothing in between. That is why GIF animations always have hard, jagged edges — anti-aliasing requires intermediate transparency values that GIF cannot store. APNG's 8-bit alpha channel supports every transparency level from 0 (fully transparent) to 255 (fully opaque), enabling smooth semi-transparent edges, soft drop shadows, glowing halos, and correctly anti-aliased rounded corners against any background color.

UI animations and loading states: Skeleton loaders, progress spinners, badge pulse effects, and transition animations all benefit from APNG's full alpha channel. A spinner with a soft fade-out glow looks polished in APNG and looks rough in GIF — the difference is visible at a glance.

Stickers and messaging app content: APNG is the native format for Apple iMessage animated stickers. The full alpha channel lets sticker outlines blend smoothly against any chat background without the white or black fringe that GIF transparency produces on anti-aliased edges.

Branded motion graphics on white or light backgrounds: Logo animations, icon transitions, and brand micro-animations with gradients or glows lose their polish when quantized to GIF's 256 colors. APNG preserves exact color values from the design source.

When not to use APNG: APNG does not animate in most email clients — Gmail, Outlook on Windows, and corporate mail systems show only the first frame as a static image. It is not accepted by social video platforms (use MP4 for those). For sharing in messaging apps and developer tools, GIF remains the format with the widest inline auto-play support. APNG is the right choice for web pages, web apps, and native app interfaces where you control the display environment.

Key Features

🎨

24-Bit Full Color Per Frame

16.7 million colors with no palette construction and no color substitution. Exact pixel fidelity.

True Per-Pixel Alpha Transparency

256 transparency levels per pixel for smooth edges, drop shadows, and anti-aliased outlines on any background.

🔒

100% Private — Zero Uploads

Your GIF is never sent to any server. FFmpeg WebAssembly runs the conversion entirely inside your browser tab.

🖼️

Standard img Tag Embed

Use APNG exactly like a GIF in HTML. No JavaScript, no special CSS, no embed wrapper needed.

📱

iMessage Sticker Compatible

APNG is the native animated sticker format for Apple iMessage — smooth edges on every chat background.

🌐

All Modern Browsers

Chrome, Firefox, Safari, and Edge have animated APNG natively since 2017. No plugin or polyfill needed.

Format Comparison

FeatureGIFAPNG
Color depth256 colors (8-bit indexed)16.7 million colors (24-bit RGB)
TransparencyBinary (fully on or fully off)Full 8-bit alpha (0–255 levels per pixel)
CompressionLZW (lossless, per-frame)DEFLATE (lossless, per-frame)
Browser supportAll browsers including old IEAll modern browsers (Chrome, Firefox, Safari, Edge)
Email client supportBroad — best for email animationLimited — most clients show only first frame
Embed method<img> tag<img> tag (identical usage)
Typical file sizeSmaller for simple flat graphicsLarger — full color data stored per frame
Best forMessaging, email, GitHub, SlackUI animations, stickers, web design, app interfaces

Technical Details

APNG extends the PNG binary format with three additional chunk types. The acTL chunk (Animation Control) appears before the first image frame and specifies the total frame count and loop count for the animation. Each frame is preceded by an fcTL chunk (Frame Control) that stores the frame's pixel dimensions, position offset on the canvas, display duration in numerator/denominator fractions of a second, and the disposal and blend mode flags. The actual compressed pixel data for each frame beyond the first is stored in fdAT chunks (Frame Data). Critically, the very first frame's pixel data is stored in a standard IDAT chunk, which means PNG decoders that do not understand APNG — including many image editing applications — will display the first frame as a normal static PNG rather than showing an error.

FFmpeg's apng muxer handles the APNG assembly. Each GIF frame is decoded to a raw RGBA pixel buffer and then encoded as a deflate-compressed PNG frame. The blend mode applied is APNG_BLEND_OP_SOURCE, which replaces the canvas entirely with each frame's pixel data, matching the behavior of the source GIF. This converter preserves the original GIF frame timings stored in the Graphics Control Extension of each GIF frame, so the output APNG plays at exactly the same speed as the source. Frame durations as short as 10 ms (100 FPS) and as long as several seconds are supported.

Frequently Asked Questions

Will the APNG file be larger than the original GIF?
Usually yes. APNG stores 24-bit color data and an alpha channel per frame rather than an 8-bit indexed palette. For GIFs with complex, heavily dithered content, the APNG can be 2–4 times larger. For simple GIFs with few colors and large flat regions, DEFLATE compression can sometimes produce an APNG close to or even smaller than the original GIF, since DEFLATE is more efficient than LZW on uniform pixel regions. Measure both for your specific content to compare.
Does converting GIF to APNG recover the original 24-bit colors?
No. Converting to APNG upgrades the format's color capacity, but it cannot recover color information that was discarded when the GIF was first created. If the source animation already shows color banding from its original 256-color encoding, those same banded pixels are preserved in the APNG. The value of the conversion is that the existing pixel data is stored without further color loss, and that future re-edits of the APNG will not degrade quality further.
Can I use APNG in email newsletters?
APNG animation support in email is unreliable. Apple Mail on macOS and iOS does animate APNG correctly. Gmail, Outlook on Windows, and most corporate and enterprise email clients show only the first frame as a static image. For animated email content, GIF remains the only format with broad cross-client animation support. Use APNG for web pages and app interfaces where you know the rendering environment.
How do I embed an APNG on my website?
Use a standard HTML image tag: <img src="animation.apng" alt="brief description of the animation">. No JavaScript and no extra attributes are required. The browser identifies the APNG format from the file header and animates it automatically. You can also reference it in CSS as background-image: url('animation.apng') and it will animate in Chrome, Firefox, Safari, and Edge.
Is APNG better than animated WebP?
Both formats support 24-bit color and full alpha transparency, making either a significant upgrade over GIF. Animated WebP generally achieves smaller file sizes due to more advanced lossy compression derived from the VP8 codec. APNG uses the established PNG compression ecosystem (DEFLATE), which integrates cleanly with PNG-native tools, CDNs, and image processing pipelines. For the smallest possible file size on web content, GIF to WebM or GIF to MP4 will outperform both APNG and animated WebP. For image-tag embedding with full alpha on web and app interfaces, APNG and animated WebP are both strong choices.
Is my GIF uploaded anywhere during conversion?
No. Your file never leaves your device. All processing runs inside your browser using FFmpeg WebAssembly. No outbound network request is made during conversion. The converter is suitable for private assets, client work, and any content you need to keep off third-party servers.

Ready to try it?

Scroll back up and drop your file to get started.

Explore All Tools