Paste JSON and get it back with the keys of every object in alphabetical order. Arrays keep their order unless you ask, because the order of list items usually means something. Sorted JSON is easier to scan and gives clean diffs when two systems write the same data in a different key order.
Changes data order; off by default.
Processing runs in your browser. What you type never leaves this device.
Sorts keys at every level, or only the top
A to Z or Z to A
Natural order (item2 before item10), ignoring case
Optional sorting of lists of plain values
2 or 4 spaces, tab or minified output
Line and column for JSON errors
Sort both files before comparing them in the [diff checker](/tools/diff-checker); only real changes remain.
Keep package.json scripts, i18n files and feature flags in a predictable order so merges conflict less.
Some signing and caching schemes need one canonical key order; sorting gives the same text for the same data.
Other JSON tools: JSON formatter and validator, JSONPath tester, JSON to TypeScript and JSON to CSV.
Built by Edesy
Edesy builds AI products for Indian businesses. Start self-serve, no demo call needed.
AI agents that answer and make phone calls 24/7. Handle appointments, inquiries and support in Indian and global languages.
₹50 free credit. No demo call needed.