JSON flatten and unflatten
Flatten JSON into reversible JSON Pointer paths while preserving arrays, empty containers and data types.
Runs on your device · No upload
How to use it
- Paste JSON or choose a UTF-8 JSON file.
- Flatten into the typed JSON Pointer format, or restore a document previously created here.
- Copy or download the result and inspect the path/type records.
Paths that do not collide
Dotted-key maps can confuse a literal key such as "a.b" with an object inside a. This tool uses JSON Pointer: slash separates path segments, ~1 represents a literal slash, and ~0 represents a literal tilde. The empty pointer identifies the root.
Container types are part of the export
Each node records whether it is an object, array or scalar value. Empty objects, empty arrays, null, numeric object keys and nested arrays remain distinct. Restoration requires this typed format; an arbitrary dotted-key object is not enough to recover those distinctions.
Object key order and whitespace are presentation details and can change. Duplicate source keys and numbers that would change during serialization are rejected.
Standards and references
Your input stays in this tab
Files and pasted values are processed in your browser. They are not uploaded, stored in your URL or saved to browser storage. Download the result if you want to keep it. CSV exports are limited to 1,000,000 cells and 20 MiB; large or sparse tables must be split. The site records aggregate page requests as described in the privacy policy.
More tools
ICS to CSV converter
Expand recurring calendar events into a date-bounded CSV, with timezone and conversion-loss details.
JSONL to CSV converter
Convert newline-delimited JSON with heterogeneous columns, invalid-line reporting and typed cell values.
VCF to CSV converter
Convert UTF-8 vCard 3.0 and 4.0 contacts, preserving repeated fields and identifying omitted properties.