JSON Formatter
Format messy JSON into readable, indented output and catch syntax errors quickly.
Escape text for a JSON string or turn an escaped JSON string back into readable text.
JSON strings require quotes, line breaks, tabs and backslashes to be escaped. This tool handles that conversion without changing the underlying text.
Start with a small sample, check the output, then paste the full text when the result looks right. For important production data, review the output before saving or sharing it.
Learn why JSON strings need escaping and how to avoid double-escaping copied values.
Read guideNo. It returns a valid JSON string value, including the surrounding quotation marks.
It accepts a quoted JSON string or an escaped string fragment such as a line containing backslash-n.