sapienkit
Files never leave your browser

Sort JSON Keys Alphabetically

100% browser-basedFiles never leave your deviceFree & unlimited

Paste JSON and get it back with all keys sorted alphabetically at every level of nesting. Makes JSON documents consistent and easier to diff.

Great for normalizing configuration files before committing to version control, or for comparing two JSON objects that have the same data in different key orders.

Indent
Input JSON
Sorted Output
Paste JSON to sort object keys

Frequently Asked Questions — JSON Sorter

Yes. Sorting is applied recursively to all nested objects, not just the top level.

Yes. Choose between 2 spaces, 4 spaces, or tabs.

For consistent formatting in config files, easier git diffs, and more predictable JSON output.