Skip to main content
>_devtools

JSON Flatten

Flatten nested JSON into single-level dot or bracket paths with a custom separator and depth limit.

What this does

Paste nested JSON to turn its leaves into a flat object keyed by paths. Choose a separator, array path style, maximum depth, and output indentation.

Example

Input:
{"user":{"name":"Ada","emails":["a@example.com"]}}

Flattened output:
{
  "user.name": "Ada",
  "user.emails[0]": "a@example.com"
}

Limits and behavior

  • Arrays use bracket indexes by default; dot notation is optional.
  • Only valid JSON can be flattened.