Sort JSON

Input
Output

Sort JSON

Order object keys alphabetically at every level, which makes two JSON files much easier to compare. Name a field to sort arrays of objects by it, too.

How do I use the Sort JSON?

  1. Paste JSON.
  2. Optionally name a field, like price, to sort arrays by.
  3. Copy the sorted JSON.

What does the Sort JSON do?

  • Keys sorted at every level
  • Arrays sorted by any field
  • Ascending or descending

Frequently asked questions

Does sorting change my data?
Only the order of keys (and arrays, if you ask). Values stay the same.
Is my data uploaded?
No. Bracely runs entirely in your browser, so nothing you paste or open leaves your device.

More JSON tools

Bracely has 108 JSON tools in one page. Related ones:

Runs entirely in your browser. Nothing you paste is uploaded. Made by Saurabh Pagrut · About · Privacy policy
Last updated · Version 6.7 · Changelog
Saurabh Pagrut on GitHub · LinkedIn · X · YouTube · Instagram