Category: Developer tools
JSON Flattener
Flatten nested JSON into path = value rows, or rebuild it
Flatten nested JSON into path = value rows with dot and bracket notation like a.b[0].c, or rebuild nested JSON from those rows. Runs entirely in your browser on LocalTools.
5 rows
name = "Ada Lovelace" address.city = "London" address.country = "UK" skills[0] = "Analysis" skills[1] = "Mathematics"
Everything on this page is processed in your browser. Nothing is uploaded.
What this tool does
Deeply nested JSON is hard to scan, diff or paste into a spreadsheet one field at a time. This tool walks the document and, for every leaf value, prints the full path used to reach it, in the same dot/bracket notation used by most scripting languages, so users[0].email becomes one line you can search or copy. The reverse direction takes that same row format and rebuilds the nested object or array, creating each intermediate object or array as needed. Nothing is ever evaluated as code: paths are parsed as plain text.
How to use it
- Pick the direction first: Flatten reads a nested JSON document, Unflatten reads path = value rows.
- Paste your content into the input, or load the example to see the exact row format before you replace it with your own data.
- Check the output - one leaf value per line when flattening, rebuilt nested JSON when unflattening - then copy the whole result.
Privacy
This tool runs entirely in your browser. Your input is never uploaded, stored or shared — closing the tab removes it.
Frequently asked questions
- How do I use JSON Flattener?
- Three steps: choose Flatten or Unflatten, paste your nested JSON or your path = value rows (or load the example), then copy the flattened rows or the rebuilt JSON.
- Which inputs and options does JSON Flattener support?
- There is one option: the direction. Flatten accepts a nested JSON document and prints the full path to every leaf using dot and bracket notation such as users[0].email. Unflatten accepts rows in that same format and recreates each intermediate object or array as needed. Paths are always parsed as plain text and never evaluated as code.
- How do I view or copy the result?
- The result appears in the output area on the page: one path = value line per leaf when flattening, or the rebuilt nested JSON when unflattening. Read it there, then copy the whole output in one action.
- Is my input, file, or result uploaded?
- No. Flattening and unflattening both run in your browser, and your inputs, files, settings and results stay there. Nothing is uploaded to LocalTools.
- What does this tool not support?
- It does two things only: flatten and unflatten. There are no accounts, no cloud history or sync, no server-side processing, and no formats, algorithms, batch runs or export options beyond what this page lists.