Base64 Encoder & Decoder
Encode or decode Base64 text. UTF-8 safe by default. Optional URL-safe variant. Runs entirely in your browser — nothing is uploaded.
Runs 100% in your browser — nothing is uploaded.
Base64
Frequently asked
Is it safe to paste sensitive data here?
Yes — the tool runs entirely in your browser. Your text never leaves your device. That said, you should never share Base64-encoded secrets since Base64 is not encryption.
What is URL-safe (base64url)?
A variant that replaces "+" with "-" and "/" with "_", and drops the "=" padding. Used in JWTs, JOSE, and URLs where the standard characters cause problems.
Why does the naive btoa() function break on emoji?
btoa() assumes each character is one byte, which breaks for anything above U+00FF. This tool encodes the input to UTF-8 bytes first, so any Unicode input round-trips correctly.
Related tools
- URL Encode / DecodePercent-encode or decode URLs, query strings, and path segments. Choose between
- JWT DecoderPaste any JSON Web Token (JWT) to see the decoded header, payload, and expiratio
- Hash GeneratorInstantly compute MD5 and SHA-family hashes of any text. All hashing happens in
- Base32 Encoder / DecoderEncode any text to RFC 4648 Base32 (A-Z, 2-7) or decode Base32 back to text. UTF
- HTML EntitiesEncode and decode HTML entities: &, <, ©, and every numeric &#nn
- Morse Code TranslatorTranslate text to Morse code and back. Full alphabet, digits 0-9, and common pun