What is a string splitter?
A string splitter separates one string into an ordered list of smaller strings. It looks for a delimiter—a character or sequence of characters that marks the boundary between items—and places each result on its own line.
Use this tool for simple lists of IDs, tags, keywords, configuration values, or other delimiter-separated text. The split happens locally in your browser and updates as you type.
How to split a string online
- Enter or paste a string, or select Example.
- Select a delimiter such as Comma, Space, New Line, Tab, Semicolon, or Pipe.
- Select Custom to use a single character or multi-character delimiter such as
::or->. - Open Options if you need to preserve surrounding whitespace or empty items.
- Copy the result.
By default, the tool trims whitespace around each item and removes empty items.
String splitter examples
Split a comma-separated string
Input:
apple, banana,, orange,With Comma, Trim whitespace, and Remove empty items, the output is:
applebananaorangeSplit with a pipe
Select Pipe to split configuration or log values such as:
development|api|enabledSplit with a multi-character delimiter
Select Custom, enter ::, and split:
apple::banana::orangeCustom delimiters are otherwise literal. Enter exactly \n or \t to use a new line or Tab without selecting its preset.
Empty items and whitespace
Consecutive delimiters and delimiters at the beginning or end of a string create empty items. Remove empty items removes them from the result. Turn it off when empty positions are meaningful.
Trim whitespace removes whitespace from the beginning and end of every item after splitting. Turn it off when those spaces or Tabs are part of the data.
If the delimiter is not present, the result contains the original string as one item. An empty custom delimiter also keeps the string as one item instead of splitting it into characters.
Can I use this as a CSV parser?
Only for a simple comma-separated string without CSV quoting or escaping. CSV fields can contain commas, quotes, and line breaks, so structured CSV data needs a real parser. Use the CSV Viewer to inspect CSV data or the CSV Editor to make small table edits.
Split and join strings
Splitting turns one string into multiple items. The String Joiner performs the reverse operation by combining one item per line with a chosen separator.
String Splitter FAQ
Can a delimiter contain multiple characters?
Yes. Select Custom and enter text such as ::, --, or ->. The complete value is used as one literal delimiter.
Can I split by a space, new line, or Tab?
Yes. Select the matching preset. For a custom value, enter exactly \n for a new line or \t for a Tab.
Why are some items missing?
Remove empty items is enabled by default. Turn it off to keep items created by consecutive, leading, or trailing delimiters.
Why were spaces removed from my items?
Trim whitespace is enabled by default. Turn it off to preserve whitespace around each item.
What happens when the delimiter is not found?
The original string is returned as one item.