Convert JSONL to JSON Array (Line-by-Line Error Reporting)
Going from JSONL back to a normal JSON array means parsing every line independently and collecting the results into one array — which also means a single malformed line doesn't have to take down the whole file silently.
The real behavior
Line handling, precisely: blank lines (including a trailing newline at end of file) are trimmed and filtered out before parsing — they don't produce empty array entries or errors. Each remaining line is parsed with its own JSON.parse call; if one is invalid, the error message is prefixed with the exact 1-indexed line number — "Line 3: Unexpected token..." — instead of a generic parse failure, so you can jump straight to the broken record in a large export instead of bisecting the file by hand.
JSON ↔ JSONL Converter
Convert between JSON arrays and JSON Lines (JSONL) format.
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.