JSON Flatten
Turn nested objects and arrays into a flat map of paths.
Valid JSON
Your input is processed locally in this browser tab.
How to use JSON Flatten
Choose a path separator style (a.b, a_b, or a/b) and indentation width.
Paste nested JSON objects and arrays to flatten them into single-level path keys.
Copy or download the flattened JSON map.
Frequently asked questions
How are array elements represented in flat keys?
Array items use bracketed indices like team.tools[0], which round-trip cleanly in JSON Unflatten.
What if a key name contains dots or brackets?
Literal separators inside keys are escaped automatically so flattening never collides or loses structure.