JSON flatten & unflatten converter
Flatten deeply nested JSON objects and arrays into flat dot-delimited key paths for spreadsheets, translations, or env files—or rebuild nested JSON from flat keys.
{
"app.name": "tools",
"app.routes.0": "/tools",
"app.routes.1": "/about"
}Processing runs inside your browser without accounts or server uploads. Modular TypeScript domain logic tested locally.
Report a problem with this toolBidirectional key transformation
Custom delimiters: Use standard dot notation (app.routes.0) or switch delimiters to underscores or slashes cleanly.
Frequently asked questions
- Are prototype keys filtered when unflattening?
- Yes—unsafe keys such as __proto__, constructor, and prototype are explicitly rejected.
- Can arrays be reconstructed during unflatten?
- Yes—numeric path segments automatically rebuild dense arrays.
Related tools
Browse all toolsDeveloper tools
JSON formatter & validator
Format, minify, and validate JSON syntax with exact line and column error reporting inside your browser.
Spreadsheets & data
CSV <-> JSON converter
Convert CSV tables to typed JSON arrays or flatten JSON object arrays back into RFC 4180 CSV locally.
Developer tools
.env <-> JSON config converter
Convert dotenv .env files (including quotes and export statements) into clean JSON objects—or serialize JSON maps back to .env.