Sort JSON Keys
Sort all object keys alphabetically (recursive).
About the JSON Key Sorter
The JSON Key Sorter sorts all object keys alphabetically at every nesting level. It is useful because sorted keys make two documents comparable line by line and produce clean diffs in version control.
Like every Pockly tool, it runs entirely in your browser: the JSON you paste is processed on your device and never uploaded to a server.
How to use it
- Paste your JSON into the input panel.
- The result appears automatically in the output panel.
- Fix any reported errors and re-run if needed.
- Copy the result with one click.
Frequently asked questions
Is my JSON uploaded anywhere?
No. Processing happens locally in your browser; your data never leaves your device.
Is there a size limit?
No fixed limit. Documents of several megabytes are processed in seconds.
What if my input is not valid JSON?
The tool shows a clear error message with the location of the problem instead of failing silently.
Are the other JSON utilities related?
Yes — format, minify, sort, validate, flatten, diff, and query all work together; you can chain them by copying output from one into another.