Data Converters

JSON Unflattener

Reverse JSON flattening, take an object with dot-path keys and restore it to its original nested structure. Useful when working with flattened database records or log entries.

Runs entirely in your browser No account needed Copy or download result
JSON (flat) JSON (nested)
Paste JSON (flat) below, or drop a file

Converted entirely in your browser; your data never leaves your device

Features

  • Restores nested objects from dot-path keys
  • Handles numeric indices as array positions
  • Supports dot, underscore, and slash separators
  • Download as .json file
  • Browser-only

How to use it

  1. Paste your flat dot-path JSON into the input.
  2. Select the separator used in the keys (dot is default).
  3. Nested JSON appears in the output.
  4. Copy or download.

Use cases

  • Restoring nested config from flattened environment variables
  • Reconstructing API payloads from flat database columns
  • Processing log entries that were stored flat

Limitations

  • Ambiguous paths (both an object key and array index at the same level) may produce unexpected output.
Questions & answers

Frequently asked

What if keys have both dot-path and regular keys?

Dot-path keys are expanded into nested objects. Regular keys (without the separator) remain at the top level.