ToolJovia
Data

JSON Key Sorter

Sort object properties throughout a JSON document while retaining array order.

✓ Browser-local processing

Loading tool…

How to use JSON Key Sorter

Normalize property ordering before comparing configuration files or reviewing generated data. Sorting applies recursively to objects, including objects inside arrays, without reordering the arrays themselves.

  1. Paste JSON containing objects to reorder.
  2. Select Run tool to sort property names recursively.
  3. Review the result, then copy it or download the generated file.

Good to know

  • Up to 100,000 input characters, 10,000 values, and 40 nesting levels. Standard JSON numbers use JavaScript precision; duplicate keys retain their last value.
  • Uses JavaScript key ordering: integer-like properties appear numerically before other keys. Remaining keys use UTF-16 lexical order. This is not a cryptographic canonicalization scheme.

Common questions

Can I use this for canonical JSON signatures?

No. Signature formats need their exact canonicalization specification, including number and string handling.

Keep going with related tools

All data →