Skip to main content
>_devtools

JSON to NDJSON

Convert a JSON array into NDJSON (JSON Lines) with one compact record per line.

What this does

Paste a JSON array to write one compact JSON value per line. The output uses the newline-delimited JSON format common in logs and streaming data.

Example

Input:
[{"id":1},{"id":2}]

NDJSON output:
{"id":1}
{"id":2}

Limits and behavior

  • The input must be a JSON array.
  • Each array item becomes one output line.