JSONL ↔ CSV converter
Convert JSON Lines or NDJSON objects to CSV, or turn CSV records into JSONL. Process files locally with selectable separators.
Runs in your browser. Files are not uploaded.
UTF-8 input up to 2 MiB, 10,000 records, 100 columns and output up to 8 MiB.
Paste text, choose a file or try the example.
Preview shows the first 3,000 characters. Download the complete result. Changing input or options clears the old result.
How JSONL becomes a table
Each non-blank physical line must be a JSON object. Blank lines are skipped. Top-level keys become columns in first-seen order; missing fields become empty cells. Strings are decoded; numbers retain their source spelling without numeric conversion. Null and booleans use their JSON spelling; nested objects and arrays remain JSON text in one cell. Duplicate top-level keys are rejected. CSV cannot retain all JSON types: null and the string "null" can look identical.
CSV to JSONL: values stay strings
The first CSV record must contain unique, non-empty headers. Quoted separators, escaped quotes and multiline fields are supported. Every CSV field becomes a JSON string, including numbers, true, null and empty values. Nested objects are not reconstructed. CSV output has a UTF-8 BOM; JSONL output has no BOM. Spreadsheet protection adds an apostrophe to formula-like cells, including headers. It changes those CSV values and is on by default; disable it only when you need exact text. Spreadsheet apps can still reinterpret numeric or date-like text; import such columns as text to preserve them.