Private by default

Lossless JSON Pointer Flattener

Represent every object, array, and leaf with a pointer entry that can distinguish numeric object keys from array indexes.

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 Flattener: How to use this tool

Flatten valid JSON into an unambiguous map keyed by escaped RFC 6901 JSON Pointers while preserving container and value types.

Represent every object, array, and leaf with a pointer entry that can distinguish numeric object keys from array indexes.

Open guide and examples

How to use this tool

  1. Paste JSON, upload a local file, or load a CORS-enabled public URL.
  2. Choose indentation and run Flatten with JSON Pointers.
  3. Review the result, then copy it or download it with the correct file type.

Example to try

Input JSON
{
  "profile": {
    "display/name": "Ada",
    "role~level": "admin"
  },
  "tags": ["json", "tools"],
  "empty": {}
}
Result
{
  "": {
    "kind": "object"
  },
  "/empty": {
    "kind": "object"
  },
  "/profile": {
    "kind": "object"
  },
  "/profile/display~1name": {
    "kind": "value",
    "value": "Ada"
  },
  "/profile/role~0level": {
    "kind": "value",
    "value": "admin"
  },
  "/tags": {
    "kind": "array",
    "length": 2
  },
  "/tags/0": {
    "kind": "value",
    "value": "json"
  },
  "/tags/1": {
    "kind": "value",
    "value": "tools"
  }
}
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 Flattener produce?

It emits a JSON object whose keys are RFC 6901 pointers and whose kind envelopes preserve objects, arrays, empty containers, and primitive values.

What limitation applies to JSON Flattener?

The map preserves parsed JSON structure, not source whitespace, object-key order, duplicate names, or the original spelling of numbers.