Cryonel

JSON Sort Keys

Recursively sort every object's keys alphabetically, at every depth. Useful before committing generated JSON so diffs only show real changes, not key reordering.

Advertisement

How to use it

Paste JSON and click Sort Keys for a pretty-printed, alphabetically-sorted version, or Sort + Minify for a single-line output. Array order is left untouched — only object keys are sorted.

Frequently Asked Questions

Does this change array order?

No — arrays keep their original element order. Only the keys within objects are sorted; sorting array *contents* is a different, order-dependent operation this tool doesn't do.

Related Tools