Unflatten JSON
Take a flat JSON object with path-style keys and rebuild the nested objects and lists they describe. It runs in your browser, so your data stays on your device.
- No credit card
- Never touches a server
- Dot or bracket lists
- Custom separator
- Runs on your device. Files are never uploaded.
- Free and unlimited. No sign-up, no watermark.
JSON unflatten in three steps
No account, no email, no waiting for an upload.
- STEP 01
Paste the flat JSON
Provide an object with keys such as user.name, or a list of such objects.
- STEP 02
Match the key style
Set the separator and choose whether lists look like items.0 or items[0].
- STEP 03
Copy the nested JSON
Objects and lists are rebuilt, with your chosen indent.
What JSON unflatten does, and what it doesn't
We'd rather tell you up front than surprise you after the download.
What you get
- Objects and listsNumeric positions become array items, so tags.0 and tags.1 turn back into a list.
- Both list notationsRead items.0.name or items[0].name, whichever your source uses.
- Custom separatorsRebuild from underscores, slashes or any text you flattened with.
- Works on lists of recordsIf you paste a list of flat objects, each one is rebuilt separately.
- Sparse lists are paddedIf a list has gaps, such as [0] and [5], the missing positions are filled with null.
Good to know
- Needs a consistent styleA mix of separators in one file will not be understood. Make the keys uniform first.
- Conflicting keysIf one key is a plain value (a) and another goes deeper (a.b), only one can survive, depending on which comes last. Rename one of them.
- Objects with numeric keysIn dot style, an object whose keys are exactly 0, 1, 2 becomes a list. Use bracket style to keep numbered objects as objects.
Your data never leave your device
The tool runs inside your browser instead of on our servers, so there is nothing to upload, store or delete afterwards.
Typical online tool upload
Your file travels over the internet, sits on someone else's computer for a while, and you wait for the upload and the download.
Mediaextractr no upload
The tool loads into your browser once, then works on your file locally. Nothing is sent, so nothing can leak.
When people use JSON unflatten
Restore translation files
Turn flat i18n keys back into the nested structure your app reads.
Rebuild config from env style
Convert dotted settings into nested JSON for a service.
Reshape a spreadsheet export
Pair with CSV to JSON when column names use dots.
Round-trip checks
Flatten with JSON flatten, edit, then unflatten, to change many leaf values easily.
Mediaextractr vs typical upload tools
| MediaextractrPrivate | Typical upload tools | |
|---|---|---|
| Your file is uploaded | Never | Yes |
| Sign-up needed | No | Often, after a few files |
| Daily file limit | None | Often 1–2 free files |
| Watermark | Never | Sometimes |
| Wait for upload & download | No | Yes |
| Speed on very large files | Depends on your device | Depends on their servers |
How keys are read
A key like user.address.city is split at each separator. The tool creates user, then address inside it, then sets city. Keys that end in a number, such as tags.1, mean a list position.
With the bracket style, items[2].name is read as the third entry of items, and its name field.
Getting a clean result
Use the same separator and list style that flattened the data. A few details matter:
- If your keys contain dots, choose a different separator before flattening.
- Check the shape in the JSON tree viewer.
- Format or sort the result with the JSON formatter.
- If the input is not valid JSON, the JSON validator shows where.
Rebuilding a config safely
After editing many flat values, unflatten and compare the result with the original using JSON compare. You will see exactly which nested values changed. If you get a list where you expected an object, check that its keys are not plain numbers, because 0, 1, 2 keys in dot style are treated as list positions.
Questions, answered
How do I convert dot notation to nested JSON?
Paste the flat object and run it. Keys are split at each dot and rebuilt as nested objects and lists.
Can it handle arrays?
Yes. Positions like .0 or [0] in a key become list items.
Are my settings uploaded when I rebuild them?
No. The nesting is rebuilt by code running in your browser, so hostnames and credentials in the keys never leave it.
What if I used a different separator?
Enter the same separator in the Separator box, such as an underscore or a slash.
What happens to missing positions in a list?
Gaps are filled with null, so the list keeps the positions you gave.
Does it run on mobile devices?
Yes. It runs in current browsers on phones and tablets. Paste the flat JSON and copy the nested result.