JSON Sorter
Sort JSON object keys recursively for stable, readable output.
0 chars | 1 lines
0 chars | 0 lines
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.