jsontoolskit.org
JSON and JSON Schema utilities, in the browser
Say hi →

JSON to NDJSON

array → one-object-per-line · stream-friendly

Convert a JSON array into newline-delimited JSON (one object per line, also known as JSONL). Stream-friendly for log pipelines and jq -c. For deeper JSONL tooling (split, slice, filter, count), jump to jsonlkit.com. Reverse direction at NDJSON → JSON.

Paste a JSON array.

How to convert

  1. Paste a JSON array (for → NDJSON) or NDJSON text (for → JSON array).
  2. Output appears live. Copy or Download as .ndjson / .jsonl.
  3. Toggle Pretty-print individual objects (off by default — NDJSON is usually one-line per record).

When to use NDJSON

FAQ

Is NDJSON the same as JSONL?

Yes — different name, same format. .ndjson and .jsonl are interchangeable.

What if my array elements are not objects?

Each element becomes one line — primitives, arrays, or objects all work. Most consumers expect objects only, though.

Will it work offline?

Yes — plain JavaScript.