Sort JSON Keys Alphabetically
Paste JSON and get it back with all keys sorted alphabetically at every level of nesting. Makes JSON documents consistent and easier to diff.
Great for normalizing configuration files before committing to version control, or for comparing two JSON objects that have the same data in different key orders.
Frequently Asked Questions — JSON Sorter
Yes. Sorting is applied recursively to all nested objects, not just the top level.
Yes. Choose between 2 spaces, 4 spaces, or tabs.
For consistent formatting in config files, easier git diffs, and more predictable JSON output.
More Developer Tools
Code Editor
Preview, format, and diff code with syntax highlighting. Supports 15+ languages.
JS Obfuscator
Obfuscate & deobfuscate JavaScript code. Multiple protection levels.
TypeScript to JavaScript
Convert TypeScript code to JavaScript by removing type annotations.
Regex Tester
Test and debug regular expressions with real-time matching.
JSON Viewer
Prettify, minify, and explore JSON with a foldable tree view.
XML Viewer
Format, minify, and browse XML documents in a foldable tree.
JSON to TypeScript
Convert JSON objects to TypeScript interfaces or types.
JSON Diff
Compare two JSON documents and visualize differences in a tree view.