About this tool
Flattening walks through every nested object and array and writes each leaf value under its full path, such as items.0.sku or items[0].sku. This is handy for spreadsheets, translation files, environment variables and comparing two documents key by key. Choose the separator and array style, and decide whether empty objects and arrays are kept. Processing is local.
How to use JSON Flatten
- Paste nested JSON into the left box.
- Choose a separator and how array indexes are written.
- Decide whether to keep empty objects and arrays.
- Copy the flat JSON or download it.
Frequently asked questions
Can I get the nested version back?
Yes. Use JSON Unflatten with the same separator to rebuild the original structure.
What if my keys already contain dots?
Pick a separator that does not appear in your keys, such as / or __, so the paths can be split back unambiguously.