# csvToSheet

Source: /xlsx-format/api-reference/functions/csvtosheet

Parse a CSV string into a WorkSheet.

```ts
csvToSheet(text: string, opts?: CSV2SheetOpts): WorkSheet
```

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| ` text ` | ` string ` | Yes | CSV text to parse |
| ` opts ` | [` CSV2SheetOpts `](</xlsx-format/api-reference/interfaces/csv2sheetopts/>) | No | Optional: { FS: field separator (default ",") } |

## Returns

[` WorkSheet `](</xlsx-format/api-reference/interfaces/worksheet/>)

A WorkSheet with the parsed data
