JSON Escape / Unescape
Convert raw text into a valid JSON string line, or revert an escaped JSON string back to normal text.
Valid JSON Strings
JSON strings cannot contain unescaped double quotes or backslashes. Newlines must also be escaped as \n.
- Escape: Turns
Hello "World"intoHello \"World\". - Unescape: Reverses the process, making the text readable again.
How to Use
- Paste your text on the left.
- Select Escape to prepare it for a JSON file.
- Select Unescape if you pasted a string from a JSON file.
You might also like
Frequently Asked Questions
When putting text inside a JSON string (e.g. "text"), characters like quotes (") and backslashes (\) must be escaped (turned into \" and \\) to avoid breaking the JSON syntax.
It automatically adds or removes the necessary backslashes so your string is valid within a JSON file.