Skip to content
ToolInstant

JSON Key Sorter

Local

Sort the keys of a JSON object alphabetically at every level, A–Z or Z–A. Optionally sort arrays of objects by a key you choose. Pick 2, 4, tab or minified.

Loading tool…

Ready · Runs in this browser · nothing uploaded

Developer tools · Free · No upload · No sign-up

How to use the json key sorter for free

  1. 1Paste JSON.
  2. 2Choose the key order, indent and, if you like, a key to sort arrays by.
  3. 3Copy or download the sorted JSON.

Also useful for: sort json keys, json key sorter, alphabetize json, order json keys, sort json array by key.

  • Completely free, no account needed
  • Your data never leaves your device
  • Works on desktop and mobile

Frequently asked questions

Is this JSON key sorter free?+

Yes. Every tool on ToolInstant is free to use with no sign-up and no limits on how often you use it.

Is my data uploaded anywhere?+

No. Everything is processed inside your browser using JavaScript. Your input never leaves your device.

Does it work on mobile?+

Yes. ToolInstant works in any modern browser on phones, tablets and desktops.

Does it change the order of items in arrays?+

Not unless you enter a key in the array box. Then any array whose items are all objects is sorted by that key; items without the key go last.