JSON Flattener
Flatten deeply nested JSON into dot-notation keys, or expand flat keys back into nested objects.
To flatten JSON, paste a nested object and every leaf value is rewritten with a dot-notation path key such as user.address.city. This makes deeply nested API responses easy to diff, search, load into a spreadsheet or feed into a translation file.
Runs in your browser- Privacy
- Runs entirely in your browser — nothing is uploaded
- Cost
- Free, unlimited, no sign-up
Frequently asked questions
What is flattening for?
How to use the json flattener
- 1Enter or paste your json.
- 2Choose the key separator.
- 3Turn "Index into arrays" on or off as needed.
- 4The result appears immediately — copy or download it.
Embed this tool
Put the working json flattener on your own site. It runs in your visitors' browsers exactly as it does here — free, no account, nothing uploaded.
Share this tool
Related tools
JSON Formatter & ValidatorFormat, validate, repair and analyse JSON — with errors that point at the exact line.JSON to TypeScript ConverterGenerate TypeScript interfaces, Zod schemas, Go structs, Python dataclasses or Rust structs from JSON.JSONPath TesterRun JSONPath expressions against a document and see the matches instantly.Query String to JSON ConverterConvert URL query strings to JSON and build query strings from JSON objects.Data Format ConverterConvert between JSON, YAML, XML, CSV, TSV and TOML in any direction, locally in your browser..env to JSON ConverterConvert .env files to JSON and back — for config migrations and CI variables.
Last updated
More data & format tools