JSON Key Sorter

Sort the keys of a JSON object alphabetically at every level, ascending or descending, with your choice of indentation.

How to use JSON Key Sorter

  1. Paste JSON.
  2. Choose A → Z or Z → A and the indent.
  3. Copy or download the sorted JSON.

Supported features and limitations

Only object keys are reordered; array item order is never changed. Sorting makes diffs and config files easier to compare. Invalid JSON shows an error with the position.

Privacy

Your files are processed locally in your browser and are not uploaded to our servers. No account is needed and there is no watermark.

Frequently asked questions

Does sorting change the meaning of my JSON?

No. JSON objects are unordered, though some programs depend on key order.

Will arrays be sorted?

No.

Related tools

More Developer & Webmaster Tools · All free tools