Developer Tools
JSON Formatter
Validate and pretty-print JSON with a chosen indentation.
Parses the input as JSON and prints it back with consistent indentation and spacing. Parsing is also the validation: if the document is malformed, the error names the line and column the parser stopped at, which is far more useful than the character offset the browser reports.
Options
Array order is never changed.
InputText is processed entirely in your browser.
0lines0words0characters0 B
Output
0lines0words0characters0 B
Options explained
- Sort object keys alphabetically — Array order is never changed.