JSON Tools

JSON Sorter

Recursively sort JSON object keys while preserving array order and values.

Browser workspace

JSON Sorter

⌘ / Ctrl + Enter to run
ImportantJSON object key order is generally not semantic. Sorting is intended for readability and consistent comparisons.
Privacy-first processing

Your data stays private. All processing happens locally in your browser. Nothing is uploaded to our servers.

Built for real work

Why use JSON Sorter?

Recursively sort JSON object keys while preserving array order and values. Processing stays in the current browser tab so the source remains private.

Recursive object-key sorting
Stable array ordering
Ascending or descending output

How to use it

  1. Paste valid JSON.

  2. Choose sort direction and indentation.

  3. Select Sort JSON.

Common use cases

Normalize snapshots for comparison

Review large configuration objects

Example

{"z":1,"a":{"d":4,"b":2},"items":[{"y":2,"x":1}]}

Frequently asked questions

What does JSON Sorter do?

Recursively sort JSON object keys while preserving array order and values. Processing stays in the current browser tab so the source remains private.

Is my json input uploaded?

No. Your json input is processed locally by browser APIs and is never sent to DevTools Hub.

Can I use JSON Sorter without an account?

Yes. JSON Sorter is free, works without registration, and supports modern desktop and mobile browsers.

Explore more developer tools