APNG to WebP Converter
Convert APNG animated PNG files to WebP format online. Extract frames, adjust quality, and download static or individual WebP images client-side.
Drop APNG file here or browse
Supports .apng / .png up to 50 MB
Preview
Parsing APNG...
Conversion Complete
About
APNG (Animated Portable Network Graphics) stores lossless animation data inside a PNG container using acTL, fcTL, and fdAT chunks that most image editors cannot process directly. Converting to WebP reduces file size by 25 - 35% at equivalent perceptual quality because WebP uses VP8 lossy compression with a configurable q factor from 0 to 1. This tool parses the raw APNG binary structure in your browser, reconstructs each frame respecting dispose_op and blend_op flags per the APNG 1.0 specification, then re-encodes via the Canvas API. No server upload occurs. File size limit is 50MB. Note: browsers cannot natively encode animated WebP from JavaScript, so multi-frame APNGs are exported as individual WebP frames or as a single composite frame. For lossless round-tripping, set quality to 1.0.
Formulas
WebP lossy compression targets a quality factor that maps to a quantization parameter. The relationship between input quality and output file size follows an approximately inverse-logarithmic curve:
where Sout = output file size in bytes, Sraw = uncompressed pixel data size (W × H × 4 bytes), k = compression efficiency constant (typically 0.05 - 0.15 for photographic content), and q = quality factor in the range [0, 1].
APNG frame timing uses a rational delay:
where delay_num and delay_den are unsigned 16-bit integers read from each fcTL chunk. If delay_den = 0, the specification mandates treating it as 100, yielding a default frame rate of 100fps.
Reference Data
| Property | APNG | WebP |
|---|---|---|
| Compression | Lossless (Deflate) | Lossy (VP8) / Lossless (VP8L) |
| Color Depth | Up to 32bit RGBA | Up to 32bit RGBA |
| Animation Support | Yes (acTL/fcTL chunks) | Yes (ANMF chunks) |
| Browser Support | All modern browsers | All modern browsers |
| Transparency | Full alpha channel | Full alpha channel |
| Typical File Size (256×256, 10 frames) | ~150KB | ~95KB |
| Max Dimensions | 231 − 1 px | 16383 × 16383 px |
| Lossy Quality Range | N/A (lossless only) | 0 - 100 |
| MIME Type | image/apng / image/png | image/webp |
| File Signature (Magic Bytes) | 89 50 4E 47 0D 0A 1A 0A | 52 49 46 46 ... 57 45 42 50 |
| Specification | APNG 1.0 (Mozilla) | WebP Container Spec (Google) |
| Metadata Support | tEXt, iTXt, zTXt chunks | EXIF, XMP via RIFF |
| Progressive Decoding | Yes (interlaced PNG) | No |
| Typical Use Case | Animated stickers, UI sprites | Web images, thumbnails |
| Fallback Behavior | Shows first frame as static PNG | No fallback (requires WebP support) |