WIN-J DATA TOOLS

JSON flattener and rebuilder

Flatten nested JSON objects into JSON Pointer paths and values, then rebuild them. Preserve slash and tilde keys, empty objects, and arrays as single values.

Free to useInput data is processed in this browser

UTF-8 CSV, TSV, TXT and JSON are supported. Selecting a file replaces the input; conversion starts only when you press Run.

Input and output are each limited to 2 MiB of UTF-8 text. CSV supports 10,000 rows and 200 columns, including transposed output. JSON allows depth 64 and 100,000 nodes; flattening allows 10,000 paths.

How to use

  1. Review the example, then paste input or import a UTF-8 text file.
  2. Choose conversion options as explained below and press Run.
  3. Review the full output and preview before copying or downloading.

Worked example

{"order":{"id":7},"items":[1,2]} becomes {"/order/id":7,"/items":[1,2]}. A key a/b is encoded as /a~1b, and ~ as /~0.

Method and limits

Only objects are split into paths. Arrays, empty objects and scalars remain leaves. Numeric path segments rebuild as object keys, so /0 and /1 do not create an array. The empty key "" represents the root. Parent/child conflicts are rejected. Limits: depth 64 and 10,000 paths. Use strings for unsafe integers; decimals use JavaScript double precision.

Frequently asked questions

Can keys contain dots or names such as __proto__?

Yes. Dots are not separators. Paths use JSON Pointer escaping for / and ~. Names such as __proto__ and constructor are treated as data, not prototypes.

Is the input file uploaded to a server?

This tool processes input text and file contents in browser memory without sending them to a server. Refreshing discards the work. This is separate from ordinary site visit statistics.

Related data tools

Reference material