Install Convertix

Use it like an app, no store and no account. Your files still never leave your device.

iPhone and iPad

  1. Open this page in Safari.
  2. Tap Share, the square with an arrow pointing up.
  3. Choose “Add to Home Screen”.

Android

  1. Tap your browser's ⋮ menu.
  2. Choose “Install app” or “Add to Home screen”.

Computer

  1. In Chrome or Edge, click the install icon in the address bar.
  2. In Safari on Mac, choose File and then “Add to Dock”.
Home / Image to Base64

Convert Image to Base64

Get the Base64 code of an image, ready to paste into your HTML, CSS, or JSON.

No sign-up and nothing uploaded to a server: everything happens in your browser. See for yourself.

How to use: Image to Base64

  1. Select your image.
  2. Copy the Data URI, the <img> tag, or just the Base64.
  3. Paste it wherever you need it.

Frequently asked questions

Are my files uploaded to a server?

No. Everything is processed inside your browser, and your files never leave your device.

What is a Data URI?

It's the image written as text, in the format data:image/png;base64,… , which the browser can display directly.

How do I turn the text back into an image?

With the “Base64 to Image” tool.

About this tool

Base64 turns an image's bytes into text, which lets you embed it inside an HTML or CSS file without a separate file.

The resulting text is about a third larger than the image, so it's best used only for small images, like icons.

Related guides