Convert CSV to JSONL
Turn CSV files into JSONL. Each entry of a top-level list becomes one line of compact JSON, and any other value becomes a single line, with values and key order kept.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop CSV files on the dialor turn it to pick what to do
CSV as JSON Lines.Values and key order are kept. The result is one JSONL file.
What you get
One JSONL file. Each entry of a top-level list becomes one line of compact JSON, and any other value becomes a single line. Values and key order are kept.
JSONL is JSON Lines, one JSON object per line. It is the format of logs and datasets.
Choosing the delimiter
CSV is rows of comma-separated values. Spreadsheets in many European locales use semicolons instead.
When you leave out Delimiter, it is guessed from the rows. Set Delimiter to comma, semicolon, tab or pipe to choose the character between fields yourself.
Going further
To turn JSONL into CSV, use JSONL to CSV. To see the other conversions for this format, open every CSV conversion.
CSV and JSONL.What each format is, and the options this conversion takes.
- 01 · delimiter
Delimiter
The character between fields. It is guessed from the rows when left out. Spreadsheets in many European locales use semicolons.
commaA comma.semicolonA semicolon.tabA tab.pipeA vertical bar.
The formats
CSV
Rows of comma-separated values. The plainest way to move a table between programs.
- Extensions
- .csv
- MIME type
- text
/csv - Kind
- Text and data
JSON Lines
JSON Lines, one JSON object per line, the format of logs and datasets.
- Extensions
- .jsonl .ndjson
- MIME type
- application
/jsonl - Kind
- Text and data
In your code.The same CSV to JSONL conversion through the API, for your app or your agent.
$ cv convert sheet.csv sheet.jsonl$ cv convert sheet.csv sheet.jsonlQuestions.What people ask about CSV to JSONL.
No. When Delimiter is left out, it is guessed from the rows. Set it if your file uses a comma, semicolon, tab or pipe and you want to choose.
Comma, semicolon, tab and pipe. The pipe is a vertical bar.
One file. It is a JSONL file, and it can also use the extension ndjson.
Yes. Values and key order are kept in the output.