Skip to content

JSON Key Sorter

Sort JSON object keys throughout a document for easier diffs. Array order and numeric values are preserved.

Input

Loading tool…

Result

Local processing

Your result will appear here.

How to use it

Paste JSON and choose ascending or descending key order. The tool sorts keys in every nested object and keeps array items in their original order.

Worked example

Sorting {"z":1,"a":{"d":2,"c":3}} moves a before z and c before d.

Browse developer