Prepare and process
JSON Unflattener rebuilds nested objects and arrays from path-like keys and reports invalid input instead of silently guessing at malformed JSON.
- Use supported input
- Choose relevant options
- Run locally
- Review diagnostics
JSON Unflattener rebuilds nested objects and arrays from path-like keys and reports invalid input instead of silently guessing at malformed JSON. Useful for reversing flat key-value exports, reconstructing hierarchical data from spreadsheet imports, and restoring structured JSON from dot-notation paths.
JSON shape tools
JSON Input
Drag & drop supported
Unflattened JSON
Paste flat JSON on the left to unflatten.
JSON Unflattener rebuilds nested objects and arrays from path-like keys and reports invalid input instead of silently guessing at malformed JSON.
Reviewed: 2026-09-18
Reconstruct nested JSON structures from flat, dot-notation representations for data restoration and API preparation.
Step 1
Navigate to the JSON Unflattener from the tool registry. The interface presents an input area for your flat JSON data and displays the reconstructed nested output.
Step 2
Copy your flat, dot-notation JSON content and paste it into the input area. The tool validates the input format and prepares it for the reconstruction process.
Step 3
Verify that your flat JSON contains dot-notation keys like "user.name" or bracket notation like "items[0].id". The tool will parse these to rebuild the nested structure.
Step 4
Press the Unflatten button to execute the reconstruction. The tool parses the dot-separated keys, creates parent objects as needed, and builds the full nested hierarchy.
Step 5
Examine the reconstructed nested JSON in the output area. Verify that all objects, arrays, and data types are correctly restored and match the intended structure.
Step 6
Use the copy button to place the nested JSON on your clipboard, or click the download button to save the file as a .json document for use in your applications.
Consequence: Keys like 'a.b' are ambiguous — is it one key with a dot or two nested levels?
Fix: Use bracket notation ['a.b'] for keys that literally contain dots to avoid nesting confusion.
Consequence: Flat representations may lose array index information, making perfect reconstruction impossible.
Fix: Use indexed bracket notation (arr[0].field) when flattening to preserve array positions.
Consequence: Applying unflatten to nested data produces unexpected double-nesting.
Fix: Verify your input is actually flat before applying unflatten.
JSON Unflattener rebuilds nested objects and arrays from path-like keys and reports invalid input instead of silently guessing at malformed JSON.
Compare the rebuilt structure against the original flat keys before persisting the nested object.
Round-trip the rebuilt object through JSON Formatter, or export it with the JSON to CSV converter.
This example verifies JSON Unflattener's primary behavior without uploading data.
JSON Unflattener reverses the flattening process by taking a flat, dot-notation JSON object and reconstructing the original nested structure. It parses dot-separated keys like "user.address.city" and rebuilds the hierarchy into proper nested objects and arrays.
No. All reconstruction processing happens locally within your browser sandbox. Your JSON data never leaves your device, ensuring complete privacy and confidentiality of your information during the entire unflattening process.
Paste your flat, dot-notation JSON into the input area and click Unflatten. The tool parses the dot-separated keys, creates the appropriate parent objects, and reconstructs the full nested hierarchy as output.
The tool supports standard dot notation with periods as separators, as well as bracket notation for array indices such as "items[0].name". It correctly parses both formats and reconstructs the appropriate data structures.
Yes. When the unflattener encounters bracket notation like "items[0]" or sequential numeric keys, it correctly reconstructs them as proper JSON arrays with elements in the correct order and indices.
Yes. The tool handles mixed structures containing both objects and arrays at different levels, correctly reconstructing the complex hierarchy. It preserves the original data types and relationships between all elements.
Yes. After reconstruction, you can copy the nested JSON to your clipboard using the copy button. You can also download the result as a .json file for use in APIs, configuration files, or data processing.
Yes. The tool validates the flat JSON input to ensure it contains properly formatted dot-notation keys and valid values. Any formatting issues are reported with clear error messages for easy correction.
Yes. The unflattener produces valid, properly nested JSON that follows the JSON specification. The output can be used directly in any JSON parser, API, or configuration system without further modification.
Keys containing literal dots are ambiguous. Use bracket notation (parent["a.b"]) for keys with dots, or the tool assumes dots represent nesting levels.
JSON Unflattener processes input and produces output inside this browser. The tool does not upload tool data. Browser capabilities such as files, clipboard, camera, Canvas, Web Crypto, workers, or downloads are used only after the workflow or an explicit user action requires them.