JSON Key Sorter
Sort all keys in JSON alphabetically (recursive, deep). Normalizes JSON configs and makes diffs easier to read.
#json#sort#keys#alphabetical#order#developer
Loading tool...
How to use
- 1Paste the JSON you want to sort into the input
- 2Choose order: A→Z (ascending) or Z→A (descending)
- 3Enable "Sort Arrays" if you also want array elements sorted
- 4Click "Process" and copy the result
Frequently Asked Questions — JSON Key Sorter
Is sorting applied recursively?+
Yes. Keys at every level of nesting are sorted, not just the top level.
Does sorting change the data?+
No. Only the key order changes. All values remain exactly the same.
Why would I want to sort JSON keys?+
Sorted JSON is easier to read, produces cleaner git diffs, and makes comparison (json-diff) more meaningful.