JSON Sorter

Sort JSON object keys alphabetically and recursively, with an option to leave arrays untouched, and clear position-aware errors for invalid JSON.

Sort JSON object keys recursively with position-aware errors.

Sorted JSON appears here.

Output ready, 24 B

How to use JSON Sorter

  1. Paste your JSON.
  2. Choose whether arrays should be left untouched.
  3. Copy the sorted JSON.

Frequently asked questions

Does it sort nested keys?

Yes. Keys are sorted recursively.

Are arrays reordered?

By default arrays keep their order; an option can sort primitive arrays.

What happens on invalid JSON?

An error message with line and column is shown.

Is my data uploaded?

No. Processing is local.