NDJSON to JSON

Turn newline-delimited JSON (NDJSON, also called JSON Lines) into one JSON array. Paste the lines, wrap them in an array, and explore the result as a tree. Nothing is uploaded.

Add to Chrome Free: formats JSON pages right in the tab.

How to convert NDJSON to a JSON array

  1. Paste the NDJSON into the editor above, or drop a .ndjson or .jsonl file onto it.
  2. The editor reports how many top-level values it found. Press Wrap in array.
  3. The values become one formatted array. Explore it in the Viewer tab, copy it or save it as a .json file.

What it handles

More JSON tools

Frequently asked questions

What is NDJSON?

Newline-delimited JSON stores one JSON value per line. Logs, data exports and streaming APIs use it because each line can be written and read on its own. It is also known as JSON Lines.

Why not just paste NDJSON into a JSON tool?

A JSON document may hold only one top-level value, so many tools reject NDJSON or keep only the first value. This one counts the values and keeps all of them.

Is there a size limit?

Files up to about 10 MB work smoothly, and wrapping runs in a background worker.