JSON Sort Keys
Paste JSON and re-output with object keys sorted alphabetically. Nested objects are sorted recursively.
Sort keys
How it works
We parse JSON, then recursively sort keys of each object and stringify with optional indent.
When to use it
Use for deterministic diffs or consistent config files.
Frequently asked questions
Array order?
Array element order is preserved. Only object key order changes.