---
title: csv
page-cloud: true
latest-operator-version: v26.2.6
latest-console-tag: v3.14.0
latest-connect-version: 4.118.0
latest-redpanda-tag: v26.2.7
docname: connect/components/scanners/csv
page-component-name: cloud-data-platform
page-version: master
page-component-version: master
page-component-title: Cloud
page-relative-src-path: connect/components/scanners/csv.adoc
page-edit-url: https://github.com/redpanda-data/cloud-docs/edit/main/modules/develop/pages/connect/components/scanners/csv.adoc
description: Consume comma-separated values row by row, including support for custom delimiters.
page-context-switcher:
  - name: Scanner
    to: /cloud-data-platform/develop/connect/components/scanners/csv/
  - name: Input
    to: /connect/components/inputs/csv/
page-self-managed-available: "true"
page-self-managed-available-url: https://docs.redpanda.com/connect/components/scanners/csv/
page-git-created-date: "2024-09-09"
page-git-modified-date: "2026-10-19"
page-generated-sources:
  - include: connect:components:partial$descriptions/scanners/csv.adoc
    generator: null
    version: null
    source: the component specs in https://github.com/redpanda-data/connect
page-generated-content: partial
---

# csv

> For the complete documentation index, see [llms.txt](https://docs.redpanda.com/llms.txt). Component-specific: [cloud-data-platform-full.txt](https://docs.redpanda.com/cloud-data-platform-full.txt)

<!-- Source: https://docs.redpanda.com/cloud-data-platform/develop/connect/components/scanners/csv.md -->

Consume comma-separated values row by row, including support for custom delimiters.

## Metadata

This scanner adds the following metadata to each message:

-   `csv_row` The index of each row, beginning at 0.


### Common

```yml
scanner:
  csv:
    custom_delimiter: "" # No default (optional)
    parse_header_row: true
    lazy_quotes: false
    continue_on_error: false
```

### Advanced

```yml
scanner:
  csv:
    custom_delimiter: "" # No default (optional)
    parse_header_row: true
    lazy_quotes: false
    continue_on_error: false
```

## Fields

### `continue_on_error`

If a row fails to parse due to any error emit an empty message marked with the error and then continue consuming subsequent rows when possible. This can sometimes be useful in situations where input data contains individual rows which are malformed. However, when a row encounters a parsing error it is impossible to guarantee that following rows are valid, as this indicates that the input data is unreliable and could potentially emit misaligned rows.

**Type**: `bool`

**Default**: `false`

### `custom_delimiter`

Use a provided custom delimiter instead of the default comma.

**Type**: `string`

### `lazy_quotes`

If set to `true`, a quote may appear in an unquoted field and a non-doubled quote may appear in a quoted field.

**Type**: `bool`

**Default**: `false`

### `parse_header_row`

Whether to reference the first row as a header row. If set to true the output structure for messages will be an object where field keys are determined by the header row. Otherwise, each message will consist of an array of values from the corresponding CSV row.

**Type**: `bool`

**Default**: `true`