Toolzy

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

  1. Paste your JSON.
  2. Choose ascending or descending.
  3. 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.

Related tools