JSON
AvailableJSON Formatter
Format, validate, minify, and sort JSON locally.
Paste strict JSON to sort object keys locally.
Sorted JSON will appear here.
Options apply the next time you sort. Array item order and JSON values are never changed.
Sort JSON object keys alphabetically in your browser. Objects are sorted at every nesting level, including objects inside arrays, while values and array item order stay unchanged.
Processing happens locally in your browser and nothing is uploaded or automatically saved. This tool accepts strict JSON only; comments, trailing commas, single quotes, and JavaScript object literals are not valid JSON.
No. Strings, numbers, booleans, null, and nested values are preserved exactly as JSON values.
No. Array items remain in their original order; only object keys inside them are sorted.
Yes. Every object is sorted recursively, including objects nested inside arrays.
Use it to make object-key order predictable before code review, snapshot comparison, or storing generated JSON in version control.
Sorting a translation object puts account, billing, and profile keys in a stable order for a smaller diff.
Object keys can be reordered safely in JSON, but array items retain their original order because that order may be meaningful.
JSON
AvailableFormat, validate, minify, and sort JSON locally.
JSON
AvailableCompare two JSON documents and spot structural differences.
JSON
AvailableRemove nonessential whitespace from JSON documents.