JSON Sort Keys
Recursively sort JSON object keys (arrays preserved) for stable diffs.
JSON input
Sorted
{
"a": {
"c": 3,
"d": 2
},
"arr": [
{
"y": 2,
"z": 1
}
],
"b": 1
}Related tools
JSON Formatter & ValidatorJSON
Format, validate, and prettify JSON in your browser. Fast and free.
Line NumbererText
Add line numbers to text (with options for start/format).
Indentation ConverterText
Convert indentation (tabs/spaces) and normalize widths.
XML FormatterConverter
Format and prettify XML locally in your browser.
SQL FormatterCode
Format and beautify SQL queries with syntax highlighting.
GraphQL FormatterCode
Format and prettify GraphQL queries, mutations, and schema definitions.