---
title: "split"

doc_type: static
doc_category: static
doc_version: v20260901
source_url:
  html: 'https://developer.shopline.com/docs/handlebars/helpers/string/split'
  md: 'https://developer.shopline.com/docs/handlebars/helpers/string/split.md'
---

# split

Splits a string into separate elements within an array using a specified separator. 

## Parameters

- `str1` `{String}` The input string, required.
- `separator` `{String}` The separator, required.
- `returns` `{Array}` The array of substrings.

## Usage

```handlebars
{{ split str1 separator }}
```

## Example

<Example>
```handlebars
{{ split "a,b,c" "," }}
```
</Example>
