JSON Escape

Escape raw text into a JSON-safe string.

Raw string
Escaped string

Free online JSON escape tool. Convert raw text — including quotes, backslashes, tabs and newlines — into a properly escaped, JSON-safe string ready to paste into a JSON value. Runs in your browser.

How to use the JSON Escape

  1. 01Paste your raw text into the input box.
  2. 02The escaped, JSON-safe string appears instantly.
  3. 03Copy it straight into a JSON value or code.

Frequently asked questions

What characters get escaped?

Double quotes, backslashes and control characters like tabs and newlines are escaped using standard JSON escape sequences.

Does it add the surrounding quotes?

No — it returns just the escaped inner string so you can drop it directly between your own quotes.