Private by default

Recursive JSON Key Sorter

Normalize object-key order for review, fixtures, and stable diffs.

Your data stays in this browser
Input JSONJSON
UTF-8Ln 1, Col 1
ResultJSON
UTF-8
Loading…
Browser-only autosaveInputs and settings stay saved only in this browser and return after a reload. Turn on Clear saved data to keep this tool session-only.
Your data stays in this browser
InstantNo server round trips
PrivateBrowser-side processing
AuditableDocumented semantics
PortableCorrectly typed downloads
Category

JSON Sorter: How to use this tool

Sort object keys recursively while preserving array order and JSON value types.

Normalize object-key order for review, fixtures, and stable diffs.

Open guide and examples

How to use this tool

  1. Paste JSON, upload a local file, or load a CORS-enabled public URL.
  2. Optionally choose indentation in Advanced, then run Sort object keys.
  3. Review the result, then copy it or download it with the correct file type.

Example to try

Input JSON
{
  "project": "jsonformatters.org",
  "status": "ready",
  "features": [
    "format",
    "validate",
    "convert"
  ],
  "settings": {
    "indent": 2,
    "sortKeys": false,
    "localOnly": true
  },
  "documents": [
    {
      "id": 101,
      "name": "launch-config.json",
      "valid": true
    },
    {
      "id": 102,
      "name": "sample-data.json",
      "valid": true
    }
  ],
  "lastError": null
}
Result
{
  "documents": [
    {
      "id": 101,
      "name": "launch-config.json",
      "valid": true
    },
    {
      "id": 102,
      "name": "sample-data.json",
      "valid": true
    }
  ],
  "features": [
    "format",
    "validate",
    "convert"
  ],
  "lastError": null,
  "project": "jsonformatters.org",
  "settings": {
    "indent": 2,
    "localOnly": true,
    "sortKeys": false
  },
  "status": "ready"
}
Learn

Frequently asked questions

Does this tool upload my JSON?

No. The transformation runs in your browser. URL import contacts only the address you explicitly enter.

What happens when the JSON is invalid?

The editor marks the likely location and keeps stale output out of the result pane.

What does JSON Sorter produce?

It alphabetizes every object while leaving array positions unchanged.

What limitation applies to JSON Sorter?

Sorting changes textual key order, which may create a larger diff even though JSON object meaning is unchanged.