JSON Escape / Unescape
Escape text into a JSON string literal, or unescape a JSON string literal back to plain text.
Output
Result appears here.
How it works
Choose Escape to convert arbitrary text into a valid JSON string literal (quotes, backslashes, newlines, and other characters are escaped), or Unescape to parse a JSON string literal back to plain text. Both run entirely in your browser via JSON.stringify/JSON.parse — nothing is sent to a server.
Example
Escape
Line one
Line "two""Line one\nLine \"two\""FAQ
- Is my text uploaded anywhere?
- No. Escaping and unescaping happen in your browser via JSON.stringify/JSON.parse — nothing you paste ever leaves your machine.
- What happens if I unescape something that is not a JSON string?
- You get a clear error — Unescape only accepts a JSON string literal, not another JSON value like an object or number.
- Does it support Unicode and emoji?
- Yes — both escape and unescape round-trip Unicode characters and emoji correctly.