Online JSON Unflatten Tool

Reconstruct deeply nested JSON structures from flat, dot-separated key-value objects.

Runs locally 0 lines • 0 bytes Ready
Tip: drop a file anywhere on the page
Input
Paste, type or drop a file
Result
Updates as you type
// Output will appear here…
About this tool

How the JSON Unflatten works

Unflatten dot-delimited key-value objects back into deep nested JSON hierarchies. Reconstruct nested objects and arrays effortlessly.

How to use the JSON Unflatten

  1. Paste a flat object with dot-separated keys.
  2. Choose the separator used in the keys.
  3. Copy the rebuilt nested JSON.

JSON Unflatten example

Input
{"user.name":"Ali","user.address.city":"Pune"}
Result
{
  "user": {
    "name": "Ali",
    "address": { "city": "Pune" }
  }
}

When to use it

  • Rebuilding objects after editing flat data in a spreadsheet.
  • Converting i18n translation keys such as home.title into nested files.
  • Turning form field names into nested request bodies.

Tip: Numeric key segments such as items.0.name are rebuilt as arrays.

Reconstruct Nested Objects

Expands dot-delimited keys (e.g. "user.profile.name") back into nested JSON objects.

Automatic Array Detection

Detects numeric path segments (e.g. "tags.0", "tags.1") and converts them back into JSON arrays.

Beautified Output

Outputs formatted, indented JSON ready for configuration files and API payloads.

100% In-Browser

Fast, secure in-browser execution with zero network transmission.

FAQ

Common questions

What is JSON unflattening?

Unflattening takes a single-level object with dot-separated keys and expands it back into a nested tree structure.

Will numeric keys become arrays?

Yes, paths containing consecutive numeric keys (like "users.0.name") are restored as array elements.

What if a key contains dots that shouldn't be split?

Standard dot-notation unflattening splits on every dot separator to build object depth.

Is there a size limit?

No artificial limit; processing occurs entirely in local browser memory.