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.
How to use
- 1Pick a direction
Encode text → Base64, or paste Base64 to decode back to text.
- 2Pick a variant
Standard Base64, or URL-safe (base64url) for JWTs and query strings.
- 3Paste your input
Any UTF-8 text or Base64 payload. The result updates as you type.
- 4Copy the output
Copy the result, or share the URL — your input travels with it.
Examples
ToolVaults
VG9vbFZhdWx0cw==
café ☕
Y2Fmw6kg4piV
{"alg":"HS256","typ":"JWT"}eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9
Frequently asked
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.
A variant that replaces "+" with "-" and "/" with "_", and drops the "=" padding. Used in JWTs, JOSE, and URLs where the standard characters cause problems.
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
- Data URI Encoder / DecoderEncode text or any file into a data: URI for inlining in HTML, CSS, or JSON. Dec
- HTML EntitiesEncode and decode HTML entities: &, <, ©, and every numeric &#nn