JSON Sorter
Sort JSON object keys recursively for stable, readable output.
Conversion payloads stay in this browser tab and are never placed in page URLs - see how local processing works. Privacy-safe analytics record only the tool, outcome, and a coarse input-size bucket. Press Cmd/Ctrl + Enter to convert.
How to Sort JSON Keys
Paste JSON and click Convert. The sorter parses the document, sorts every object key alphabetically, and prints stable formatted JSON.
Frequently Asked Questions
Does it sort nested objects?
Yes. Object keys are sorted recursively at every level, including objects inside arrays.
Are arrays reordered?
No. Array item order is preserved because array order is meaningful in JSON.
Continue with the data, not the directory
Validate, format, repair, compare, query, and reshape payloads before they ship.
JSON Formatter & Beautifier
Format and beautify JSON with 2, 3 or 4 spaces or tabs, see any syntax error at its exact line and column, and repair common mistakes in one click.
JSON Minifier
Minify JSON by removing every byte of insignificant whitespace.
JSON Flatten
Collapse nested JSON into a single object keyed by dot and bracket paths.
JSON Validator
Check whether JSON is valid, with any error highlighted at its exact line and column, a plain explanation, and one-click repair.