APNG to Base64
Upload an APNG file and get a Base64 string or data URI ready to embed in HTML or CSS.
Last updated: May 29, 2026
Find this tool useful? Support the project to keep it free!
Buy me a coffeeWhat is APNG to Base64?
APNG to Base64 converter reads an Animated PNG file entirely in your browser and encodes it as a Base64 string. The output can be used as a data URI (data:image/apng;base64,...) to embed the animated image directly in an HTML img tag or CSS background-image without requiring a separate file to be hosted.
How to Use APNG to Base64
Drop an APNG file onto the upload area or click to browse.
Copy the Base64 string or data URI.
Paste into your HTML or CSS.
Common Use Cases
- Embedding animated PNG stickers in HTML emails.
- Including animated icons in a single-file HTML page.
- Testing APNG rendering in a browser without hosting a file.
Example Input and Output
APNG encoded as data URI for HTML.
<animated.apng><img src="data:image/apng;base64,iVBOR..." />Privacy
Files are processed locally and never uploaded to any server.
Frequently Asked Questions
Is my file uploaded?
No. The file is read and encoded entirely in your browser using FileReader API.
Related Tools
Base64 Encoder/Decoder
Encode text to Base64 or decode Base64 to plain text — with URL-safe mode, auto-detect, and size stats.
ASCII to Base64
Encode ASCII text strings to Base64. Commonly used for HTTP headers, API tokens, and config values.
AVIF to Base64
Convert an AVIF image file to a Base64 string or data URI for embedding in HTML, CSS, or JavaScript.
Image Converter
Convert images between PNG, JPG, WebP, and AVIF formats — with quality controls and batch conversion.
Image Compressor
Reduce image file size online — compress JPEG, PNG, and WebP without losing visible quality.
Audio to Base64
Convert audio files (MP3, WAV, OGG, FLAC, AAC) to Base64 strings or data URIs for embedding in HTML or JavaScript.

