Skip to content
Web4tools

JSON Escape & Unescape

Safely embed text inside a JSON string, or undo it.

Runs in your browserNo accountNo watermark

In short

To escape text for JSON, paste it with Escape selected: quotes become \", backslashes \\, and line breaks and tabs become \n and \t, so the text can be placed between quotes in JSON. Choose Unescape to convert an escaped string back to readable text.

How to use the JSON Escape & Unescape

  1. 1Paste or type your input in the left box (or click "Try an example").
  2. 2Adjust the options if needed. The result updates as you type.
  3. 3Copy the result or download it as a file.

When you need it

Embedding multi-line text, HTML snippets or code in JSON config files and API requests requires escaping, or the JSON becomes invalid.

Frequently asked questions

Does it escape Unicode?

No. JSON allows Unicode characters as they are, so only required characters are escaped.

Should I include the surrounding quotes?

No, paste just the content between the quotes.

Is my data sent anywhere?

No. Everything runs in your browser. What you paste is never uploaded, logged or stored, so it's safe for code, tokens and private content.

Last updated