Skip to content

JSON Transformer

Unflatten JSON — Restore Nested Objects and Arrays

Rebuild nested JSON from path-value keys, including array indexes and escaped property names.

100% In-Browser & PrivateNo uploadsFree forever

Unflatten a JSON object of path-value pairs into nested objects and arrays. A dot separates path segments by default; unescaped numeric segments create array positions, while object keys that are numeric are escaped.

The converter detects paths that overlap or disagree about whether a node is an object or array instead of silently overwriting values. Sparse array indexes become `null` entries when the result is serialized as JSON.

Use the same separator as the flattening step. A backslash escapes separator characters in keys. All processing happens locally in your browser.

Path-value pairs restored to nested JSON

{
  "user.profile.name": "Ada"
}

→

{
  "user": { "profile": { "name": "Ada" } }
}

How to unflatten JSON

  1. 1Paste a JSON object whose keys contain flattened paths, or load the sample.
  2. 2Set the same separator that was used when flattening the data.
  3. 3Select Unflatten JSON. Conflicting paths are reported rather than overwritten.
  4. 4Copy or download the restored nested JSON.

Why MyJSONPal is different

Privacy-first, by design

All parsing, validation and conversion runs in your browser. Your data is never sent, logged, cached or sold — close the tab and it is gone.

Fast, even on huge files

Heavy processing is offloaded to a Web Worker, so multi-megabyte documents are handled without freezing the interface.

No accounts, no limits

There is nothing to sign up for and no usage quota. Paste, format, convert and download as often as you like.

Frequently asked questions

How are arrays reconstructed?

A level containing unescaped numeric path segments becomes an array. For example, `items.0.id` reconstructs an array at `items`.

What if paths conflict?

The tool reports an error if a path tries to replace a parent value, assigns a value twice, or mixes object keys and array indexes at the same location.

How are gaps in array indexes handled?

Missing indexes are sparse in memory and serialize as `null` entries in JSON. Extremely large indexes are rejected to avoid creating unexpectedly large arrays.

Do I need the same separator used to flatten the data?

Yes. Use the original separator. Backslashes in paths escape literal separator characters and numeric object keys.

Is my JSON uploaded?

No. The input is parsed and transformed locally in your browser using a Web Worker.