Search for a tool or command
Flatten nested JSON into single-level dot-notation key paths.
The JSON Flattener collapses deeply nested objects and arrays into a single flat object whose keys are dot-notation paths like user.address.city. Flattened JSON is far easier to feed into spreadsheets, environment variables, and key-value stores, and it makes comparing structures trivial. Array indices are preserved in the path so nothing is lost.
Add the object or array with the nested structure you want to flatten.
Keep the default dot or pick a custom separator for the generated key paths.
The tool produces a single-level object mapping each path to its leaf value.
Copy the flat map for spreadsheets, env files, or comparisons.
Input
{
"user": {
"name": "Mira",
"roles": ["admin", "editor"]
}
}Output
{
"user.name": "Mira",
"user.roles.0": "admin",
"user.roles.1": "editor"
}