Image to Base64 Converter (and Base64 to Image)

Embed small images straight into HTML, CSS, emails or JSON as Base64 text, with ready-to-paste snippets. Or paste a Base64 string or data URL to see the image and save it as a file.

loading tool

How to convert an image to Base64

  1. Choose Image → Base64 and drop your images (or choose Base64 → Image and paste the code).
  2. Pick the format you need: data URL, HTML, CSS, Markdown or plain Base64.
  3. Copy the result, or download the decoded image.

Questions

When should I use Base64 images?

For tiny icons and logos that must travel inside a single file, like an email template or a JSON payload. For normal photos, a regular image file is faster.

Why is the Base64 text bigger than the file?

Base64 uses 4 characters for every 3 bytes, so it is about 33% larger than the original image.

Is my data private?

Yes. Everything happens inside your own browser: nothing you type or choose is uploaded to us or anyone else.

Is it free?

Completely free, with no sign-up, no watermark and no limit on how many times you use it. Light ads keep the site running.