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
- Select an image file
- The Base64 data URL is generated automatically
- Switch to decode mode to preview from Base64
- 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