JSON flattener
Flatten nested JSON into single-level dot-notation keys, or rebuild the nesting.
Related tools
JSON flattener
Paste a deeply nested JSON object and this tool flattens it into a single-level object whose keys spell out the full path — user.address.city instead of three levels of braces. Flat JSON drops straight into spreadsheets and CSV exports, makes two API responses easy to diff line by line, and matches the key format that log pipelines, analytics events and configuration stores expect.
Two options control the key format. The delimiter (a dot by default) joins nested object keys, and array indices are written either in bracket style, tags[0], or with the delimiter, tags.0 — pick whichever your target system uses. Empty objects and arrays are kept as {} and [] values, so nothing silently disappears from the data.
The same options drive the reverse direction: switch the mode to unflatten and a flat object is rebuilt into nested JSON. Flatten a response, edit a handful of values in the flat view where paths are easy to scan, then unflatten it back — the round trip preserves the structure, including arrays and empty containers.
Invalid input is reported the same way as in the JSON formatter, with the parser's own message, and the tally under the output counts the flat keys, the nesting depth and the output size in bytes. Everything runs locally in your browser: API responses, config files and exports with real customer data never leave your device.