JSON Flattener
Flatten nested JSON into one level of dotted or bracketed keys, including array indexes.
Flatten nested JSON
Flattened: —
How to use the JSON Flattener
- Paste the nested JSON you want to flatten.
- Choose dot notation or bracket notation for the keys.
- Press Flatten and copy the single level result.
Features
- Dot and bracket key styles
- Array indexes included in paths
- Empty objects and arrays preserved
- Live output as you type
Advertisement
Frequently Asked Questions
Common questions about the free online json flattener.
Paste nested JSON, choose dot or bracket keys and press Flatten to get one level of key value
pairs.
Dot notation writes user.address.city, while bracket notation writes user[address][city] for
the same path.
Each array item gets an index in its key, so roles[0] and roles[1] hold the two values.
Empty containers cannot be split further, so they are kept as a whole value on their own key.
Yes. Null values are written as null on their flattened key, so no information is lost.
Yes. The flattened keys make good column headers, which is why this format is common in
analytics imports.
No. Flattening runs entirely in your browser and the document you paste never leaves your
device.
Yes. Nesting depth is limited only by the memory of your browser tab, and paths simply grow
longer.
Yes. The flattener is completely free with no account, no limits and no sign-up.
Last updated: October 10, 2026