JSON to NDJSON
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
- Paste a JSON array (for → NDJSON) or NDJSON text (for → JSON array).
- Output appears live. Copy or Download as
.ndjson/.jsonl. - Toggle Pretty-print individual objects (off by default — NDJSON is usually one-line per record).
When to use NDJSON
- Stream processing: tools like
jq -candfzfparse one line at a time. - Logs: each log entry is a self-contained JSON object on its own line.
- Large datasets: consumers can read line-by-line without loading the whole array.
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.