← All free tools Converter tools

Base64 encoder

Encode any string input to Base64.

About this tool

The Base64 encoder turns text into Base64, a way of writing any data using only 64 safe characters: A–Z, a–z, 0–9, + and /. “Hello, world” becomes SGVsbG8sIHdvcmxk. The text is encoded as UTF-8 first, so accented letters, other alphabets and emoji all work.

How to use the Base64 encoder

  1. Type or paste the text.
  2. The Base64 appears as you type.
  3. Copy it. To turn it back, use the Base64 decoder.

Where Base64 is used

  • HTTP Basic authentication, which sends user:password as Base64 in a header.
  • Data URIs, which put small files straight into HTML or CSS. For images, use Image to Base64.
  • JSON and XML that need to carry binary data or text with awkward characters.
  • Email attachments, which travel as Base64 inside the message.
  • Config and environment files, for keys and certificates.

Base64 isn’t encryption

Anyone can decode Base64 in a second, so it hides nothing. Don’t use it to protect passwords or private data. It also makes data about a third bigger: every 3 bytes become 4 characters. The encoding happens in your browser.

Have a project in mind?

Have a brand or a product to grow?