JSON Escape/Unescape
Escape string contents for JSON or remove one or more escape layers.
Enter text to get started.
How to use JSON Escape/Unescape
- Paste or type your input. You can also load the example below.
- Adjust the available options. Results update after you finish typing; for very large inputs, select Run.
- Review the result, then copy it or download it to your device.
How this tool works
Escape applies JSON string rules to quotes, backslashes and control characters. Unescape accepts string contents with or without surrounding quotes. Auto-detect removes at most five layers; choose an exact level when literal backslashes must be retained.
Input and output stay in the current page. Refreshing or closing the page clears them. For very large inputs, use Run to start processing; a task that takes too long is stopped so you can change the input.
Frequently asked questions
Does this validate a JSON document?
No. This tool handles string escaping. Use JSON Formatter for complete objects or arrays.
Can automatic unescaping be ambiguous?
Yes. A literal backslash can resemble another escape layer. Select an exact level when the intended nesting is known.