String Escape & Unescape
Escape or unescape strings for JSON, JavaScript, HTML, URL, SQL, regex or backslash — twin panes, instant, in your browser. Free.
Everything runs in your browser — nothing is uploaded.
About String Escape & Unescape
String Escape & Unescape converts text to and from the escaped form required by seven targets: JSON strings, JavaScript strings, HTML, URLs, SQL, regular expressions and plain backslash escaping. Twin panes update instantly, and a swap button feeds the output back as input for multi-layer jobs.
Each target follows its own rules — JSON escapes quotes and control characters as \n or \u sequences, HTML converts <, > and & to entities, URL encoding percent-escapes reserved characters, SQL doubles single quotes, and regex escaping neutralizes metacharacters like . and * so user input can be matched literally.
It is the quick fix for embedding text in code, building query strings, or reversing an over-escaped log line. Everything runs in your browser with nothing uploaded, so pasted secrets and production log fragments stay private. Free to use, no account needed.
How to use String Escape & Unescape
- Choose the direction: Escape or Unescape.
- Pick the target format: JSON string, JS string, HTML, URL, SQL, Regex or Backslash.
- Paste your text into the input pane, or load the sample.
- Read the converted result, using "Use as input" to unwrap or add another escaping layer.
- Copy the output to your clipboard.