Base64 Image Converter
Runs in browserEncode images to Base64 data URIs or decode Base64 back to images.
Encode images to Base64 or data URIs with size stats, or decode Base64 and data URIs back to an image with preview and download. Processing stays in the browser.
Base64 Image Converter tool
Max 8.0 MB
Output
🔒 Runs in your browser · No uploads · Your data never leaves your device
How to use
Image → Base64
Upload or drop an image, pick data URI or raw output, then copy or expand long strings.
Base64 → Image
Paste raw Base64 or a data URI to preview and download the decoded image.
Privacy
Images never leave your device.
Common use cases
- Embedding images in HTML emails — Convert small images to Base64 data URIs to embed them inline in HTML email templates.
- Reducing HTTP requests — Encode small icons or logos as Base64 to include directly in CSS or HTML, avoiding a separate image request.
- Sending images in JSON APIs — Encode image data to Base64 to include in JSON request bodies for APIs that don't support multipart uploads.
Examples
PNG to data URI
Small icon.
Outputdata:image/png;base64,iVBORw0KGgo...
Frequently asked questions
- What is the file size limit?
- Large files are capped to keep the tab responsive — use smaller images or split workflows.
- Can I use non-image Base64?
- This tool targets images; generic Base64 is available in the main Base64 encoder tool.
Key concepts
- Data URI
- A URL that embeds file data inline using Base64 encoding, formatted as data:[mediatype];base64,[data].
- MIME type
- A label identifying the format of a file, e.g. image/png or image/jpeg, included in data URIs.
Related tools
You might find these useful too.