>_devtools

NDJSON to JSON

Convert NDJSON (JSON Lines) into a single JSON array, reporting the line of any invalid record.

What this does

Collects NDJSON / JSON Lines into one JSON array, preserving the order of the lines. Blank lines are skipped and Windows line endings are accepted.

Invalid lines

By default the conversion stops at the first invalid line and tells you which one and where, so you never get a silently incomplete array. Turn on Skip invalid lines to drop them instead; the note under the output states how many were skipped.

To inspect the records before converting, open them in the NDJSON viewer. The reverse conversion is JSON to NDJSON.

Example

Input:

{"id":1,"ok":true}
{"id":2,"ok":false}

Result:

[
  { "id": 1, "ok": true },
  { "id": 2, "ok": false }
]

Privacy

Everything runs in your browser. Your input is never uploaded, stored, or put in the page URL.