String Escape / Unescape

Escape and unescape HTML, XML, JavaScript, JSON, CSS, URL, SQL, shell, CSV, regex, Unicode, and Base64 strings with round-trip checks.

65 chars · 73 bytes
99 chars · 107 bytes (+34)
Round-trip verified: unescape(escape(input)) === input

String escape features

Convert text for the exact syntax context you need, then verify the result can be decoded safely in your browser.

  • HTML named, decimal, and hexadecimal entities plus XML 1.0 legality filtering
  • JavaScript, JSON, Java, C#, CSS, URL, SQL, shell, CSV, regex, Unicode, and UTF-8-safe Base64 modes
  • Escape and unescape directions, non-ASCII controls, per-line processing, swap, copy, download, and character/byte stats
  • Live round-trip verification with strict malformed-input handling and browser-only processing

String escape FAQ

Which escape formats are supported?

The tool supports HTML, XML, JavaScript, JSON, Java, C#, CSS, URL, SQL, shell, CSV, regex, Unicode, and Base64 workflows, with meaningful decode support where the format allows it.

How do I choose the right escaping mode?

Choose the mode for the destination context: HTML or XML markup, a JavaScript or JSON string, a CSS selector, a URL component, SQL literal, shell argument, CSV field, or regex pattern.

Does the tool send my text to a server?

No. Encoding, decoding, statistics, downloads, and round-trip checks run locally in your browser.

Infinio Tools
© 2026 Infinio Labs