Runs locally

JSON Flatten Tool

Flatten nested JSON objects and arrays into path-based keys. Runs locally in your browser.

Runs locally. Your JSON never leaves your browser.

Array handling

JSON Input

Waiting for JSON input.

Flattened JSON

Path keys generated locally.

JSON Flatten Tool

Flatten converts nested objects and arrays into a single level of path-based keys such as user.name.

Arrays and empty values

Arrays can use dot notation like users.0.name or bracket notation like users[0].name. Empty objects and arrays are preserved at their path.

Separator ambiguity

Flattened formats are ambiguous when original object keys contain the separator. Choose a separator that does not appear in your keys when you need a reversible result.

Privacy

Flattening happens in your browser and does not send JSON to the server.

FAQ

Can arrays be flattened?

Yes. Array indexes are included in the generated paths.