Skip to main content
>_devtools

String Escape & Unescape

Escape and unescape text for JSON, JavaScript, Java, C, shell, regex, HTML, CSV, and SQL strings, with error positions.

What this does

Escape or unescape string literals for JSON, JavaScript, Java, C, shell, regex, HTML, CSV, and SQL. Choose a format and direction, then use Swap to carry the result back as input.

Example

Input: He said "hi"
JSON:  He said \"hi\"

Limits and behavior

  • Escaping represents string data; it does not replace parameterized SQL queries or context-specific output encoding.