> ## Documentation Index
> Fetch the complete documentation index at: https://docs.graphy.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# TSV

Parse TSV (tab-separated values) strings into the [Data structure](/sdk/core/data-structure) expected by `@graphysdk/core`.

## fromTSV

```typescript theme={null}
import { fromTSV } from '@graphysdk/data-import-utils/tsv';

const data = fromTSV('Name\tRevenue\nAcme\t1000\nGlobex\t2000');
```

### Signature

```typescript theme={null}
function fromTSV(input: string, options?: DelimitedParseOptions): Data
```

## Options

<ParamField path="hasHeader" type="boolean" default="true">
  Whether the first row contains column headers. When `false`, columns are
  auto-named `Column 1`, `Column 2`, etc.
</ParamField>

<ParamField path="locale" type="VizLocale" default="EN_US">
  Locale for number parsing. Determines thousand/decimal separator conventions.
  For example, `'PT_PT'` treats `1.000,50` as `1000.5`.
</ParamField>

<ParamField path="maxFileSize" type="number" default="5">
  Maximum allowed input size in megabytes. Throws an error if the input exceeds this limit.
</ParamField>

## Examples

### Without Headers

```typescript theme={null}
const data = fromTSV('Acme\t1000\nGlobex\t2000', { hasHeader: false });
// Columns auto-named: "Column 1", "Column 2"
```

<Note>
  Files with `.tab` extension are also treated as TSV.
</Note>
