▤Free
Sort JSON object keys
Recursively sort object keys while preserving array order.
Recursively sort object keys while preserving array order. Arrange each object’s keys in ascending string order and output readable two-space-indented JSON. Nested objects are processed recursively without sorting the array elements themselves.
How to use
- Enter your text, values, or image.
- Adjust the options and run the tool.
- Copy or download your result.
Worked example
Example input
Input: {"z":1,"a":2}Example result
{
"a": 2,
"z": 1
}Limitations and details
JavaScript JSON parsing and numeric precision apply; sorting keys does not provide a cryptographic canonicalization standard.
Inputs and options
- Input
- Text
Frequently asked questions
Is this tool free and private?
Yes. All 300 tools are free in this phase. Processing happens in your browser; your input and files are not sent to our servers.