Toolibra

Image to Base64

Developers often need images as text to put them directly in HTML, CSS or JSON. Convert an image to Base64 — or paste Base64 to get the image back.

Drag and drop files here

or

Accepted: JPG, PNG, WebP, GIF, SVG

🔒 Your files are processed on your device and are never uploaded.

How to use

  1. 1Choose an image (or switch to “Base64 to image”).
  2. 2Copy the result as a data URI, plain Base64, HTML or CSS.
  3. 3To decode, paste the Base64 text and download the image.

Frequently asked questions

What is a data URI?

It is the image written as text, starting with “data:image/…;base64,”. Browsers can show it like a normal image link.

Are my images uploaded?

No. Everything happens in your browser, so your images never leave your device.

More free tools