JSON Sort Keys

Sort object keys alphabetically at every level.

JSON Sort Keys

.json

Paste text or open a file to see the result.

What it does

Puts the keys of every object in alphabetical order, at every level. Sorted files are easier to read and give cleaner diffs in version control. The values and arrays stay as they were.

About the .json format

.JSON file extension
File Type
JavaScript Object Notation File
Developer
Specified by Douglas Crockford
Category
Web Files
MIME
application/json

JSON is a lightweight data-interchange format.

Related tools

More in JSON & Data

JSON Sort Keys questions

How do I use the JSON Sort Keys?

Paste the text into the Input box or open a file, set the options, then copy or download the result.

Does renaming a file to .json change its format?

No. The extension only tells programs what to expect, and the content of the file stays the same. To change the format, convert the file. The .json page lists programs and converters for it.