How to use the JSON Key Sorter
- Paste JSON.
- Press Sort keys.
- Copy the sorted, formatted result.
Features
- Recursive: nested objects are sorted too
- Array order is preserved, since it is meaningful
- Code-point (byte) order, the same as most canonical-JSON schemes
Supported input
Valid JSON.
Limitations
- Uppercase letters sort before lowercase (code-point order).
- Duplicate keys are kept, and both are moved into sorted position.
Privacy
Everything this tool does happens in your browser. What you paste or open is never uploaded, stored, logged or used for advertising. Closing the tab discards it. Read the privacy policy.
Frequently asked questions
01Does sorting change the meaning of the JSON?
No. Object key order has no meaning in JSON, so sorted output is equivalent. Arrays are left in their original order because their order does matter.
02Is my data uploaded anywhere?
No. This tool runs entirely in your browser tab. Your input is never sent to our servers, stored, or logged. You can disconnect from the internet after the page loads and it keeps working.