JSON Formatter & Validator help
Clean up JSON and catch mistakes. Errors point at the line and column. Your indent choice is remembered.
Steps
- Paste JSON on the left.
- Pick an indent (2, 4, or tab) and optionally sort object keys.
- The formatted result appears on the right; Minify collapses it to one line.
- Copy or download the output.
Errors
Invalid JSON shows the parser's message with a best-effort line and column so you can jump to the problem. Different browsers word the message differently.
Notes
- Sorting keys is recursive; array order is never changed.
- The status line summarises the structure: object and array counts and the maximum nesting depth.
Everything runs in your browser. Nothing you enter or drop is uploaded.
Back to JSON Formatter & Validator