Base64 Image Converter

Runs in browser

Encode 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

  1. Image → Base64

    Upload or drop an image, pick data URI or raw output, then copy or expand long strings.

  2. Base64 → Image

    Paste raw Base64 or a data URI to preview and download the decoded image.

  3. Privacy

    Images never leave your device.

Common use cases

  • Embedding images in HTML emailsConvert small images to Base64 data URIs to embed them inline in HTML email templates.
  • Reducing HTTP requestsEncode small icons or logos as Base64 to include directly in CSS or HTML, avoiding a separate image request.
  • Sending images in JSON APIsEncode 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.

    Output
    data: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.

You might find these useful too.

More encoding tools