K
ken
HomeArticles🕐 Time Converter📋 JSON Tools🖼️ Base64 Image🔑 Password Generator Cron Expression🔤 Case Converter📱 QR Code#️⃣ Hash🔡 Encoding🔍 Regex Tester⚙️ Config Convert🔐 Encrypt/Decrypt

Base64 Image

Convert between Base64 and images with preview and drag-and-drop.

Base64 → Image

Image → Base64

🖼️

Click or drag to upload

PNG / JPG / GIF / WebP

📖 Base64 Image Tool Guide

Introduction

Base64 encoding represents binary data using 64 printable characters. This tool converts between Base64 strings and image files (PNG, JPG, GIF, WebP). All processing happens in your browser.

Features

  • Image → Base64: Select an image, get its Base64 data URL
  • Base64 → Image: Paste Base64 and preview the image
  • Live preview: See results immediately
  • Copy with double-click

How to Use

  1. Select an image file
  2. The Base64 data URL is generated automatically
  3. Switch to decode mode to preview from Base64
  4. Double-click to copy the result

Example

Base64 data URL format: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...

Use Cases

  • Embedding small icons directly in HTML/CSS
  • Inlining images in email HTML
  • Storing user avatars as Base64 in databases
  • Embedding images in Markdown documentation