Skip to content
Toolbento

JSON flatten and unflatten

Flatten nested JSON to dot-path keys such as user.tags[0], or turn flat keys back into nested JSON.

Everything stays on this device

JSON flatten and unflatten runs in your browser. The text and files you add are worked on by this device and are never uploaded, to us or to anyone else.

  • No uploads. The page is blocked from sending data to any other server.
  • No account, cookies, ads or tracking.
  • Fonts and scripts come from toolbento.app itself, so the page makes no requests to other companies.
  • Closing the tab clears your text and files from memory.

Read the full details on the privacy page.

Direction

Missing a feature or found a bug in JSON flatten and unflatten? Tell me on X (@_andrewtran) or by email.

How to use JSON flatten and unflatten

  1. Choose Flatten or Unflatten.
  2. Paste your JSON in the input pane.
  3. Copy the result or download it as a file.

Questions and answers

Is my data sent anywhere?

No. Everything runs in your browser on this device. Nothing you paste is uploaded or stored.

How are lists written?

With an index in square brackets, such as items[0].name. Keys that contain a dot are written in brackets and quotes.

Does unflatten undo flatten exactly?

Yes. Empty objects and empty lists are kept as values, so nothing is lost on the way back.

Esc

Loading tools