Convert JSON Array to JSONL (Newline-Delimited JSON)

JSON Lines (JSONL) trades one big array for many small, independently-parseable lines — the format most streaming pipelines, log ingesters, and LLM fine-tuning datasets expect instead of a single JSON array.

The real behavior

What each JSON shape produces: a top-level array becomes one line per element, each written with JSON.stringify and no pretty-printing (so nested objects stay on a single line, which is what makes JSONL streamable line-by-line). A bare JSON object (not an array) is still accepted — it just produces a single-line JSONL file. Anything else at the root — a string, a number, null — is rejected outright with "Input must be a JSON array or object" rather than being coerced into a line.

Converters

JSON ↔ JSONL Converter

Convert between JSON arrays and JSON Lines (JSONL) format.

3 objects156 bytes

JSON ↔ JSONL Converter: Convert between JSON arrays and JSON Lines (JSONL) format. Runs entirely in your browser — paste your input, get instant output, nothing is uploaded.

🔒 This tool runs entirely in your browser. No data is sent to any server.