---
title: "string_split function in Strata | Oplema"
description: "Split text at a separator and return the parts as a list. Write it as string_split(string, separator) in a Strata Formula or Filter."
url: "https://oplema.com/docs/strata/functions/string-split"
updated: "2026-11-04"
---

# string\_split

Split text at a separator and return the parts as a list.

Also available as split, str\_split, string\_to\_array.

## Try an expression

In [Formula](https://oplema.com/docs/strata/prep/formula), enter the expression and set Output type to **VARCHAR**.

### Expression

```
string_split('hello-world', '-')
```

### Result

```
'[hello, world]'
```

The expression returns `VARCHAR[]`. Formula stores it as `VARCHAR` in this example. To use your own data, replace the example values with column names. Keep format strings and other options as written.

Try it live in Formula

Result
| id | result |
| --- | --- |
| 1 | \[hello, world\] |

## Arguments and types

```
string_split(string, separator)
```

**string**

Text

**separator**

Text

Supported signatures (1)

```
string_split(string: VARCHAR, separator: VARCHAR) → VARCHAR[]
```

The result type can depend on the input types. See DuckDB for the full argument rules.

## Things to know

If the first argument is missing, the result is NULL.

## Related functions

[string\_split\_regex

Split text at each match of a regular expression and return the parts as a list. An optional argument sets regex options.

](https://oplema.com/docs/strata/functions/string-split-regex)[array\_extract

Get one item from a list or one character from text by position, where 1 is the first. For a struct, choose a field by name, or by position in an unnamed struct.

](https://oplema.com/docs/strata/functions/array-extract)[ascii

Return the Unicode number of the first character in text.

](https://oplema.com/docs/strata/functions/ascii)[bin

Converts the string to binary representation.

](https://oplema.com/docs/strata/functions/bin)

[Browse text](https://oplema.com/docs/strata/functions#text) [DuckDB documentation](https://duckdb.org/docs/current/sql/functions/text.html#string_splitstring-separator)

Function metadata from DuckDB, used under the [MIT license](https://github.com/duckdb/duckdb/blob/v1.5.4/LICENSE).
