0

JSON String Escape Online — Escape & Unescape

Escape or unescape strings for JSON, JavaScript/TypeScript, SQL and regex — live, entirely in your browser.

Need HTML entity or URL encoding instead? Use our HTML & URL Encoder / Decoder tool.

Processing... 0%

Result

This page opens the string escaper with JSON mode already selected — paste a raw string and get back exactly what the JSON spec requires between the quotes, live as you type.

JSON escaping turns a double quote into \", a backslash into \\, and control characters like newline and tab into \n and \t, so the value can sit safely as a JSON string in a payload, a .json file or a config.

Switch to decode to reverse it: paste an already-escaped fragment and get the original text back — malformed sequences show a clear error instead of breaking silently. The full tool also handles JavaScript, SQL and regex escaping, entirely in your browser.