How to use JSON Key Sorter
- Paste JSON.
- Choose A → Z or Z → A and the indent.
- Copy or download the sorted JSON.
Supported features and limitations
Only object keys are reordered; array item order is never changed. Sorting makes diffs and config files easier to compare. Invalid JSON shows an error with the position.
Privacy
Your files are processed locally in your browser and are not uploaded to our servers. No account is needed and there is no watermark.
Frequently asked questions
Does sorting change the meaning of my JSON?
No. JSON objects are unordered, though some programs depend on key order.
Will arrays be sorted?
No.
Related tools
- JSON Formatter & Validator - Format, minify and validate JSON with clear errors.
- JSON Diff Checker - Compare two JSON documents and list every added, removed and changed value with its exact path.
- JSON to TypeScript Interface Generator - Generate TypeScript interfaces from a JSON sample, with nested objects, arrays, unions and optional properties.
- URL Encoder / Decoder - Encode or decode URLs and query strings.
- Color Converter - Convert between HEX, RGB and HSL colours.
- Password Generator - Create strong random passwords in your browser.