Base64 Encode/Decode
Encode text to Base64 or decode Base64 back to text.
—
What is this tool?
Base64 encode/decode converts between Unicode text and the ASCII alphabet used in data URLs, headers, and some JSON fields. It is encoding, not encryption.
Three bytes become four characters from A–Z, a–z, 0–9, +, / with = padding. The output is about a third longer and fully reversible. Anyone who has the string can decode it. Do not treat Base64 as a way to hide a password or a token.
This tool encodes UTF-8 text first so emoji and non-English letters survive. Decode fails on invalid alphabets, truncated input, or URL-safe Base64 that still uses a different character set. Compressed-then-encoded bytes will decode to binary, not to readable text.
Use it to inspect a data URL payload, an example from docs, or a header value. Do not paste production secrets into a tool you would not trust with the plaintext.
How to use
- Choose Encode (text → Base64) or Decode (Base64 → text).
- Paste the input.
- Copy the result when it looks right.
Example
hello
aGVsbG8=
Benefits
- Round-trip Unicode text in the browser.
- Useful for APIs, data URLs, and headers.
- Clear errors on invalid Base64.
FAQ
Guide
- What Base64 is (and is not encryption)
Base64 turns bytes into ASCII so they survive email, JSON, and URLs. Anyone can decode it. It is not a lock.