Skip to content
FizzKit

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.

Runs locally in your browser
Pick a context, paste text, and the escaped form updates live — ⌘Enter swaps output back into the input

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.

Raw text
139 chars · 4 lines
Escaped JSON string
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é · 日本語 · 🚀
Input
139 chars
Output
148 chars
Delta
+9
Non-ASCII
9
Escapes in input
3
Direction
escape

How to use String Escape / Unescape

  1. 1Pick the target context from the dropdown (grouped by Data, Code, Markup, Web, Shell, SQL).
  2. 2Choose Escape, Unescape or Auto — Auto inspects the input for existing escape sequences.
  3. 3Paste the text; the result updates live with syntax highlighting where it applies.
  4. 4Optionally escape non-ASCII as \uXXXX or wrap the output in quotes, backticks or a heredoc.
  5. 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.

Frequently asked questions

JSON, JavaScript/TypeScript, HTML, XML, URL component, form-urlencoded, regex, bash single and double quotes, CSV, C#, Java/Kotlin, Python, Go, YAML, .properties, ANSI/PostgreSQL SQL and MySQL backslash escaping.