Skip to Image to Base64 workspace

Image to Base64 & Data URI Converter

Encode local PNG, JPG, WebP, SVG, or GIF images into pure Base64, Data URI, <img> HTML, or CSS background snippets — or decode any Base64 string back into a previewable binary image.

Image -> Base64 / HTML / CSS Base64 -> PNG / JPG Binary 100% Local FileReader & Canvas

1. Image to Base64 & Data URI

Drop PNG, JPG, WebP, SVG or GIF here

Click to browse — files stay inside your browser memory

Original File—
Base64 Length—
Dimensions—

2. Base64 / Data URI to Image

Encode inline assets or recover image files in seconds.