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.
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
Unicode Escape / Unescape
Convert text to \uXXXX, \u{…}, \x, U+, &#x…;, Python, Go or CSS escapes and back, and inspect every code point for invisible or look-alike characters.
HTML Entity Encode / Decode
Encode text to HTML entities with presets (minimal, attribute-safe, all non-ASCII) and decode all 2,000+ HTML5 named references.
URL Encode / Decode
Percent-encode text with encodeURIComponent, encodeURI, form or RFC 3986 rules, decode multi-layer strings, and edit query strings in a table.
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.