JSON Formatter
Format JSON data for easier reading and check its syntax.
Result
Formatted JSON will appear here.Example
Load the sample JSON, choose your options, and review the formatted result.
Formatting versus changing data
Indentation changes whitespace only. Sorting object keys changes their display order, which can make reviews easier, but array order is preserved because it is part of the data. Systems should not depend on JSON object-key order.
Common reasons JSON fails to parse
JSON requires double-quoted property names and strings, no trailing commas, and valid escape sequences. Comments, undefined, NaN, and single-quoted strings belong to other syntaxes and must be removed or converted first.
Frequently asked questions
Is my JSON stored?
No. Your input is sent to the server for formatting but is not stored or written to logs.
Which JSON values can I format?
Objects and arrays are supported, as are strings, numbers, true, false, and null when they follow the JSON standard.