JSON Escape / Unescape
Escape JSON for use inside a string, or turn an escaped string back into JSON.
What it does
Escapes quotes, backslashes and line breaks so JSON can sit inside a string, or turns an escaped string back into readable JSON. Handy when JSON is stored in logs, databases or other JSON. You get text ready to paste either way.
About the .json format
.JSON file extension.json JavaScript Object Notation File
Web Files
- File Type
- JavaScript Object Notation File
- Developer
- Specified by Douglas Crockford
- Category
- Web Files
- MIME
application/json
JSON is a lightweight data-interchange format.
Related tools
More in JSON & Data
JSON Formatter
Indent JSON, sort its keys or squeeze it onto one line.
JSON Validator
Check that JSON is valid and see the line and column of each error.
JSON Viewer
Browse JSON as a collapsible tree with the path of each value.
JSON Minifier
Remove whitespace and line breaks to get the smallest valid JSON.
JSON Editor
Edit JSON as a tree or as text, with errors shown as you type.
JSON Compare
Show added, removed and changed keys between two JSON documents.
JSONPath Tester
Run JSONPath queries such as $.items[*].id on your data.
JSON Schema Validator
Check JSON data against a JSON Schema and list each failed rule.
JSON Escape / Unescape questions
How do I use the JSON Escape / Unescape?
Paste the text into the Input box or open a file, set the options, then copy or download the result.
Does renaming a file to .json change its format?
No. The extension only tells programs what to expect, and the content of the file stays the same. To change the format, convert the file. The .json page lists programs and converters for it.