https://devtools.solutions/tools/json/json-flatten.html

Flatten JSON

Flatten a nested JSON object into a single-level object with dot-notation keys.


    

JSON Tool FAQ

How do I validate JSON?

Paste JSON into the input box and click Validate. The parser checks the content directly in your browser.

Can I minify large JSON payloads?

Yes. Click Minify to remove extra whitespace and reduce payload size for transport or storage.

What does optimize/compress do?

It minifies JSON and reports how many characters were removed compared with pretty-printed output.

Does this tool send data to a server?

No. Formatting, validation, and minification are performed client-side only.

Example input/output

Input: {"user":{"name":"Ada","address":{"city":"London"}}}

Output: {"user.name":"Ada","user.address.city":"London"}

How it works

This tool recursively traverses the JSON object tree and builds a new flat object. Nested keys are joined with a dot separator to represent the original path. Arrays are indexed with their numeric position (e.g. items.0.name). Processing runs in your browser.

Common use cases

Related tools