Back to Tool

Base64 Image Tutorial

Base64 Image

Tutorial

1

Select Mode

Choose Image → Base64 to encode an image, or Base64 → Image to decode

2

Upload/Enter

Upload an image file or paste from clipboard for encoding; enter Base64 string for decoding

3

Get Result

View the preview, copy the Base64 string, or download the decoded image

How It Works

Base64 encoding converts binary image data into ASCII characters, making it safe to transmit over text-based protocols. The image is read as binary data, then each 6 bits are mapped to a character from the Base64 alphabet. Data URLs embed the Base64 string directly with a MIME type prefix.

Use Cases

Embedding Images in HTML/CSS
API Image Uploads
Email Inline Images
Data URL Generation

FAQ