Converts a JSON array to newline-delimited JSON (NDJSON).
JSON to JSONL converts a JSON array into newline-delimited JSON (NDJSON), where each array element is written as one compact JSON object on its own line. This format is handy for streaming data, log pipelines, and bulk-loading tools that read one record per line. Paste a JSON array and get JSONL output instantly in your browser.
No. The conversion runs entirely in your browser using JSON.parse and JSON.stringify. Nothing you paste is uploaded or stored on a server.
It expects a top-level JSON array. Each element of the array, whether an object, number, string, or nested array, becomes one line in the output. If the input is not an array, you will get an error.
Each line is compact JSON with no extra whitespace, produced by JSON.stringify on the element. Lines are joined with a single newline character.
The tool only converts arrays, since JSONL emits one line per array element. Wrap a single object in an array (for example [ {...} ]) to convert it into one JSONL line.
They are preserved exactly. Only the top level is split into lines; each element keeps its full structure serialized as compact JSON on its line.