The quick answer
Paste a flat JSON object whose keys are dot-paths — user.address.city — and this tool rebuilds the nesting: each dot becomes one level, the leaf value lands at the end of its path, and intermediate objects are created as needed. A flat user.name key becomes a nested user object. Output is pretty-printed with 2-space indent, computed locally — nothing uploads.
What the JSON Unflatten actually does
The JSON Unflatten is the exact inverse of dot-path flattening: it takes a flat object whose keys read like user.address.city and rebuilds the nested document those keys came from. "Browser-based" is the important part: the rebuild runs on your machine with JavaScript, so configs, exports, and customer data are never uploaded, never stored, and never seen by anyone but you. There is no network request to intercept — the page keeps working with your Wi-Fi off.
Day to day it could not be simpler: paste the flat object and the nested version appears instantly — no calculate button, no page reload, no options, because a given set of dot-paths has exactly one correct reconstruction. The output is pretty-printed with 2-space indentation, one level per nesting depth, ready for a config file, an API payload, or a document store. When you are done, close the tab and everything you entered is gone.
The JSON Unflatten belongs to our json, csv & data tools collection, and it pairs naturally with the CSV to JSON Converter and JSON to CSV Converter — tools built to chain together in real workflows rather than live as isolated one-offs.
Unflattening JSON, step by step
Here is the complete workflow for the unflatten json, from empty input to a result you can copy and trust. Every step is optional except the first two.
Load an example or paste your own data
The Load example button fills the input with a flat dot-path sample; otherwise paste your own flat JSON object.
Watch the output update
There are no options — a set of dot-paths has exactly one correct reconstruction, so the output panel updates live on every keystroke.
Review the output panel
The result is the nested document: one object level per dot segment, pretty-printed with 2-space indentation.
Copy, download or continue
Copy puts the nested JSON on your clipboard; Download writes it as a file; the output chains cleanly into the formatter or the CSV converter.
Verify with the worked example
The methodology section below shows the key-splitting walk with a worked example you can check by hand.
Clear when done
Clear wipes the input instantly. Because processing is local, there is no history, no server copy, and nothing to delete later.
That is the entire workflow. Because every intermediate result is visible and the unflatten json documents its own method below, you never have to trust a black box — you can check the working at any point.
How dot-paths become nesting again
The rebuild is a mechanical walk, key by key. Each key is split on its dots; the first segment becomes a top-level object, the second a nested one inside it, and so on until the last segment, which receives the value. Intermediate objects are created wherever they do not exist yet, and when a later key shares a prefix with an earlier one — user.name and user.address.city both start with user — the existing object is reused, so the tree assembles itself from however the keys happen to be ordered.
A worked example shows the whole walk. Input: {"user.name":"Ada","user.address.city":"NYC","user.address.zip":"10001"} — 3 flat keys. Output: a nested document with 1 top-level key, user, holding name plus an address object with city and zip — pretty-printed at 2 spaces per level. Flatten that output again and you get the 3 input keys back, which is the round-trip property that makes the pair of tools safe to use as a pipeline.
With JSON Unflatten specifically: a detail worth knowing: JSON became a standard (ECMA-404, RFC 8259) in 2013 — a decade after it had already displaced XML for APIs.
A worked example you can check by hand
The examples on this page come from the same rebuilding code the tool runs, not from a keyboard, so they double as regression checks — if the walk ever changed, these outputs would change with it. The fastest self-audit: count the flat keys in your input and the leaf values in the output; unflattening moves values into a tree, it never creates, drops, or reorders them.
Each example is also a test fixture. A change to the unflatten json computation would have to contradict the printed numbers first, which is exactly how it gets noticed.
Who actually unflattens JSON
Who actually uses an unflatten json day to day? These five scenarios are drawn from the jobs the tool most often serves.
Data analysts — a CSV round-trip flattens nested API data into dotted column names; restoring the document for re-upload or for a JSON consumer means putting the nesting back. One paste rebuilds it, and the customer data inside never leaves the browser.
Backend and platform developers — flat key-value stores (ENV files, Redis dumps, feature-flag maps) are the standard shape for configuration, but most tools want nested JSON. Converting the flat map here is the two-minute bridge, with no repo contents uploaded to do it.
DBAs and data engineers — flat rows exported from document databases lose their structure to dot-path column names. Rebuilding the documents before loading them back is the mirror image of the flatten step, and both directions run locally on this site.
QA engineers — fixtures captured as flat dot-path maps (from logs, spreadsheets, or a flatten pass) need their original shape back for the tests that consume them. One paste restores the fixture, and the round-trip check against the original document is built into the method.
Productive impatience is a legitimate design target: the scenario wanted output, not engagement. JSON Unflatten obliges by getting out of the way.
What the tool guarantees
The table summarizes what the unflatten json promises and how it behaves — the same commitments every tool on this site keeps.
| Aspect | This tool |
|---|---|
| Processing | 100% client-side (JavaScript in your browser) |
| Signup required | No — no account, no email, no cookies for consent-free use |
| Data uploaded | Never — inputs stay on your device by architecture |
| Speed | Instant, live recomputation on every keystroke |
| Mobile support | Full — touch-optimized, responsive layout |
| Offline use | Works after first load (except live-data tools, which say so) |
| Cost | Free, funded by clearly-labelled advertising away from controls |
| Documentation | Full methodology, worked examples and FAQ on this page |
What the table promises for JSON Unflatten, the page delivers — row for row, live and testable. If your minute of checking finds a mismatch, that gap gets closed.
Honest limits — what unflattening does not do
Every computation carries caveats, and this one is no exception. Here are the unflatten json's accuracy guarantees — and its documented boundaries.
For JSON Unflatten, the specifics matter: the engine choices are deliberate. JSON is validated by the platform's native engine — the one the browser already uses for every API call — which makes the result exact: parse, or fail with a character position; formatting re-serializes with controlled indentation. CSV goes through the RFC 4180 state machine, walking quotes, escaped quotes, embedded newlines and configurable delimiters character by character, because that is where split-on-comma implementations quietly destroy data. It is the level of care behind every job on these pages, JSON Unflatten included.
- Numeric keys stay objects — 0.id rebuilds as a "0" object, not an array element; JSON gives no way to infer arrays from key names, so indexed data needs a manual restructure afterwards.
- Conflicting prefixes fail — one key making user a string while another expects user.name is a contradiction; the tool errors out instead of choosing a winner, so no data is silently lost.
- Keys containing literal dots are ambiguous — a key named config.json is indistinguishable from nesting, which is the same caveat flatten carries in reverse. Keep dots out of source key names.
Where the math yields an estimate, you see the label where you see the number from JSON Unflatten — population averages and rule-of-thumb factors are never laundered into false exactness.
Your flat data never leaves the browser
This matters beyond principle: the inputs people bring to unflatten json-style tools include drafts, documents, credentials, financial figures and health numbers — exactly the categories that should never cross an unnecessary network boundary. Local processing is not a feature here; it is the architecture.
A jq one-liner, a script, or this tool
You have options for unflatten json-style work. Here is how the mainstream alternatives stack up — including where they legitimately win.
| Alternative | Why people pick JSON Unflatten instead |
|---|---|
| Server-side converters | Identical output without uploading customer data or credentials to a third party — and no file size quota |
| jq and command-line tools | Zero install and a visual tree for exploration; the command line still wins for scripted pipelines |
| IDE plugins | Works in any browser on any machine — including the locked-down laptop in the meeting room |
Read the columns as a trend: depth belongs to the suites, immediacy belongs to JSON Unflatten. The average unflatten json job is a one-shot, so immediacy usually carries the day.
Getting clean nesting out of flat JSON
One-off or daily driver? For JSON Unflatten that difference is a few small habits, collected in the playbook below.
- Bookmark the unflatten json page — repeat users save real time when the tool is one keystroke away, and the page loads instantly from cache on return visits.
- Load the example first on any unfamiliar tool: a known input with a known output validates your understanding in ten seconds before you trust it with real data.
- Chain tools when a workflow needs more than one step — the related-tools links below are ordered by what people typically combine, and outputs copy cleanly between them.
When something behaves unexpectedly, the causes are almost always one of these:
- Output kept its flat shape — the input keys had no dots, so each key already is a complete path; there is nothing to rebuild. Check the source for underscore or slash separators instead.
- An error mentions invalid JSON — the input failed to parse before unflattening began; read the character position in the message and fix the syntax, then re-paste.
- Numbers where you expected strings — numeric-looking values were stored unquoted in the flat source, so the rebuild keeps them as JSON numbers; quote them in the input if type matters.
One more thing worth knowing: the contact page is staffed by the team that builds JSON Unflatten, and most reported defects are closed out within days.
Frequently asked questions
These are the questions people actually search about the unflatten json, answered directly. If yours is missing, the contact page takes feature and question requests.
What does the JSON Unflatten do with dot-path keys?
It turns each dot into a level of nesting: user.address.city becomes a user object containing an address object containing city. Intermediate objects are created as needed, and keys that share prefixes assemble into the same subtree rather than duplicating structure.
Is unflattening the exact reverse of flattening?
For objects without literal dots in their key names, yes — flatten then unflatten returns the original document, and the pair of tools documents that round-trip with worked examples. Arrays are the exception: flattening keeps them as values, so they survive unchanged in both directions.
Does the tool rebuild arrays from numeric keys?
No. A key like 0.id rebuilds as an object with the string key "0", not as an array element — JSON has no syntax for inferring arrays from key names. If your flat data came from an indexed array, restructure the result manually or keep it as keyed objects.
What happens when two paths conflict?
It fails loudly rather than silently dropping data. A key that wants user to be a plain value while another wants user.name to exist is a contradiction — the tool reports an error instead of guessing which path wins. Fix the source so each prefix is either a value or a subtree, never both.
Does the tool validate my JSON first?
Yes. Unflattening only runs after a successful parse by the browser's native JSON engine; invalid input returns the parser's error with a character position instead of output, so a trailing comma or single-quoted key is findable in seconds.
Do you store what I enter into the JSON Unflatten?
No. The parse and the rebuild run locally in your browser's JavaScript; nothing becomes a network request, and closing the tab erases it entirely. Configs and customer exports stay on your machine.
What is the maximum file size for conversion?
There is no server cap because nothing uploads — the limit is your device's memory. Flat objects with thousands of keys rebuild instantly; enormous pastes may make the tab sluggish but still finish.
Is the JSON Unflatten free to use?
Yes, and free means free: JSON Unflatten has no signup, no email gate and no usage meter. JSON Unflatten runs entirely in your browser, so each extra use costs this site nothing and costs you nothing either. Clear your cache and reload as often as the job requires.
Can I use the JSON Unflatten offline?
Yes, after the first load — the page's logic ships to your browser, so a previously loaded tab keeps rebuilding documents with the network off. No network, still working: that is the privacy model in one sentence.
Tools that chain with this one
These tools share the JSON Unflatten's workflow most often — the internal links exist because people genuinely chain them, not for keyword decoration.
- CSV to JSON Converter — Free csv to json converter that works instantly in your browser. Pairs naturally with this tool when your workflow needs the next step.
- JSON to CSV Converter — Free json to csv converter that works instantly in your browser. Pairs naturally with this tool when your workflow needs the next step.
- JSON Formatter & Validator — Free json formatter & validator that works instantly in your browser. Pairs naturally with this tool when your workflow needs the next step.
Nested again, round-trip verified
Every design choice here serves the same goal: the fastest trustworthy unflatten json on the web. Instant because it is local. Trustworthy because the method is documented with verifiable examples. Private because there is no server in the loop.
Break it, then tell us how: JSON Unflatten improves fastest when readers report the edge cases their real workflows generate.
Sources and further reading
- YAML 1.2 specification(yaml.org)
- W3C XML specification(w3.org)
- MDN: Working with JSON(developer.mozilla.org)
- RFC 8259 — the JSON specification (IETF)(datatracker.ietf.org)
- RFC 4180 — CSV format common definition(datatracker.ietf.org)
We cite primary sources (standards bodies, government agencies, official documentation) wherever they exist so you can verify every number on this page yourself.