Code Flick TechnologiesToolscodeftech.com

JSON Sort Keys

Sort object keys alphabetically (deep) for stable diffs and lockfiles. Arrays preserve their order.

100% in your browser. Files never uploaded.
{
  "address": {
    "city": "Doha",
    "zip": "11111"
  },
  "age": 30,
  "name": "Alice",
  "tags": [
    "b",
    "a",
    "c"
  ]
}

How to use

  1. 1
    Paste JSON
    Object keys are sorted alphabetically, recursively.
  2. 2
    Pick indent
    2 or 4 spaces.
  3. 3
    Copy
    Useful for stable diffs and lockfiles.

Related tools