TextArray
100% local

Split text

Split text by any delimiter and get one item per line.

Input
Output

Split text

Paste a string and this tool cuts it at every delimiter, returning one item per line. A comma is the default, so a CSV row becomes a clean vertical list in a second — but any delimiter works: a semicolon, a pipe, " | ", " and ", or a whole word.

Tabs and newlines can be typed as escape sequences: enter \t to split a tab-separated row copied from a spreadsheet, or \n to break on existing line breaks. For anything more flexible, turn on regex mode and the delimiter becomes a regular expression — [,;] splits on commas and semicolons at once, \s*\|\s* handles a pipe with unpredictable spacing around it, and \d+ cuts at every run of digits. If the pattern is malformed the tool says so calmly instead of failing silently, and an empty delimiter simply asks you for one.

Two options tidy the result. Trim items strips leading and trailing whitespace from each piece, so "a, b, c" yields three clean values rather than values with stray spaces. Remove empty items drops the blanks that appear when delimiters sit next to each other or at the end of the string. Both are on by default; turn them off when you need the exact split, empty slots included — useful when the position of each field matters.

The tally shows how many items you got and the size of the output, updating live as you type. Everything runs in your browser: your text is never uploaded, so exported data, API responses and internal lists stay on your device. Copy the result or download it as a .txt file.

FAQ

How do I split by a tab or a line break?
Type \t for a tab or \n for a line break in the delimiter field. Both escape sequences are converted to the real character before splitting.
Can I split on more than one delimiter?
Yes. Turn on regex mode and use a pattern such as [,;] to split on commas and semicolons at the same time.
Why do I see fewer items than expected?
Empty items are removed by default. Turn off "Remove empty items" to keep the blanks produced by consecutive delimiters.
What happens if my regular expression is invalid?
The tool shows a short message asking you to fix the pattern or switch regex mode off, and leaves the output empty until it is valid.
Is my text uploaded anywhere?
No. The tool runs entirely in your browser and your text never leaves your device.