Encoding
Turn markup-sensitive characters into XML entities — safe to paste into any XML or HTML document.
Escaping runs locally in your browser. Nothing is uploaded, logged, or stored.
XML reserves five characters: <, >, &, ", and '. Any of them appearing raw in text or attribute values makes the document malformed or changes its meaning. This tool replaces all five with their named entities, matching what CDATA-free XML serializers produce.
Reverse direction? Use the XML Unescape tool. Working with JSON instead? See the JSON Escape tool for JSON-specific string escaping.
Paste an HTML or XML snippet as documentation text inside another XML file without breaking it.
Escape user-facing text before placing it into an XML attribute when hand-editing a feed or config.
Encode and decode Base64 with full Unicode support. URL-safe mode included.
Percent-encode and decode URLs and query parameters, component or full-URL mode.
Encode and decode Punycode (IDN) domain names — convert Unicode domains to xn-- form and back.
Encode and decode Base32 (RFC 4648) — the encoding used by TOTP authenticator secrets.
Looking for something else? Browse all tools