JSON Flatten

Convert nested JSON to dot-path maps and unflatten back. Handy before CSV export.

All processing on this page runs locally in your browser unless noted otherwise.

Input
Result
Local offline processing — data is never uploaded

How to use

  1. Choose Flatten or Unflatten mode.
  2. Paste nested JSON or a flat object map.
  3. Copy result or export CSV rows for paths/values.

Example

{
  "user": {
    "name": "Ada",
    "profile": { "city": "Shanghai" }
  },
  "tags": ["json", "tools"]
}

FAQ

How are arrays represented?

Array indexes become numeric path segments such as items.0.name.

Can I round-trip?

Yes for typical objects/arrays. Exotic key collisions may need manual review.

Related tools