JSON Sorter
Sort object keys alphabetically at every level and optionally sort arrays.
Input
Result
How to use
Sorting keys
Press Sort to order every object key alphabetically, recursively.
- Paste JSON into the input editor.
- Press Sort.
- Copy the ordered document.
Frequently asked questions
Are arrays reordered?
Arrays keep their order by default because array order is usually meaningful.
Is the comparison case sensitive?
Keys are compared using a locale aware, case insensitive ordering.
Related tools
JSON Formatter
Beautify and validate JSON with configurable indentation, error highlighting and one click copy.
JSON Compare
Compare two JSON documents and highlight added, removed and changed values.
JSON Minifier
Remove every unnecessary space and newline to produce the smallest possible JSON payload.
JSON Validator
Check whether your JSON is valid and see a clear explanation of any syntax problem.
JSON Viewer
Read JSON in a clean formatted view and explore it as a collapsible tree.
JSON Tree Viewer
Turn JSON into an interactive, collapsible tree with array lengths and value types.