String Escape / Unescape
Escape a string for safe embedding in JSON, JavaScript, HTML, SQL, shell, or regex contexts. Or unescape strings copied from those contexts. Handles UTF-8 correctly.
How to use the String Escape / Unescape
Paste your string, pick the target context, choose Escape or Unescape. The escaped output is safe to drop into the chosen context. The unescape direction handles the same escape conventions as input.