JSON Unflatten
Paste flat dot-notation JSON and instantly expand it back into a deeply nested object.
Use the JSON Unflatten
Flat JSON Input
Nested Output
Paste flat JSON and click Unflatten
Copied!
Summary
JSON Unflatten is the reverse of a JSON flattener: it takes a single-level object whose keys use dot notation (e.g. user.address.city) and reconstructs the original nested hierarchy. It also handles bracket-index array notation (e.g. items[0].name), automatically creating proper JavaScript arrays. All processing happens in your browser — your data never leaves your device.
How it works
- Paste or type your flat, dot-notation JSON into the input panel.
- Choose the separator used in the keys (default is a dot).
- Click Unflatten to rebuild the nested object.
- Review the expanded nested structure in the output panel.
- Click Copy Output to copy the result to your clipboard.
Use cases
- Reverse output from a JSON flattener back to its original form.
- Reconstruct nested config objects from flat environment variable maps.
- Convert spreadsheet column headers back to nested API request bodies.
- Rebuild nested log payloads from flat search-index documents.
- Debug dotted-path key mappings in template engines or ORMs.
- Prepare flat database row data for nested JSON API responses.
Frequently Asked Questions
Last updated: 2026-05-23 · Reviewed by Nham Vu