Text Escape / Unescape

Escape or unescape text for JSON, HTML, URL, XML, CSV, Regex, and SQL. Conversion happens live as you type.

Escaped Output

Frequently Asked Questions

Text escaping replaces special characters with safe sequences so the text can be used inside a specific context (JSON strings, HTML markup, URLs, etc.) without breaking the syntax.
This tool supports JSON String, HTML, URL, XML, CSV, Regex, and SQL escaping and unescaping. Each format handles the special characters relevant to that context.
No. All conversion happens locally in your browser using built-in JavaScript functions. No data is transmitted to any server.
HTML escaping covers &, <, >, ", and '. XML escaping is the same set of characters but uses XML-standard entity references. In practice they are very similar for common text.
CSV escaping wraps the field in double quotes and doubles any internal double-quote characters. This follows the RFC 4180 specification for CSV files.