Free Base64 Encoder & Decoder
Encode text to Base64 or decode Base64 back to text. Handles UTF-8, emoji and URL-safe Base64. Runs in your browser — nothing is uploaded, no signup.
Input
0 charsOutput
waiting for inputFrequently asked questions
Is the Base64 encoder free?
Yes — free, unlimited, no account needed. Encoding and decoding both run in your browser.
Is my data uploaded anywhere?
No. The conversion happens locally using the browser's built-in Base64 functions. Nothing leaves your device, which is why it is safe for tokens, payloads and personal data.
Standard vs URL-safe Base64?
Standard Base64 uses the characters + and /, which must be percent-encoded inside a URL. URL-safe Base64 swaps + for - and / for _, and removes the = padding. Both decode to the same original data.
Why does decoding fail with an invalid character error?
The input contains characters outside the Base64 alphabet — usually a stray quote, a URL fragment after #, or a truncated string. Remove anything after the # and try again.
Can I decode a JWT payload?
Yes. Paste the middle segment of the JWT and press Decode with URL-safe mode enabled — JWT payloads are Base64URL encoded.