← 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. Use this implementation for object-shaped data; arrays and empty containers do not round-trip intact.

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?

No. This implementation loses empty containers and reconstructs array indexes as object keys. Round trips are limited to non-empty nested objects with unambiguous, non-conflicting dot paths. Compare the result with the source before replacing it.