Log in Sign Up

Base64 Encode / Decode

Convert text and images to Base64 and back, all in your browser.

Text

Image to Base64

About This Tool

Base64 encoding represents binary or text data as plain ASCII characters. This tool encodes text to Base64 and decodes it back, and also converts an image into a Base64 data URI you can paste directly into HTML, CSS, or JSON. Decoding handles UTF-8 text correctly.

All conversion happens in your browser, so your text and images are never uploaded.

  • check_circleEncode and decode text to and from Base64
  • check_circleConvert images to Base64 data URIs
  • check_circleLive image preview from the data URI
  • check_circleRuns in your browser, nothing uploaded

Frequently Asked Questions

What is Base64 used for? expand_more

Base64 lets binary data such as images travel through text-only channels like JSON, HTML data URIs, and email. It is encoding, not encryption, so it does not secure data.

Why embed an image as Base64? expand_more

A Base64 data URI lets you inline a small image directly in HTML or CSS, removing a separate network request. It is best for small images, since Base64 increases size by about a third.

Is my data uploaded? expand_more

No. Encoding and decoding run in your browser and nothing is sent to a server.