Image ↔ Base64 Converter

Encode an image as raw Base64 or a complete data URI, or decode Base64 content back into a previewable image. Copy the generated value or download the decoded result without uploading the source.

Features

Image to base64 encodingBase64 to image decodingData URI supportMultiple format supportCopy to clipboardDownload results

How to use the Image ↔ Base64 Converter

  1. 1Choose Image to Base64 or Base64 to Image mode.
  2. 2Load an image up to 10 MB or paste a Base64 value or data URI.
  3. 3Choose whether encoded output should include the data URI prefix, or select a decoded image format.
  4. 4Convert the content, then copy the value or download the resulting image.

Common uses

  • Embed a small image in HTML or CSS.
  • Inspect and preview an image data URI.
  • Turn Base64 image data from an API into a downloadable file.

Raw Base64 and data URIs

Raw Base64 contains only encoded bytes. A data URI also includes the media type and encoding prefix needed for direct use in an image source or CSS value.

Size tradeoff

Base64 text is larger than the original binary data, so it is best reserved for small assets or systems that specifically require text encoding.

Frequently asked questions

What is the image size limit?

Image uploads can be up to 10 MB.

Should I include the data URI prefix?

Include it for direct use in HTML or CSS. Raw Base64 is useful when an API or data field expects only the encoded bytes.

Does conversion upload the image?

No. Encoding and decoding happen locally in your browser.

Related Image & Media Tools