JSON Sorter
Sort JSON field names alphabetically and optionally the items inside arrays too — tidy JSON that is easy to scan and to compare between versions.
How to sort JSON
- Paste your JSON on the left and the sorted result appears on the right.
- Pick A → Z or Z → A. Field names are sorted by default, and you can turn that off.
- To sort arrays as well, turn on "Sort items inside arrays". For arrays of objects, type the field to compare by, for example name.
Frequently asked questions
More JSON tools
JSON FormatterFormat, minify and validate JSONJSON RepairAutomatically fix broken JSONJSON CompareFind the differences between two JSON documentsJSON ViewerView JSON as a tree, collapse or expand any branchJSON to YAMLConvert between JSON and YAMLJSON to CSVConvert between JSON and CSV tablesJSON Escape / UnescapeTurn text into a valid JSON string and backJSON to TypeScriptGenerate TypeScript interfaces from sample JSONJSONPath QueryExtract data from JSON with a JSONPath expression