sort

Sort JSON

sort object keys recursively

Live output enabled
Ready
Example output:
{
  "a": [
    {
      "a": 1,
      "b": 2
    }
  ],
  "m": 3,
  "z": {
    "a": 1,
    "d": 4
  }
}

About Sort JSON

Sort JSON helps you sort object keys recursively directly in your browser with no backend dependency.

Use Cases

  • Run Sort JSON while debugging API responses and config snippets.
  • Share normalized output from Sort JSON with teammates quickly.
  • Use Sort JSON as part of a repeatable local text-processing workflow.

Examples

Sample Sort JSON transformation output.

Input

{"z":{"d":4,"a":1},"a":[{"b":2,"a":1}],"m":3}

Output

{
  "a": [
    {
      "a": 1,
      "b": 2
    }
  ],
  "m": 3,
  "z": {
    "a": 1,
    "d": 4
  }
}

Idempotent rerun example for Sort JSON when applicable.

Input

{
  "a": [
    {
      "a": 1,
      "b": 2
    }
  ],
  "m": 3,
  "z": {
    "a": 1,
    "d": 4
  }
}

Output

{
  "a": [
    {
      "a": 1,
      "b": 2
    }
  ],
  "m": 3,
  "z": {
    "a": 1,
    "d": 4
  }
}

FAQ

Does Sort JSON send my data to a server?

No. Execution happens in your browser tab.

Can I share a direct URL for Sort JSON?

Yes. Every tool has its own indexable route under /tools/<slug>.