Encode / decode
Base64, URL encoding, or HTML entities — encode or decode text live.
~~~
Privacy: Your text never leaves the browser. No network requests are made.
Mode
Direction
Input
~~~
Output
Unicode-safe Base64 in JS
Plain btoa() breaks on non-ASCII. Use TextEncoder instead:
~~~
About this tool
Three common encoding jobs in one place. Base64 turns binary-safe text into ASCII — useful for data URLs and API payloads. URL encoding escapes characters for query strings (encodeURIComponent). HTML entities escape <, &, and friends for safe markup.
Base64 decode fails gracefully on invalid input. For Unicode text, always go through UTF-8 bytes before calling btoa.
~~~