Simple · Fast · Free
My Favorites
DATA TOOLS
JSON Flatten & Unflatten
Flatten nested JSON or rebuild object and array structures.
Array indexes use path segments such as 0, 1, and 2.
About JSON Flatten & Unflatten
Flatten nested JSON objects and arrays into path-based keys, or rebuild a nested structure from flat values using dots or slashes as separators.
How to use this tool
- Paste JSON, choose flatten or unflatten, and select the path separator.
- Convert and inspect array indexes and field paths before copying or downloading.
Example
{"user":{"name":"Alice"}} can use the flat key user.name with a dot separator.
What if original keys already contain the separator?
Dots or slashes in original keys can conflict with path meaning. Do not assume every dataset round-trips without loss; choose a suitable separator and verify a representative sample.
Privacy
Files and content are processed locally in your browser without file uploads. Download the result before closing the page; files must be selected again in a new session.