onlinetexttools logo

Text splitter

World's simplest text tool

World's simplest browser-based utility for splitting text. Load your text in the input form on the left and you'll automatically get pieces of this text on the right. Powerful, free, and fast. Load text – get chunks. Created by devs for devs.
we made something new! fun with fractals
We love having fun so we created fractal art generators – dragon fractals, polyflake fractals, z-fractals and many more. Check them out!
fullscreen fullscreen_exit
Split Separator Options
Character that will be used to break text into parts. (Space by default.)
Regular expression that will be used to break text into parts. (Multiple spaces by default.)
Output Separator Options
Character that will be put between the split chunks. (Newline by default)
Text splitter tool What is a text splitter?
With this tool you can split text into pieces. You can do it in two ways. The first is to write a character (or several characters) that will be used for separating text into. The second way is to use a regular expression. For both cases, you can also set the character that will be placed between output chunks. Textabulous!
Text splitter examples Click to use
Split German Numbers
In this example, we break the text into pieces by two characters – a comma and space. As a result, we get a column of numbers from 1 to 10 in German.
1 - eins, 2 - zwei, 3 - drei, 4 - vier, 5 - fünf, 6 - sechs, 7 - sieben, 8 - acht, 9 - neun, 10 - zehn
1 - eins 2 - zwei 3 - drei 4 - vier 5 - fünf 6 - sechs 7 - sieben 8 - acht 9 - neun 10 - zehn
Required options
These options will be used automatically if you select this example.
Character that will be used to break text into parts. (Space by default.)
Character that will be put between the split chunks. (Newline by default)
Text Cleanup via a Regular Expression
In this example, we use a super smart regular expression trick to clean-up the text. This regexp finds all non-alphabetic characters and splits the text into pieces by these non-alphabetic chars. As a result, we extract only those parts of the text that contain Latin letters and words.
Finding%№1.65*;?words()is'12#easy_
Finding words is easy
Required options
These options will be used automatically if you select this example.
Regular expression that will be used to break text into parts. (Multiple spaces by default.)
Character that will be put between the split chunks. (Newline by default)
Three-dot Output Separator
This example splits the text by spaces and then places three dots between words.
If you started with $0.01 and doubled your money every day, it would take 27 days to become a millionaire.
If...you...started...with...$0.01...and...doubled...your...money...every...day,...it...would...take...27...days...to...become...a...millionaire.
Required options
These options will be used automatically if you select this example.
Character that will be used to break text into parts. (Space by default.)
Character that will be put between the split chunks. (Newline by default)
Pro tips Master online text tools
You can pass input to this tool via ?input query argument and it will automatically compute output. Here's how to type it in your browser's address bar. Click to try!
https://onlinetexttools.com/split-text?input=1%20-%20eins%2C%202%20-%20zwei%2C%203%20-%20drei%2C%204%20-%20vier%2C%205%20-%20f%C3%BCnf%2C%206%20-%20sechs%2C%207%20-%20sieben%2C%208%20-%20acht%2C%209%20-%20neun%2C%2010%20-%20zehn&split-by-char=true&char=%2C%20&output-separator=%5Cn
All text tools
Didn't find the tool you were looking for? Let us know what tool we are missing and we'll build it!
Quickly split text into chunks.
Quickly merge lines of text together.
Quickly repeat text many times.
Quickly write text backwards.
Quickly cut text to the given length.
Quickly trim left or right side of text.
Quickly pad the left side of text.
Quickly pad the right side of text.
Quickly align text to the right side.
Quickly center text.
Quickly prepend a prefix to text.
Quickly append a suffix to text.
Quickly URL-escape text.
Quickly URL-unescape text.
Quickly convert plain text to HTML entities.
Quickly convert HTML entities to plain text.
Coming soon These text tools are on the way
Tokenize Text
Create a list of all words in text.
Generate Text Unigrams
Create a list of all monograms.
Generate Text Bigrams
Create a list of all 2-grams.
Generate Text Trigrams
Create a list of all 3-grams.
Generate Text N-grams
Create a list of all n-grams.