Category: Text tools
Text Splitter
Split text by a delimiter or a regular expression
Split text into items using a literal delimiter or a regular expression, with options to trim each item and drop empty ones, then output the result one per line or comma-separated. Runs entirely in your browser.
4 items
apple banana cherry date
Everything on this page is processed in your browser. Nothing is uploaded.
What this tool does
Breaking a block of text into items, a comma-separated list pasted from an email, or a log line with irregular spacing, usually needs more than a single split on one character. This tool splits on either a literal string or a regular expression, so a pattern like \s+ collapses any run of whitespace into one break, then optionally trims each item and drops the empty ones a trailing delimiter tends to leave behind.
How to use it
- Paste your text, or load the example.
- Enter a delimiter, or switch to Regex and enter a pattern.
- Turn on Trim whitespace or Drop empty lines as needed, choose the output layout, then copy the result.
Privacy
This tool runs entirely in your browser. Your input is never uploaded, stored or shared — closing the tab removes it.
Frequently asked questions
- Is my text uploaded anywhere?
- No. Splitting happens in JavaScript running in the page, so nothing you paste is sent anywhere.
- What happens if my regular expression is invalid?
- The tool reports that the pattern is invalid instead of splitting, so you can fix it before continuing.
- Can I output the items as CSV instead of one per line?
- Yes, switch the output layout to Comma-separated; items are joined with a comma without any extra quoting.