InputTestHub

Text Splitter

Splits long text into chunks by character count, word count, line count or a custom separator, with numbered output.

Text Nothing uploaded No sign-up Free, unlimited
Text tool
Paste something on the left to see the result.
In short Splitting text breaks a long block into chunks by character count, word count, line count or a custom separator, and numbers the output. Character-count splitting is the one with a subtlety: cutting at exactly N characters lands mid-word, so a usable splitter backs up to the last word boundary and the chunks come out slightly under the limit rather than exactly at it. That is the correct behaviour for anything a person will read. The uses have grown rather than shrunk. Long messages have to be split for platforms with hard limits; documents have to be chunked before they are fed to a language model with a context window; subtitles have to be broken into readable lines. For the language-model case there is a rule worth knowing: splitting on paragraph or sentence boundaries preserves meaning far better than splitting on a character count, because a chunk cut mid-sentence loses the context that made it interpretable. Use the custom separator on a blank line where you can, and fall back to counts only when the text has no structure to split on.

How to use the Text Splitter

  1. Paste your text into the input box on the left.
  2. Adjust the options above the box if you need a different behaviour.
  3. The converted text appears on the right; press Copy to put it on your clipboard.

About the Text Splitter

The Text Splitter splits long text into chunks by character count, word count, line count or a custom separator, with numbered output. It runs as plain JavaScript inside the page, which means there is no upload step, no queue and no size limit imposed by a server — the only limit is your own device.

What people use it for

  • Breaking a long post into a numbered X/Twitter thread.
  • Splitting a script into scenes for a video editor.
  • Chunking a document to fit a paste limit.

Frequently asked questions

Are there any usage caps on the Text Splitter?
There is no cost and no cap. The Text Splitter is not a demo of a paid product, so nothing is held back or watermarked.
Can you see what I put into this page?
No. The Text Splitter runs entirely in your browser using JavaScript. Nothing is transmitted, logged or stored, which you can verify yourself in the Network tab of your browser's developer tools.
What do people use the Text Splitter for most?
Typical uses: breaking a long post into a numbered X/Twitter thread. Splitting a script into scenes for a video editor. Chunking a document to fit a paste limit. It is built for exactly those cases rather than being a general-purpose tool with this bolted on.
Can I use the Text Splitter on mobile?
Yes. The page is responsive and the page works in Chrome, Safari, Firefox, Edge and Samsung Internet on both Android and iOS. There is no app to install and nothing to sign into.

Related text tools

All 92
01

Case Converter

Converts text between twelve cases: UPPER, lower, Title, Sentence, camelCase, PascalCase…

02

Uppercase Converter

Converts any text to UPPERCASE instantly, keeping numbers, punctuation and line breaks exactly…

03

Lowercase Converter

Converts any text to lowercase, including text that was typed with Caps Lock on by mistake.

04

Title Case Converter

Converts headings to proper Title Case using AP and Chicago rules, keeping short words like…

05

Sentence Case Converter

Rewrites text in sentence case: first letter of each sentence capitalised, the rest lowercase…

06

camelCase Converter

Turns any phrase into camelCase for JavaScript, Java and JSON keys, stripping spaces, hyphens…

07

PascalCase Converter

Converts phrases to PascalCase (UpperCamelCase) for class names, React components and type…

08

snake_case Converter

Converts text to snake_case for Python variables, database columns and file names.

09

kebab-case Converter

Converts text to kebab-case for URLs, CSS class names and HTML attributes.

10

CONSTANT_CASE Converter

Converts text to SCREAMING_SNAKE_CASE for environment variables, constants and configuration…