JSON Flatten / Unflatten
{
"user.name": "Ada",
"user.roles[0].name": "admin",
"user.roles[1].name": "editor",
"active": true,
"tags": [],
"meta": {}
}Converted locally in your browser. Your data stays only on this page.
Flatten nested JSON into dot-path keys
Paste nested JSON and get a single flat object whose keys are dot/bracket paths — object keys joined by `.`, array indices in bracket form like `order.items[0].sku`. Flat dot-path objects are how people express i18n message catalogs, feature-flag overrides, and Firestore/MongoDB partial updates, and they make deeply nested JSON diffable and grep-able. Empty objects and empty arrays are kept as leaf values so the conversion round-trips losslessly.
Known limitation: object keys are assumed not to contain `.`, `[`, or `]`, which are reserved as path separators.