JSON Key Sorter
Sort JSON object keys alphabetically, naturally, or by array field.
About the JSON Key Sorter
Reorder JSON object keys ascending, descending, case-insensitively, or naturally, optionally recursively through nested structures, plus optional sorting of primitive or object arrays by a chosen key.
Popular uses
- json
- sort
- sort keys
- alphabetical
- natural sort
Examples
Sort object keys
JSON{"b":1,"a":2}Output
JSON{
"a": 2,
"b": 1
}Keyboard shortcuts
- Copy the main outputCtrl / ⌘ + Shift + C
- Download the resultCtrl / ⌘ + S
- Share this toolCtrl / ⌘ + Shift + S
- Reset the inputsAlt + R
- Open the tool search paletteCtrl / ⌘ + K
Related tools
JSON Formatter
JSON
Pretty-print and beautify JSON with custom indentation.
JSON Compare
JSON
Diff two JSON documents and list added, removed, and changed paths.
JSON Merger
JSON
Merge two or more JSON documents with shallow/deep strategies.
Code Diff Merger
Dev Utilities
Side-by-side line diff of two code snippets with stats.
Diff Checker
Text & String
Compare two texts line-by-line with an LCS diff.
JSON Diff Viewer
Dev Utilities
Compare two JSON documents and see added, removed and changed keys.
Works well with
Next steps from other categories.
Csv To Json
Converters
Convert between CSV and JSON with delimiter and header options.
INI to JSON Converter
Converters
Convert INI config files to JSON and back.
Mock JSON Generator
Generators
Generate arrays of mock JSON records from a simple field schema.
Query String Converter
Network & IP
Convert between URL query strings and JSON, with nested bracket support.
Frequently asked questions
Version 1.0.0 · Updated 2026-08-10 · Runs entirely in your browser