Parse CSV
Parses CSV text or a CSV file into a list of rows. For Excel workbooks (.xlsx), use Spreadsheet File.
Properties
| Property | Required | Default | Description |
|---|---|---|---|
| CSV Input | Yes | — | CSV text or a file from another step (HTTP Request, Webhook upload, File…). Usually an expression |
| Delimiter | No | , | Column separator. Can be more than one character (e.g. ||). See below |
| First row is header | No | On | On: each row is an object keyed by the header names. Off: each row is an array of values |
| Quote character | No | " | Character that wraps fields containing delimiters or line breaks. A single character, or none to turn quoting off |
| Convert numbers and booleans | No | On | Turn 42, 3.5, true into real numbers and booleans. Values with a leading zero such as 00123 stay text |
Delimiters
Type the delimiter itself, an escape sequence or a name:
| Input | Delimiter |
|---|---|
, ; | or any other text | That text, e.g. ; or :: |
\t or tab | Tab (TSV files) |
comma, semicolon, pipe, space | , ; | and a space |
\u0009 | Any character by its Unicode code |
A delimiter can't contain a line break or the quote character.
Output
| Field | Type | Description |
|---|---|---|
rows | Array or dataset | The parsed rows — or, when they add up to more than about 4 MB, a dataset (see below) |
count | Number | Number of rows |
Input:
email,name,active
ada@example.com,Ada,true
alan@example.com,Alan,false
Output (header on):
{
"rows": [
{ "email": "ada@example.com", "name": "Ada", "active": true },
{ "email": "alan@example.com", "name": "Alan", "active": false }
],
"count": 2
}
With First row is header off, every line (including the first) becomes an array:
["email", "name", "active"], ["ada@example.com", "Ada", true], …
{{ $nodes['Parse CSV'].count }}
{{ $nodes['Parse CSV'].rows[0].email }}
{{ $nodes['Parse CSV'].rows[0]['First Name'] }}
Use bracket notation for header names with spaces.
Large files
Parse CSV reads its input row by row, whether it is text, a file from another step or a stored file (for example the
output of a File step, or an HTTP Request CSV response larger than 5 MB). When the rows add up to
more than about 4 MB, rows is a dataset instead of a list: the rows are kept as a file
in the run's temporary storage, with their count, column names and the first rows. count still holds the row count.
In expressions, a dataset reads like a list as far as its preview goes: rows[0].email and rows.length work, and
asking for a row past the preview stops the step with a message that says what to do. See
Datasets.
To process every row, pass the dataset straight to a Loop — it reads the rows from the file without holding them all in workflow state. Set a Batch size to get many rows per pass:
Parse CSV → Loop (Items: {{ $nodes['Parse CSV'].rows }}, Batch size: 1000) → body runs once per 1,000 rows
Notes
- A byte-order mark at the start of the file is ignored. Blank lines are skipped.
- Empty input gives
rows: []andcount: 0. - Rows that are already parsed pass straight through: an HTTP Request that gets a CSV
response already returns rows, so a Parse CSV step after it keeps them as they are (
countis the number of rows). The same goes for the output of another Parse CSV step. - Text input is limited by what a step can receive; for very large data, pass a stored file.
- Invalid settings (e.g. a two-character quote) or unparseable data fail the step.