JSON Key Sorter

Sort JSON object keys alphabetically, naturally, or by array field.

Support
Works Offline
Privacy First
No Login
No API

JSON input

Sorted JSON

JSON
{
  "Apple": 2,
  "banana": 3,
  "item10": false,
  "item2": true,
  "nested": {
    "a": 2,
    "z": 1
  },
  "zebra": 1
}

About the JSON Key Sorter

Reorder JSON object keys ascending, descending, case-insensitively, or naturally, optionally recursively through nested structures, plus optional sorting of primitive or object arrays by a chosen key.

Examples

Sort object keys

JSON{"b":1,"a":2}

Output

JSON{
  "a": 2,
  "b": 1
}

Keyboard shortcuts

  • Copy the main outputCtrl / ⌘ + Shift + C
  • Download the resultCtrl / ⌘ + S
  • Share this toolCtrl / ⌘ + Shift + S
  • Reset the inputsAlt + R
  • Open the tool search paletteCtrl / ⌘ + K

Related tools

Frequently asked questions

Comments

No login needed. Comments appear after a quick review.

Protected by an on-site captcha — no third-party trackers.

Optional: get an alert when your comment is published or replied to, plus new tool announcements. No sign-up.

Loading comments…

Version 1.0.0 · Updated 2026-08-10 · Runs entirely in your browser