Flat JSON to Nested Converter

Convert dot-notation flat JSON back into a deeply nested object structure. Perfect for restoring API-friendly formats from flat data.

Nested JSON output will appear here...

What Is JSON Unflattening?

JSON unflattening converts dot-notation flat keys back into nested object structures. For example, {user.name: "Alice"} becomes {user: {name: "Alice"}}. This is essential when restoring API-compatible formats from flat data.

Unflattening is useful for:

How to Unflatten JSON Online

  1. Paste flat JSON: Enter your dot-notation key-value pairs.
  2. Click Unflatten: Restore the nested object structure.
  3. Review nesting: The output shows the restored hierarchy.

Frequently Asked Questions

What key separators are supported?

Dot notation (.) and bracket array notation (e.g., items[0]) are both supported.

Can nested arrays be restored?

Yes. Numeric keys in bracket notation are converted back to array elements.

Is this tool safe?

Yes. Processing is 100% client-side in your browser.

Related Tools