JSON Unflattener
Rebuild nested JSON from flat dotted or bracketed keys, turning numeric segments into arrays.
Rebuild nested JSON
Rebuilt: —
How to use the JSON Unflattener
- Paste flat keys in dot or bracket form, or a query string.
- Tick or untick coercion to control number and boolean handling.
- Press Rebuild to get the nested JSON document.
Features
- Dot and bracket key support
- Numeric segments become arrays
- Query strings accepted directly
- Optional number and boolean coercion
Advertisement
Frequently Asked Questions
Common questions about the free online json unflattener.
Paste flat keys such as user.address.city with values and press Rebuild to get the nested
structure back.
Dot notation, bracket notation and mixed forms like user.address[0].city are all split into
path segments.
Any path segment that is a whole number becomes an array index, so roles[0] and roles[1]
produce a real array.
Yes. If the input is not JSON, it is read as ampersand separated key value pairs, with plus
signs treated as spaces.
With coercion on, values that look like numbers, booleans or null are converted to those JSON
types instead of staying strings.
The tool waits quietly until there is something to rebuild, and empty keys are skipped rather
than creating odd nesting.
No. Every key is parsed and rebuilt locally in your browser, so nothing you paste is
transmitted.
Yes. There is no fixed depth limit, so nested paths of any practical length rebuild into
nested objects and arrays.
Yes. The unflattener is free to use with no account, no limits and no tracking.
Last updated: October 10, 2026