Runs locally
Sort JSON Keys
Sort object keys recursively.
Ctrl+Enter runs. Ctrl+Shift+Backspace clears.
Export and import are available after you sign in. Sign in
Stable key order makes diffs easier. Arrays keep their order.
About this tool
Make two JSON documents easier to compare, or keep config files in a predictable order. Paste the JSON and every object's keys are sorted, recursively.
How to use it
- 01
Paste the JSON.
- 02
Keys are sorted at every level.
- 03
Copy the sorted JSON.
FAQ
Frequently asked questions
Are arrays sorted too?
No. Arrays keep their order, because element order is usually meaningful.
Why sort keys?
A stable key order makes diffs smaller and code review easier.