About the Text Splitter
This text splitter cuts a piece of text into parts and then joins the parts back the way you want. Split at commas, spaces, new lines, tabs, semicolons, a separator of your own, a regular expression, sentence endings or every fixed number of characters. Then show the pieces one per line, separated by commas, as a numbered list and more. Options let you trim spaces, remove empty pieces and remove repeats. It turns a comma separated list into a column to paste into a spreadsheet, a column back into a comma separated line, long text into message-sized chunks, and a paragraph into its sentences.
Updated October 2026
How to use the Text Splitter
- 1Paste your text.
- 2Choose where to split it: commas, spaces, new lines or another option.
- 3If you picked a custom separator, a pattern or a length, enter it.
- 4Choose how to show the pieces, and tick trim, remove empty or remove repeated pieces.
- 5Copy the result or download it as a text file.
Common jobs
- Comma separated email list to one address per line
- A pasted column of names to a single comma separated line for a form
- A long message to 160-character chunks
- A paragraph to numbered sentences for editing
- Words of a sentence to a list to sort or count
Tips
Leave Trim spaces on unless the spaces are important, as lists often have a space after each comma. Turn on Remove empty pieces to ignore double commas and blank lines. If your data contains commas inside quoted fields, such as a CSV file with addresses, a simple comma split will cut those fields in the wrong places, so use the CSV Tools instead.
Related tools
Sort Lines puts pieces in order, Remove Duplicate Lines cleans repeats, the Word Frequency Counter counts words, Head and Tail Text picks lines by position and the CSV Tools handle spreadsheet data properly.
Features
- Split at commas, spaces, new lines, tabs and semicolons
- Custom separator or regular expression
- Split every N characters
- Split into sentences
- Join back with lines, commas, spaces, tabs or numbers
- Trim, remove empty and remove repeated pieces
- Runs in your browser
Frequently asked questions
How do I turn a comma separated list into one item per line?
Paste the list, choose Commas under Split at, and leave Show the pieces on One per line. Each item appears on its own line, with spaces around it removed if you keep the trim option on. Copy the result into a spreadsheet or document.
How do I turn lines into a comma separated list?
Choose New lines under Split at, and choose Comma and space or Commas under Show the pieces. Your column of items becomes a single line. Remove empty pieces so blank lines don't leave stray commas.
How do I split text into chunks of a fixed size?
Choose Every N characters and enter the size, such as 160 for text messages or 280 for short posts. The text is cut into pieces of exactly that many characters, apart from the last. Cuts can fall in the middle of words, so check before sending.
Can I use my own separator?
Yes. Choose Another separator and type it, for example a pipe or two dashes. You can type \n for a new line or \t for a tab. For more complex rules, such as splitting at any digits, use the regular expression option.
How does the sentence split work?
It splits after a full stop, question mark or exclamation mark followed by a space. It is quick but simple, so abbreviations like Dr. or e.g. may cause extra splits. Check the result if your text has many abbreviations.
Does it remove duplicates?
If you tick Remove repeated pieces, only the first copy of each piece is kept and the order is preserved. Pieces must match exactly, including capital letters, so Apple and apple count as different.