HomeJSONJSON Flatten & Unflatten
JSON Flatten & Unflatten
Flatten nested JSON into dot notation or unflatten back. Supports custom delimiters.
100% Client-Side · No Upload
Loading tool…

What is JSON Flatten & Unflatten?

JSON Flatten & Unflatten lets you transform highly nested, complex JSON arrays and objects into flat key-value pairs using dot notation (e.g., "user.address.zip"), or unpack flat structures back into standard deep nested objects.

How to use JSON Flatten & Unflatten?

1
Paste your nested JSON structure into the editor.
2
Click "Flatten" to compress the nesting into single-level dot keys, or "Unflatten" to expand flat keys.
3
Configure custom separators (e.g. dots, underscores, or slashes) in the parameters panel.
4
Instantly copy the converted format or download it.

Interactive Example

Flattening an address objectJSON
Input / Sample Source
{"a": {"b": {"c": 99}}}
Output / Result
{"a.b.c": 99}

Benefits & Features

Simplifies Data ParsingFlattened tables make importing into Excel, CSV, or pandas easy.
Custom DelimitersChoose between dots (`.`), underscores (`_`), or brackets (`[]`).
Reversible OperationsConvert back and forth with zero loss of integrity.
Fast Client-SideProcesses nested fields immediately in the client.

Frequently Asked Questions