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
JSON & DataRuns locally in your browser.JSON FormatterPretty-print minified or messy JSON with consistent indentation.JSON & DataRuns locally in your browser.JSON DiffCompare two JSON documents structurally and see what changed.JSON & DataRuns locally in your browser.JSON MinifierStrip whitespace from JSON to produce the smallest valid payload.