Free browser-based tool

JSON Flattener

Flatten nested JSON into path-value pairs or safely unflatten paths using dot, bracket, slash, or custom separators with collision detection.

Guide

Flatten nested JSON into reversible path-value pairs

Flattening replaces nested containers with path keys that point to leaf values. It is useful for analytics, environment data, table preparation, comparisons, and form fields.

Path notation must escape separator characters correctly. ArrayText detects collisions while unflattening instead of silently overwriting incompatible values.

Common questions

JSON Flattener FAQ

Can flattened JSON be restored?

Yes, when path notation is unambiguous and no collisions were introduced. The tool supports reversible dot, bracket, slash, and custom notation.

How are arrays handled?

Arrays can be indexed into separate paths or preserved as complete values.

Why did unflattening report a collision?

Two paths attempted to use the same location as incompatible scalar and container values, or defined the same path twice.

Related tools

Continue working with your data

All tools