The Split Text tool separates a single string of text into multiple lines using a custom delimiter. It supports regular expressions, trims unwanted whitespace, filters out empty results, and displays the total number of items split. The final output can also be exported to a text file.
How to Use the Tool:
- Paste or type your text into the Input Text box.
- Enter a delimiter in the Split by field (for example, a comma, space, or custom symbol).
- Optional settings:
- Treat as regular expression enables advanced splitting patterns (e.g.,
\\s+
to split by multiple spaces). - Trim whitespace removes leading/trailing spaces from each item.
- Ignore empty parts filters out blank entries from the result.
- Treat as regular expression enables advanced splitting patterns (e.g.,
- Click Split Text to generate the output.
- The result will appear line by line in the Split Output box.
- A count will appear below the output showing the total number of items.
- Use Copy Output to copy the result to your clipboard.
- Use Export to File to download the result as a
.txt
file. - Click Clear All to reset everything.
Example:
Input:
apple, banana , cherry,,grape
Settings:
- Split by:
,
- Trim whitespace: enabled
- Ignore empty parts: enabled
- Treat as regular expression: disabled
Output:
apple
banana
cherry
grape
Total items:
4
Common Use Cases:
The Split Text Tool separates blocks of text into individual items based on a custom delimiter or regular expression. It’s ideal for converting comma-separated values into lists, breaking apart long strings for easier processing, cleaning up user input, formatting text for import into spreadsheets, databases, or other systems, and organizing text data for editing or analysis.
Useful Tools & Suggestions:
After splitting your text, Chunkify Text is great for breaking it into even sections if you’re prepping it for analysis or formatting. And if you’re working with word-based input, Tokenize Text helps break it down more precisely so you can control what gets split.