Convert PNG to Base64
Encode a PNG as Base64 without rasterizing it again or changing its transparency.
Encode PNG without a hidden re-export
Metadata removal and format conversion are disabled so the original PNG file is read directly.
Transparency remains part of the encoded PNG. Base64 does not make the file smaller and adds roughly one third of text overhead.
How to convert PNG to Base64
- 1
Add a PNG
Choose a PNG image from your device.
- 2
Keep original bytes
Leave resize, re-encoding, and metadata removal disabled.
- 3
Copy Base64
Encode the PNG and copy or download the full single-line string.
Frequently asked questions
Is PNG transparency preserved?+
Yes. The preset encodes the original PNG bytes, including the existing alpha channel.
Does Base64 compress a PNG?+
No. It changes binary bytes into text and normally increases their size.
Related image tools
JPG to Base64
Encode original JPEG file bytes as Base64
SVG to Base64
Encode original SVG source bytes as Base64
Image to Data URI
Create a complete Base64 data URL from an image
WebP to Base64
Encode original WebP file bytes as Base64
GIF to Base64
Encode original GIF file bytes as Base64
AVIF to Base64
Encode original AVIF file bytes as Base64