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.

  1. 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.

  2. 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.

  3. 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.

  1. 01 · delimiter

    Delimiter

    The character between fields. It is guessed from the rows when left out. Spreadsheets in many European locales use semicolons.

    • comma A comma.
    • semicolon A semicolon.
    • tab A tab.
    • pipe A vertical bar.
    comma · semicolon · tab · pipe

The formats

From · CSV

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
To · JSONL

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.

terminal
$ cv convert sheet.csv sheet.jsonl
$ cv convert sheet.csv sheet.jsonl

Questions.What people ask about CSV to JSONL.

01OF 04

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.

More conversions.Other ways in and out of CSV and JSONL.