Text

Base64 Encoder / Decoder

Encode text to Base64 or decode Base64 back to plain text. Supports UTF-8.

Base64 is a binary-to-text encoding scheme defined in RFC 4648. It represents arbitrary binary data using 64 printable ASCII characters (A–Z, a–z, 0–9, + and /), making it safe to embed images in HTML/CSS, attach files to emails (MIME), or carry binary payloads inside JSON and XML. Encoded output is roughly 33% larger than the input. This tool encodes and decodes UTF-8 text entirely in your browser.

How to use

  1. Paste text or Base64 into the input area.
  2. Click Encode or Decode.
  3. Copy the result.

FAQ

Is Base64 encryption?

No. Base64 is an encoding, not an encryption scheme — it uses no key and is trivially reversible by anyone. Never use Base64 to protect passwords, tokens or other secrets; it only changes how data looks, not who can read it.

Why does my Base64 string end with = or ==?

Base64 processes input in 3-byte groups and emits 4 characters per group. When the input length is not a multiple of 3, one or two = characters are appended as padding so the output length stays a multiple of 4.

What is Base64URL?

Base64URL is a URL-safe variant defined in RFC 4648 §5: + becomes -, / becomes _, and padding is usually omitted. It is used wherever Base64 appears in URLs or filenames — most notably in JSON Web Tokens (JWT).

Can Base64 encode non-English text?

Base64 itself encodes bytes, not characters, so any text works as long as a character encoding is chosen first. This tool converts text to UTF-8 before encoding, which covers every language, emoji and symbol.