String Escape / Unescape
Escape or unescape strings for JSON, JS, HTML, XML, URL, regex, shell, CSV, SQL, Python, Java, C#, Go, YAML and .properties.
Body of a JSON string literal: backslash, quote and control characters become \n, \t, \", \uXXXX. Unescape accepts a bare body or a full "quoted" literal.
She said, \"It's <magical> & fast — don't you think?\"\nPath: C:\\Users\\ada\\code.js (100% sure, $HOME/bin)\nNew line:\ntab\there · café · 日本語 · 🚀
Related tools
How to use String Escape / Unescape
- 1Pick the target context from the dropdown (grouped by Data, Code, Markup, Web, Shell, SQL).
- 2Choose Escape, Unescape or Auto — Auto inspects the input for existing escape sequences.
- 3Paste the text; the result updates live with syntax highlighting where it applies.
- 4Optionally escape non-ASCII as \uXXXX or wrap the output in quotes, backticks or a heredoc.
- 5Press ⌘Enter or Swap to feed the output back as input and flip direction.
About String Escape / Unescape
Add or remove escape sequences for 18 contexts: JSON, JavaScript, HTML, XML, URL and form encoding, regex literals, bash single and double quotes, CSV fields, C#, Java, Python and Go string literals, YAML double-quoted scalars, Java .properties, ANSI SQL and MySQL backslash escaping. Auto-detect the direction, escape non-ASCII as \uXXXX, and wrap the result as a quoted literal or heredoc.
String Escape / Unescape is part of FizzKit — a collection of focused developer and ad-tech tools. Because everything runs locally, it works offline once loaded and never exposes your data to a remote server.