Unflatten JSON
Reconstruct nested JSON structures from flat dot-notation key-value pairs. Fast, free, and fully client-side.
How the Unflatten JSON Works
Rebuilds nested JSON from a flat object whose keys are dot-joined paths, the reverse of the Flatten JSON tool. Each key is split on dots into nested objects, and numeric segments produce arrays. The input must be one JSON object, otherwise the tool reports an error. Processing runs in your browser and the file is never uploaded.
Usage Example
Rebuilding a nested settings tree from a flat export of dot-separated configuration keys.
Frequently Asked Questions
What input does unflattening require?
The input must be a single JSON object. A top-level array, string, number, or null is rejected with the error "Input must be a flat JSON object (key-value pairs)." Keys and values are read exactly as they appear in the object.
How are numeric key segments handled?
A segment made only of digits, such as the 0 in tags.0, creates an array at that level instead of an object. Keys that share a prefix are merged, so user.name and user.age end up inside one user object.
What happens to keys that contain literal dots?
Every dot is treated as a separator, so a key with a dot in its own name is split into extra nesting levels. Rename such keys before unflattening if their original names must survive the round trip.
Browse more
See all JSON tools.
