Skip to content
Jellykit

JSON Flatten

Flatten nested JSON into a single level of dot-notation keys like user.address.city. Choose the separator and array style. Free online JSON flattener, private.

Runs in your browser. Nothing is uploaded.

About JSON Flatten

JSON Flatten collapses nested objects and arrays into one level of keys that describe the path to each value: {"user": {"name": "Aisha"}} becomes {"user.name": "Aisha"}. Arrays use their index, as roles.0 or, if you prefer, roles[0].

Flat JSON is what spreadsheets, CSV exports, environment variables, translation files and many analytics tools expect. If the input is an array of records, each record is flattened separately so the result is ready for JSON to CSV.

How to use JSON Flatten

  1. Type or paste your text into the input box. Press Sample to see an example.
  2. Adjust the options. The result updates as you type.
  3. Copy the result, or press Use as input to chain another transformation.

Frequently asked questions

Can I use a different separator?

Yes. Use _ or / or anything else. Use the same separator when unflattening.

What happens to empty objects and arrays?

They are kept as {} or [] values so no information is lost.

Is JSON Flatten free and private?

Yes. JSON Flatten is completely free with no sign-up. Everything runs in your browser, so whatever you type or paste never leaves your device.

See all data tools →