Image ↔ Base64

Convert images to Base64 strings and Base64 strings back to downloadable images.

📁
Click to upload or drag and drop an image
PNG, JPG, GIF, WebP, SVG
📝 Paste Base64 or Data URI

How to Use

  1. Image → Base64: Upload or drag-and-drop an image to encode it
  2. Copy the raw Base64 string or the full Data URI (for embedding in HTML/CSS)
  3. Base64 → Image: Switch to the decode tab and paste a Base64 string
  4. Click Decode to preview and download the image

What Is Base64?

Base64 is a binary-to-text encoding scheme that represents binary data as an ASCII string. It's commonly used to embed images directly in HTML, CSS, or JSON without needing separate image files. This is useful for small icons, email templates, and reducing HTTP requests. The trade-off is that Base64 strings are ~33% larger than the original binary data.