JSON Sorter
Free online JSON Sorter. Alphabetize and sort JSON keys ascending or descending for clean git diffs and organized configurations. Pin primary keys and sort array values.
Key Features
- •Recursive sorting of nested JSON object keys
- •Ascending (A → Z) and Descending (Z → A) sort directions
- •Pin primary keys (id, name, type, status) at the top of objects
- •Optional sorting of primitive array items (strings and numbers)
- •Dual Monaco editor view for before-and-after comparison
Common Use Cases
- •Organizing package.json and tsconfig.json configurations
- •Standardizing i18n localization translation key files
- •Creating clean, readable Git commits without arbitrary key diff noise
Frequently Asked Questions
More JSON Tools
Other private client-side utilities in this collection.
JSON Formatter
Beautify, minify, and validate JSON
JSON Comparison
Compare two JSON objects and highlight differences
JSON to CSV
Convert JSON array to CSV
CSV to JSON
Convert CSV to JSON array
JSON to TypeScript
Convert JSON to TypeScript Interfaces
JSON to YAML
Convert JSON to YAML format
YAML to JSON
Convert YAML to JSON format
JSONPath Tester
Test and evaluate JSONPath expressions online
JSON to XML
Convert JSON to XML format online
XML to JSON
Convert XML to JSON format online
JSON to SQL
Convert JSON to SQL INSERT and CREATE TABLE statements
JSON Validator & Fixer
Validate JSON syntax and auto-fix formatting errors
JSON to JSON Schema
Generate JSON Schema from sample JSON
JSON Viewer
Interactive JSON Tree Visualizer & Explorer
JSON Minifier
Compress and minify JSON to reduce payload size
JSON Unescape & Stringify
Unescape stringified JSON or escape JSON into code literals