JSON Key Sorter

Sort object keys in ascending or descending order, optionally including nested objects, without changing array order or numeric precision.

Loading workspace…

Usage guide

Sort object keys in ascending or descending order, optionally including nested objects, without changing array order or numeric precision.

  1. 01

    Paste data or read from a file.

  2. 02

    Review the options; results update automatically. Run manually for larger inputs, and check warnings before applying changes.

  3. 03

    Copy or download the result. Your original document stays unchanged until you apply it.

Example input

{"z":1,"10":10,"2":2,"a":{"z":0,"a":1}}

Frequently asked questions

Can I recover my documents after closing the page?

Documents are saved automatically in this browser and restored when you return. Closing a document with X deletes it. Browser cleanup can also remove saved work; download important results or export your workspace.

Are array items sorted too?

No. You can sort object keys ascending or descending and optionally include nested objects; array item order stays the same.