Base64 encoder.
Encode text to Base64 or decode Base64 back to text. UTF-8 safe, no upload. Paste and see the result instantly.
Tool 06EncodersLive100% local
§ About Base64
Bytes you can paste.
Base64 widens any byte stream to 7-bit ASCII so it survives email, JSON, and URL contexts. Useful when raw bytes must ride through text channels.
Is this safe for UTF-8?
Yes. The tool uses TextEncoder → btoa for encoding and atob → TextDecoder for decoding. "Café", emoji, CJK, and right-to-left text all round-trip cleanly.
Does it handle URL-safe Base64 (base64url)?
It returns standard Base64 with + / =. If you need URL-safe output, replace + with -, / with _, and strip trailing = padding.
Why does my decode fail on a valid-looking string?
Whitespace inside Base64 input is stripped automatically, but non-Base64 characters (quotes, punctuation) will throw. Paste the raw Base64 only — no surrounding markup.