Image to Base64 and Data URL Converter

Convert an image to a Base64 string.

ImagesBase64

Convert an image to a Base64 string.

How to use it

  1. Choose or drop an image file.
  2. Wait for the preview and encoded output.
  3. Copy the whole data URL for embedding or raw Base64 for a separate payload.

Common questions

What is the prefix before Base64 data?
A data URL adds a media type and encoding prefix, such as data:image/png;base64,. Raw Base64 omits that prefix.
Will Base64 make an image smaller?
No. Base64 represents bytes as text and usually increases their size by roughly one third.

The tool processes your input in this browser. It does not upload the input itself.