Split Text Tool

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.

Paste your input above or import a file below.
No file chosen
Supported file type: text/plain (.txt)
Total items: 0
Options
Treat as regular expression
Trim whitespace
Ignore empty parts
Maximize output

How to Use the Tool:

  1. Paste or type your text into the Input Text box.
  2. Enter a delimiter in the Split by field (for example, a comma, space, or custom symbol).
  3. 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.
  4. Click Split Text to generate the output.
  5. The result will appear line by line in the Split Output box.
  6. A count will appear below the output showing the total number of items.
  7. Use Copy Output to copy the result to your clipboard.
  8. Use Export to File to download the result as a .txt file.
  9. 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.