Base64 Encode & Decode
Encode text to Base64 or decode it back, with full Unicode and URL-safe support. Works offline in your browser.
Plain text
Base64
How to use the Base64
- 1
Paste your text or your Base64 string.
- 2
Choose Encode or Decode — the direction is auto-detected when you paste.
- 3
Copy the result, or switch on URL-safe mode for tokens and query strings.
Frequently asked questions
Does it handle emoji and non-English text?
Yes. Input is encoded as UTF-8 before conversion, so accented characters, CJK text and emoji all survive a round trip. The browser's raw btoa() would throw on these.
What is URL-safe Base64?
A variant that replaces + with -, / with _, and drops the = padding, so the value can be placed in a URL or filename safely. JWTs use this variant.
Is my data uploaded to a server?
No. Every tool on this site runs entirely inside your browser using JavaScript. Your input never leaves your device and is never sent over the network, which means it is safe to paste production data, API responses and tokens.