Text Separator
Pasted lists arrive in every shape: comma-separated names, tab-separated spreadsheet columns, addresses separated by semicolons, or one long run of words separated by spaces.
Split any text into a numbered list by comma, semicolon, line break, space, tab, or a delimiter of your own — with trimming, empty-item removal, and one-click copy.
Items Found
How It Works
A delimiter is the character (or characters) that marks where one item ends and the next begins. This tool scans your text, cuts it at every occurrence of the delimiter you choose, and returns the pieces as a numbered list. The delimiter itself is removed — commas, semicolons, line breaks and tabs all disappear from the output, leaving only the items.
Two clean-up options run after the split. Trim whitespace strips leading and trailing spaces from each item, which matters because most pasted lists put a space after each comma ("apple, banana" would otherwise give you " banana" with a leading space). Remove empty items drops the blank pieces that appear when two delimiters sit next to each other, or when a list ends with a trailing delimiter — so "apple,,banana," gives three items, not five.
The output shows each item on its own line with a number, plus a count of items and the longest and shortest item lengths. Use Copy List to copy the items one per line, ready to paste into a spreadsheet column, a form, or a document. Everything runs in your browser — the text is never uploaded.
Worked Example
Splitting "apple, banana, cherry, date, elderberry" by comma gives 5 items: apple, banana, cherry, date, elderberry. With trimming on, none of the items keeps its leading space. If the same text is split by space instead, the commas stay attached to the words ("apple,"), which is why choosing the right delimiter matters. The longest item is "elderberry" (10 characters) and the shortest is "date" (4 characters). If the same item appears twice, remove the duplicate lines before counting.
How to Use This Tool
Paste your text, choose a delimiter, and click Split Text. The numbered list appears below with the item count and a length summary.
- Paste your text. It can be a single line of comma-separated values, a pasted spreadsheet column, or a block of text with any separator.
- Choose the delimiter. Pick comma, semicolon, line break, space, tab, or pipe — or choose Custom and type any delimiter up to 20 characters, such as "::" or " | ".
- Split and copy. Click Split Text to see the numbered list, then Copy List to copy the items one per line. The trim and empty-item options are on by default and can be switched off if you need the raw split.
The example on the page — five fruit separated by commas — shows the full result format. Reset restores it.
Tips and Practical Advice
Splitting text is simple, but the wrong delimiter or the wrong clean-up settings can silently change your data. And if a word needs swapping throughout the text, find and replace does it in one pass.
- Match the delimiter to the source. Spreadsheet exports usually use commas or tabs; European exports often use semicolons; pasted columns use line breaks. If the count looks wrong, try another delimiter.
- Keep trimming on for pasted lists. A space after a comma is invisible in the output but breaks exact matches later — " banana" is not the same as "banana" in a spreadsheet lookup.
- Watch for delimiters inside items. If an item itself contains a comma (for example, an address like "12 High Street, London"), splitting by comma will cut it in two. In that case, split by line break or semicolon instead.
- Use the custom delimiter for odd separators. Data separated by "::", " || ", or a word such as "AND" can be split exactly by typing the separator as-is — no need to clean the text first.
Frequently Asked Questions
What is a text separator?
A text separator (or text splitter) cuts a block of text into separate items at every occurrence of a chosen delimiter — a comma, semicolon, line break, space, tab, or a custom string — and returns the pieces as a clean numbered list.
How do I split text by comma?
Paste the text, choose Comma as the delimiter, and click Split Text. For example, 'apple, banana, cherry' splits into 3 items. Keep Trim on so the space after each comma does not stay attached to the next item.
Why are there empty items in my list?
Empty items appear when two delimiters sit next to each other ('apple,,banana') or when the text ends with a delimiter. The Remove empty items option (on by default) drops those blanks from the result.
Can I split by a custom delimiter?
Yes — choose Custom delimiter and type any separator up to 20 characters, such as '::', ' || ', or a word. The tool splits on the exact string you typed, including any spaces in it.
Last updated: