JSON Sort Keys
Alphabetize JSON object keys recursively.
{
"active": true,
"address": {
"city": "London",
"country": "UK"
},
"id": 42,
"name": "Ada",
"tags": [
"math",
"cs"
]
}Sorts object keys alphabetically, recursively. Useful for comparing two JSON files (sort both, then diff), reproducible config output, or just neater-looking config files.
About
Paste JSON. The tool sorts keys alphabetically at every level. Useful when comparing two configs (sort both, then diff) or when you want reproducible output.
How to use
- Paste JSON.
FAQ
Does it preserve arrays?+
Yes. Arrays are not reordered. Only object key order changes. Array contents are recursively sorted if they contain objects.