JSON Escape/Unescape

Escape text so it's safe inside a JSON string — or unescape a JSON string literal back to plain text. Quotes, backslashes, newlines, and unicode are handled in your browser.

How to use this tool

  1. Paste the text you want to escape, or the JSON string literal to unescape.
  2. Choose Escape or Unescape.
  3. Copy the result.