Web
JSON array sorter
Reorder an array of JSON objects using one field, with no upload.
Top-level numeric values sort numerically; other values sort as text. Missing or null values sort last in ascending order. Nested field paths are not supported. Data stays in your browser.
Worked example
Order records by a numeric score.
Example input
[{"name":"Ravi","score":12},{"name":"Asha","score":8}]Expected result
Sort by score in ascending order to place Asha before Ravi.
Before using your result
Use actual JSON numbers for numeric comparisons. A quoted number is a string, and nested paths are not supported.
How this works
Paste an array of objects and enter a top-level field name. Numeric values are compared as numbers; other values use browser text sorting.
The tool preserves each object and formats the sorted array. It does not support nested paths or mixed-type normalization.
Up to 5,000 objects and 500,000 input characters.
Questions
Can it sort by a nested field?+–
No. Enter a top-level key from the objects.
Are numbers sorted correctly?+–
Values that are both JSON numbers are compared numerically.
Does it change object fields?+–
No. It only changes the order of objects in the array.
