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, beautify, and validate JSON in one pass, with the exact location of any syntax error.
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, find the syntax error, and see what the document contains.