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

What is text escaping?

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.

What formats are supported?

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.

Does this tool send my data anywhere?

No. All conversion happens locally in your browser using built-in JavaScript functions. No data is transmitted to any server.

What is the difference between HTML and XML escaping?

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.

How does CSV escaping work?

CSV escaping wraps the field in double quotes and doubles any internal double-quote characters. This follows the RFC 4180 specification for CSV files.