Free Text Separator — Split Strings by Any Delimiter
Got "apple, banana, cherry" when you needed one item per line? The Text Separator splits any text on the delimiter you choose — comma, semicolon, pipe, tab, newline or a custom string — then trims whitespace, drops empties, optionally sorts and removes duplicates. It is the fastest way to turn inline lists into spreadsheet-ready columns.
🔒 100% Private — runs in your browser, nothing is uploadedHow to Use This Text Separator (Step-by-Step)
- Paste your text — Any list, log line or CSV fragment works.
- Choose the delimiter — Comma, semicolon, pipe, tab, newline — or type a custom one like "--".
- Toggle options and split — Trim spaces, keep unique values, sort — then copy the clean lines.
Splitting, Trimming and Deduplication — Under the Hood
Under the hood the tool calls String.split() on your delimiter, maps each fragment through trim() to remove invisible whitespace, filters out empties, and pipes the array through a JavaScript Set for duplicate removal. Sorting uses locale-aware comparison so accented characters land in the right place.
Frequently Asked Questions
Can I split on multi-character delimiters?
Yes — pick Custom and type anything like "||" or "###".
Does it remove empty lines?
Yes, blank parts are dropped automatically after trimming.
Will it sort numbers correctly?
Sorting is alphabetical; for numeric order paste into a spreadsheet.