Image to Data URLImage ↔ Base64 data URL

AppHelp

Convert images and data URLs both ways

Encode any image as a Base64 data URL for inline CSS or HTML, or paste a data URL to preview and download the image — everything runs locally.

No image selected yet.
 

Features

  • Encode images to Base64 data URLs
  • Decode a data URL back to a downloadable image
  • Show data URL length and byte size
  • Runs entirely in the browser with no uploads

Frequently asked questions

What is a data URL?
A data URL embeds file contents directly as a Base64 string, letting you inline an image in HTML or CSS without a separate request.
Why is the data URL larger than the file?
Base64 encoding adds roughly 33% overhead, so the encoded string is always bigger than the original binary image.
Are my images uploaded anywhere?
No. Encoding and decoding happen locally in your browser and nothing leaves your device.