← All JSON tools

Convert tool

Flatten or Unflatten JSON

Flatten nested JSON into dot paths or rebuild nested JSON from flat keys locally in your browser.

✓ Free to use✓ No signup✓ Runs locally
67 bytes · local only
Waiting
Processed entirely in this tab

Your input and result are not sent to JSON Hearth or stored on a server.

When to use it

What Flatten JSON helps you do

Flattening converts nested paths into simple keys, while unflattening reconstructs objects from those paths. It is useful for tables, environment-style data and comparisons.

1

Prepare tabular data

Turn nested values into path-based columns for exports and quick inspection.

2

Compare configurations

Represent deeply nested settings as a flat list of keys and values.

3

Rebuild nested objects

Convert dot-path keys back into objects when importing flat configuration data.

Important limitations

What to check before using the result

Common questions

About Flatten JSON

What is a flattened JSON path?

It is a key such as user.address.city that represents a value nested inside several objects.

Can flattening always be reversed?

It is reversible when the path convention is unambiguous and no original keys collide with generated paths.