tools.now

Base64 Encode / Decode

Convert text to Base64 and back. Unicode is encoded as UTF-8, so emoji and non-Latin text survive the round trip, and URL-safe Base64 is accepted when decoding.

Output

🔒 Runs in your browser. Your data is never uploaded.

How to use

  1. Choose Encode or Decode.
  2. Paste your text or Base64 string.
  3. Copy the result. Turn on URL-safe for tokens and query strings.

Base64 is not encryption

Base64 only changes how bytes are written; anyone can reverse it. Do not use it to hide passwords or secrets.

Size overhead

Base64 output is about 33% larger than the input, because every 3 bytes become 4 characters.

Frequently asked questions

Why does my decoded text look garbled?
The original data was probably not UTF-8 text – for example an image or a gzip stream. This tool decodes to text and tells you when the bytes are not valid UTF-8.
What is URL-safe Base64?
A variant that replaces + and / with - and _ and drops the = padding, so the value can sit in a URL or filename without escaping. JWTs use it.
Do I need to remove line breaks before decoding?
No. Whitespace and line breaks, common in PEM files and email, are ignored.

Related tools