jsonpost

JSON Sorter

Sort JSON object keys alphabetically at any depth to make diffs and code reviews easier.

Runs entirely in your browser — your data never leaves your device.

Loading tool…

How to use this tool

  1. 1Paste your JSON into the editor.
  2. 2Choose ascending or descending and whether to sort nested objects.
  3. 3Copy the sorted output.

Frequently asked questions

Does it sort arrays too?
By default it sorts object keys and leaves array order intact (arrays are ordered data). Use the JSON Array Tools to sort array elements.
Why sort JSON keys?
Sorting keys produces a canonical order that makes diffs, version control, and code reviews far easier to read.
Is my data uploaded to a server?
No. Every tool on JSONPost runs entirely in your browser using JavaScript. Your JSON never leaves your device, so it is safe to use with private or sensitive data.

Related tools