Alphabetical Ordering (A-Z / Z-A)
Sort object properties in ascending (A to Z) or descending (Z to A) alphabetical order.
Alphabetize object keys recursively across all nested levels for deterministic JSON output, diffing, and hashing.
Sort JSON object keys alphabetically (A-Z or Z-A). Deep recursive sorting for deterministic, canonical JSON comparisons and hashing.
{"b":1,"a":{"d":2,"c":3}}{"a":{"c":3,"d":2},"b":1}Tip: Array order is preserved, because reordering array items would change the data.
Sort object properties in ascending (A to Z) or descending (Z to A) alphabetical order.
Choose between recursive sorting of all nested objects or sorting top-level keys only.
Produces canonical key order ideal for cryptographic hashing, snapshot testing, and version control.
Safely sorts object keys within arrays while maintaining the exact element order of array items.
Sorting keys produces deterministic, canonical JSON. This is essential for computing consistent hash values, creating clean git diffs, and comparing API responses.
No. Array item order is strictly preserved. If array elements are objects, only their internal keys are sorted.
Shallow sorting only alphabetizes the top-level keys. Deep sorting traverses every nested object recursively.
Yes, select Z → A from the sort direction dropdown to reverse alphabetical ordering.