Loading editor…
Loading editor…
JSON Flattener / Unflattener
Convert deeply nested JSON into flat path-based objects and unflatten it back without leaving your browser. Supports arrays, escaped keys, and custom separators.
JSON Flattener / Unflattener Use Cases
- Prepare i18n dictionaries and config payloads as flat key maps
- Normalize nested API fixtures for spreadsheet-style editing
- Rebuild nested structures from environment-style key paths
- Debug path-level changes in large JSON documents before deployment
JSON Flattener / Unflattener FAQ
How are array values represented in flattened output?
Array items use bracket indices in generated paths, such as users[0].email or matrix[2][1], so structures can be restored deterministically.
What if keys already contain dots or brackets?
Special characters in keys are escaped during flattening. Unflatten mode understands these escapes and recreates original keys safely.
Can I switch between flatten and unflatten in the same tool?
Yes. Use the mode toggle to flatten nested JSON or reverse flattened path maps back into nested JSON.