JSON Flatten
The JSON flattener collapses a nested document into a single-level object whose keys are dot-separated paths, such as user.address.city. Array items become numeric segments. It is the shape you need for environment variables, spreadsheet columns and configuration systems that only accept flat keys.
Your result will appear here.
Not sure where to start? Use Load example.
Results update automatically and are calculated on your device. Nothing you type is sent to a server.
Runs in your browser. Processing happens entirely in your browser. Nothing you enter is sent to Delimiter.live.
How to use the JSON Flatten
- Paste the nested JSON document.
- Choose the separator your target system expects — a dot is conventional, an underscore suits environment variable names.
- Read the flattened object: every leaf value now sits under its full path.
- Copy or download the result.
Example
{"user": {"city": "London"}}
{
"user.city": "London"
}
Common use cases
- Preparing nested configuration for a system that only accepts flat key-value pairs.
- Turning a nested API response into spreadsheet columns.
- Generating environment variable names from a config file.
- Making two deeply nested documents easier to compare line by line.
Limitations and things to watch for
- A key that already contains the separator character produces an ambiguous path, and unflattening it will not reproduce the original structure. Pick a separator your keys do not use.
- Empty objects and empty arrays are preserved as empty values rather than disappearing, so the structure can be rebuilt.
- Documents nested deeper than 100 levels are rejected, because that almost always indicates a cycle rather than real data.