Skip to content
Ovatly

Base64 Image Encoder/Decoder

100% PrivateImage Tools

Turn an image into a Base64 data URL for HTML or CSS, or decode one back to an image.

Runs entirely in your browser. Your input is not uploaded to Ovatly or anywhere else.

Image to encode
  1. 1For encoding: choose an image and the complete data URL appears, with the original size and the exact character count.
  2. 2Copy the data URL, or download it as a text file.
  3. 3For decoding: switch direction, paste a data URL that starts with data:image/ and click Decode to image.
  4. 4Preview the decoded image and download it as a real file.

About this tool

The Base64 Image Encoder and Decoder turns an image into a data URL you can paste into HTML, CSS or JSON, and turns such a data URL back into a downloadable image file. Developers use data URLs for tiny inline icons and email-safe assets; this tool shows you the exact size cost of doing it.

Related tools

Advertisement

Part of Ovatly's free tools in Image Tools.