NDJSON ⇄ JSON

Convert between NDJSON / JSON Lines (one JSON value per line) and a JSON array, in either direction. Common with logs, streaming APIs, and ML datasets. Everything runs in your browser.

What is NDJSON?

NDJSON (newline-delimited JSON), also called JSON Lines (.jsonl), puts one complete JSON value on each line. It's used because you can stream and process records one at a time without loading a whole array into memory. This tool turns a JSON array into that format and back. To explore a big file, open the JSON viewer.