Add to Chrome Add to Edge

Text to Base64

Encode text as Base64 for use in JSON, headers, data URIs and config files.



Text to Base64

Base64 represents data using only letters, digits, plus and slash, which makes it safe to carry through systems that expect plain text such as JSON, email headers or URLs. This tool turns any text into that form.

How to use Text to Base64

  1. Enter the text you want to encode.
  2. Click Convert to Base64.
  3. Copy the value from Base64 String.

When it comes in handy

  • Preparing values for HTTP Basic authentication headers.
  • Embedding small text payloads in JSON, XML or configuration files.
  • Encoding a string before storing it in a field that rejects special characters.

Frequently asked questions

Is Base64 secure?
No. It is an encoding, not encryption, and anyone can reverse it. Never use it to hide passwords or secrets.
Why is the output longer than the input?
Base64 turns every three bytes into four characters, so the result is roughly one third larger, plus optional padding with = signs.

Related guides

Choose which cookies SEOpeck may use. You can change this at any time from "Cookie settings" at the bottom of every page.

Your tools

    Saved in this browser only. Nothing is sent to us.

    Popular tools