Skip to content

JSON Key Sorter

Recursively sort all object keys in a JSON document alphabetically.

Runs locally · Nothing uploaded
JSON input
Sorted JSON
Result will appear here…
Advertisement

About JSON Key Sorter

Sorts every object's keys alphabetically at every nesting level, producing a canonical ordering that makes diffs and code reviews far easier to read. Array order is preserved, since reordering arrays would change meaning. Output is pretty-printed and ready to paste back into your config.

Related tools

All tools · More in this category