Text Encoder and Escaper

Encode and decode Base64, hex, URL, HTML entities, and language escapes.

Standard Base64 with padding.

About encoding and escaping

Encoding makes text safe for another place. A URL, an HTML page, a JSON document, and a shell command each have characters with a special meaning. This tool covers all of them in one place.

Base64 turns bytes into 64 safe characters. Use Base64 URL for a token or a query value, because it removes the characters that a URL cannot hold. Hex writes two digits for each byte. The escape formats add a backslash or an entity, and they keep the text readable.

Choose a format, then Encode or Decode. Select Swap to send the result back to the input, which lets you chain two steps. Every operation runs in your browser.