JSON escape and unescape
Turn text into a JSON string literal with quotes and line breaks escaped, or turn one back into text.
Missing a feature or found a bug in JSON escape and unescape? Tell me on X (@_andrewtran) or by email.
How to use JSON escape and unescape
- Choose Escape or Unescape.
- Paste your text or JSON string in the input pane.
- Copy the result from the output pane.
Questions and answers
Is my data sent anywhere?
No. Everything runs in your browser on this device. Nothing you paste is uploaded or stored.
Which characters are escaped?
Double quotes, backslashes, line breaks, tabs and other control characters, as the JSON standard requires.
Do I need the surrounding quotes to unescape?
No. A string with or without its outer quotes is read the same way.
Related tools
HTML entity encoder
Escape text as HTML entities, or decode entities such as & and ' back into characters.Text to hex converter
Convert text to hexadecimal UTF-8 bytes, or decode hex back into text.Text to binary converter
Convert text to 8-bit binary, or decode binary back into text.Text to octal converter
Convert text to octal byte values, or decode octal values back into text.