Skip to content
Jellykit

JSON Unflatten

Unflatten dot-notation JSON keys like user.address.city back into nested objects and arrays. Supports custom separators and [0] indexes. Free and in-browser.

Runs in your browser. Nothing is uploaded.

About JSON Unflatten

JSON Unflatten does the reverse of flattening: keys such as user.address.city are split on the separator and rebuilt into nested objects. Numeric path segments (roles.0, roles[1]) become arrays, unless you turn that off.

It is useful for turning a flat translation file, a spreadsheet export or form data back into the structured JSON an app expects. Arrays of flat records are unflattened item by item.

How to use JSON Unflatten

  1. Type or paste your text into the input box. Press Sample to see an example.
  2. Adjust the options. The result updates as you type.
  3. Copy the result, or press Use as input to chain another transformation.

Frequently asked questions

Why did a key become an array?

Its next path segment was a number. Untick Numeric keys become arrays to keep them as object keys.

Does it accept bracket indexes?

Yes. items[0].name and items.0.name produce the same result.

Is JSON Unflatten free and private?

Yes. JSON Unflatten is completely free with no sign-up. Everything runs in your browser, so whatever you type or paste never leaves your device.

See all data tools →