MicroHai
All Dev & Code Text & Formatting Media & Image Security & Crypto Utilities & Everyday

Image ⇄ Base64 Converter

Media & Image

Convert images to Base64 DataURLs, HTML <img> or CSS snippets, or decode Base64 strings back into downloadable images

About Image ⇄ Base64 Converter

Bidirectional Image & Base64 converter: encode any image into a Base64 DataURL, raw Base64, HTML <img> tag, or CSS background-image; or paste Base64 strings to preview and download the image.

Key Features

  • Image to Base64: outputs DataURL, raw Base64, HTML <img>, and CSS snippets
  • Base64 to Image: auto-detects MIME type, renders preview, and lets you download
  • Shows original file size vs Base64 string size with inline optimization tips

How to Use

  1. 1 In Image → Base64 mode, drop or select an image to generate 4 ready-to-copy snippets.
  2. 2 In Base64 → Image mode, paste a DataURL or raw Base64 string to preview and download.