JSON Key Sorter
Sort JSON object keys alphabetically to make configuration and API response comparisons easier.
Input
Output
How to use
• Sort: order object keys alphabetically ascending / descending; array order is preserved.
• Recurse nested: when on, nested objects are sorted too; when off, only the top level.
• De-dup: duplicate keys are removed on parse (the later one wins).
• Memory: when on, your last input is saved to local storage.
What does JSON Key Sorter do?
Sort JSON object keys alphabetically to make configuration and API response comparisons easier. Review reordered output while preserving attention to values and array order.
Interpreting results and common questions
Does key sorting produce a universal signing payload?
Sorting does not replace a canonicalization protocol with defined number, string and encoding rules. Check large integers and duplicate keys; do not assume the result is a universal signing payload.
References and result limitations
Local results depend on the input and selected options. Retain the input example, format and processing rules when citing a result, and verify the output. Keep keys and other sensitive material out of public examples.
These references explain protocol or format rules; they do not endorse results produced by this site.