Base64 Encoder

Quickly encode data into Base64 format or decode a Base64 string back to its original form.

About this tool

Base64 encoding represents binary or text data using only 64 printable ASCII characters, which is why it shows up constantly in URLs, email attachments (MIME), Basic Auth headers, and JSON payloads that need to carry non-text-safe data.

How to use it

  1. Type or paste your text into the input box.
  2. Click Encode to convert it to Base64, or Decode to reverse a Base64 string back to plain text.
  3. Copy the result with the copy button.

FAQ

Is Base64 encryption?

No — Base64 is an encoding, not encryption. Anyone can decode a Base64 string instantly; it provides zero confidentiality. Don't use it to "hide" sensitive data.

Why does decoding sometimes fail?

Base64 strings must have a length that's a multiple of 4 (with = padding as needed) and only use valid Base64 characters (A-Z, a-z, 0-9, +, /). Malformed or truncated input will fail to decode.

What's the difference between standard and URL-safe Base64?

URL-safe Base64 replaces + and / with - and _ so the output can be used directly in URLs without extra encoding. This tool uses standard Base64.