</> ConvertAtlas Developer Tools
Converters

JSON Key Sorter

Alphabetically sort all JSON object keys.

Instant 100% in-browser Free

This tool recursively sorts all keys in a JSON object alphabetically and pretty-prints the result — entirely in your browser.

How to use it

  1. Paste valid JSON.
  2. All object keys are sorted recursively.
  3. Copy the normalised, sorted JSON.

About JSON Key Sorter

Sorting JSON keys makes objects easier to diff, review and compare, since two semantically identical objects with different key orders will look the same once sorted. This tool walks your JSON recursively, sorts every object's keys alphabetically and reformats it with clean indentation. It validates the JSON as it goes and runs locally in your browser.

FAQ

Does it sort nested objects too?

Yes — sorting is recursive, so keys at every level of nesting are ordered alphabetically.

Are arrays reordered?

No — array order is meaningful, so array elements keep their original order.

Why sort keys before diffing?

Two equal objects can differ only in key order; sorting first makes diffs show only real changes.