← back to flaviocopes.com

Encode / decode

← All tools

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

~~~

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.

~~~

Read more