Tools
Encode any text, including emoji and accented characters, to Base64, or decode a Base64 string back to readable text. Switch to URL-safe Base64 when the value is going into a link, cookie or JWT.
Options
Mode
Result
13 characters in, 20 out.
Frequently asked questions
- What is Base64?
- Base64 is a way of writing binary data using 64 printable characters (A-Z, a-z, 0-9, + and /). It makes any data safe to put in places that only accept text, such as JSON, email or data URLs. It is encoding, not encryption, so it offers no secrecy.
- What is URL-safe Base64?
- Standard Base64 uses + and /, which have special meanings in URLs. URL-safe Base64 swaps them for - and _ and usually drops the trailing = padding. JWTs use this variant.
- Does this handle emoji and non-English text?
- Yes. The text is converted to UTF-8 bytes first, so every Unicode character round-trips correctly. Plain btoa() in JavaScript would throw on those characters.
quick question
Was this tool helpful?