Home
Tom Utilities

JSON Sorter

JSON Tools

Sort object keys alphabetically at every level and optionally sort arrays.

Input

Result

How to use

Sorting keys

Press Sort to order every object key alphabetically, recursively.

  1. Paste JSON into the input editor.
  2. Press Sort.
  3. Copy the ordered document.

Frequently asked questions

Are arrays reordered?

Arrays keep their order by default because array order is usually meaningful.

Is the comparison case sensitive?

Keys are compared using a locale aware, case insensitive ordering.