JSON Sort Keys
Alphabetically sort the keys of a JSON object.
Input
Output
Recursively sort all object keys in JSON, ascending or descending, keeping arrays in order.
How to use
- Paste your JSON.
- Choose ascending or descending.
- Copy the sorted JSON.
Frequently asked questions
- Are arrays reordered?
- No, array order is preserved; only object keys are sorted.
- Is it recursive?
- Yes, keys are sorted at every nesting level.