format · validate · convert · runs locally

JSON Flatten

Flatten deeply nested JSON into a single flat object whose keys are dot/bracket paths (e.g. a.b[0].c) mapping to their scalar values. Great for diffing, spreadsheets, or config lookups. Copy it or download the .json. Runs in your browser.

Frequently asked questions

What does flattening do to arrays?

Array elements get a bracket index in their path, e.g. items[0].name, so every leaf value has a unique, unambiguous dot/bracket key.

What is dot notation?

A path like a.b.c that walks nested object keys with dots. Keys that are not valid identifiers are emitted in bracket-quote form instead.