JSON Sort is a free online tool to sort JSON keys alphabetically. Paste your JSON on the left and the sorted result appears instantly on the right. Sorting is recursive, so keys are sorted at every level of nested objects, while the order of arrays and all values remain untouched. Everything runs entirely in your browser — your data is never sent to a server.
How to sort JSON
- Paste (or type) your JSON in the input field above.
- The JSON is sorted automatically as you type — keys are ordered alphabetically at every level.
- Press Copy to clipboard to grab the result.
Features
- Recursive sorting — object keys are sorted at every nesting level, no matter how deep.
- Arrays keep their order — list order is part of your data, so it is never rearranged.
- Values are preserved — only key order changes; nothing is reformatted or lost.
- 100% client-side — sorting happens in your browser, so private and API payloads never leave your machine.
- No sign-up — free, instant, and unlimited.
Example: JSON before and after sorting
Input (keys in random order):
{
"website": "jsonsort.net",
"year": 2026,
"tools": {
"sorting": true,
"name": "JSON sort"
}
}Output (all keys sorted alphabetically, arrays and values untouched):
{
"tools": {
"name": "JSON sort",
"sorting": true
},
"website": "jsonsort.net",
"year": 2026
}FAQ
Does sorting JSON change the order of arrays?
No. Only object keys are sorted alphabetically. Arrays keep their exact order, and all values — strings, numbers, booleans, null — are preserved as-is.
Is my JSON sent to a server?
No. The sorting runs entirely in your browser with JavaScript. Your JSON never leaves your machine, so it is safe to sort sensitive payloads and API responses.
Is the JSON sorter free?
Yes. JSON Sort is 100% free with no sign-up, no limits, and no watermarks — sort as many JSON files as you like.
Can it sort nested objects?
Yes. Sorting is recursive, so keys are sorted at every level — from the root object down through all nested objects and arrays of objects.
Where is JSON Sort hosted?
JSON Sort is hosted in Denmark, which means the service runs entirely within the European Union and under EU data protection laws, including GDPR.
About JSON Sort
JSON Sort (jsonsort.net) is a lightweight, free JSON sorter built for developers who need alphabetically ordered JSON — for diffing configs, reading logs, or normalizing files. It does one thing well: sorting JSON keys, recursively, fast.