About Text Splitter
Text Splitter breaks long text into smaller parts you can copy, download or share. You choose the unit to split by: Characters, Words or Lines, or a character or word to split at. You also set the size of each part, whether to keep words whole, and the separator inserted between parts. The tool shows the parts, the total number of parts, and the longest part measured in characters. Everything runs in your browser; nothing is uploaded, and results update instantly as you type. You can copy results and create a share link that reopens with the same inputs. This makes the tool handy for filling forms, splitting posts, preparing text for editors, or simple file chunking without leaving your machine.
How to use it
- 1Paste or type your text into the main box.
- 2Choose Split by: Characters, Words, Lines, or enter a character or word to split at.
- 3Enter the Size of each part and set Keep words whole to Yes or No.
- 4Pick how parts are separated and copy or share the parts.
Worked example
Input: "The quick brown fox jumps over the lazy dog." (44 characters). Mode: Characters, Size: 10, Keep words whole: Yes, Separator: Part 1 of 5 labels. Result parts: 1) "The quick" (9 chars), 2) "brown fox" (9 chars), 3) "jumps over" (10 chars), 4) "the lazy" (8 chars), 5) "dog." (4 chars). Number of parts: 5. Longest part: 10 characters.
How it works
Characters: parts hold at most the chosen number of characters; with Keep words whole on, a part ends at the last full word that fits (a single word longer than the limit is cut)Words and Lines: each part holds that many words or linesSplit at: the text is cut at every place the chosen character or word appears, and each part is trimmedResults update instantly as the visitor types; there is no calculate buttonVisitors can copy the result and share a link that reopens with their numbersSource: Unicode Text Segmentation (UAX #29)GNU coreutils split invocationOpenAI embeddings and token guidance. Last checked 6 November 2026.
What it is good for
- Runs in your browser with no upload
- Results update instantly as you type
- Shows parts, part count and longest part length
- No token counting for LLMs is provided
- No overlap option or sentence-aware chunking beyond keep words whole
Questions people ask
Will my text be uploaded to a server?
No. The splitter runs in your browser using client-side code. Nothing is sent to a server while you work, and results update instantly as you type.
How does Keep words whole work?
When set to Yes, a part ends at the last full word that fits within the chosen character limit. If a single word exceeds the limit, that word is cut to fit the part.
How do I split by a custom character or word?
Pick Split by and enter the character or word you want. The tool cuts at every occurrence and trims whitespace from each part.
Can I use this to prepare chunks for embeddings or LLMs?
You can split by characters, words, or lines here, but this tool does not count model tokens. For embeddings, use a model-specific tokenizer and leave headroom, as shown in OpenAI documentation.
How do I keep the parts when I return later?
You can copy the text or use the share link feature. The share link reopens the tool with the same text and settings so you can continue where you left off.
What output details does the tool show?
The tool shows each part, the total number of parts, and the longest part measured in characters. Use those numbers to check limits for forms or uploads.
Help keep every tool free
FreeToolr stays free because people help it grow. Share a tool you like, tell us what to build next, or support us on Ko-fi.