Skip to main content

Split text into chunks by character count

Split text into chunks that stay under a given number of characters, keeping paragraphs, sentences and words whole where possible, then copy each chunk.

  • Clipboard
  • Export

Embed this widget

Customize the result, check the live preview, then copy the code.

Preview

Embed code type

Code to copy

Responsive and automatically resized by Bethemesh.

Was this tool useful?

On this page

How does this tool work?

Cut a long text into chunks that respect a character limit: a post split into a thread, a form field with a maximum length, translation in pieces or text fed in parts to an AI assistant. The tool keeps together whatever it can, paragraphs, then sentences, then words, shows every chunk with its length and lets you copy it with one click. The text stays in your browser.

Length is counted in user-perceived characters, that is grapheme clusters as defined by Unicode Standard Annex #29: an accented letter counts as one even when typed as two technical characters, and so does a composed emoji such as 👍🏽 or a family. Each line break counts as one character. This is the same count as the text statistics tool, so a chunk never cuts an emoji or a letter in two.

With the recommended method, the tool fills each chunk with whole paragraphs, separated by a blank line. A paragraph that is too long is split into sentences, following the segmentation rules of the page language, then a sentence that is too long is cut between two words. A word longer than the limit, such as a web address, is cut at the character. The end of a cut item can then take the following sentences or words if they fit within the limit.

“Between words” fills chunks word by word regardless of sentences and paragraphs, which gives more even chunks. “Exact cut at the character” creates chunks of exactly the maximum length, even in the middle of a word: it is the only method where the chunks put end to end give back exactly the original text. With the other two, the space or line break at the cut is removed.

The result shows the first 200 chunks, each with its own copy button. The “All chunks” panel gathers them, separated by a “---” line, so you can copy or download them in one go. The text can contain up to one million characters.

How to use this tool

  1. Paste the text

    Type, paste or import the text to split.

  2. Set the limit

    Enter the maximum number of characters per chunk and choose the splitting method.

  3. Copy the chunks

    Copy each chunk with its button, or copy or download them all from the bottom panel.

Use cases

Publish a thread

Prepare a series of posts under a social network’s limit, keeping whole sentences in each post.

Fit a limited field

Spread a description or a note across several fields of a form, business software or database with a character limit.

Process a long document in parts

Cut a text into reasonably sized pieces for translation, proofreading or an AI assistant that accepts a limited length.

Examples

Paragraphs and sentences kept

Limit of 90 characters, recommended method. The first paragraph fits whole (68 characters); the second has 100 and is split between its two sentences (63 and 36).

Input

The browser processes the text locally. Nothing is sent to a server.

Splitting keeps whole sentences when they fit within the limit. Otherwise it cuts between two words.

Result

The browser processes the text locally. Nothing is sent to a server.

---

Splitting keeps whole sentences when they fit within the limit.

---

Otherwise it cuts between two words.

Over-long sentence cut between two words

Limit of 50 characters. The second sentence has 61: it is cut after “the” (46 characters), and its end takes the next sentence.

Input

First post, very short. The second post is quite a bit longer than the first one was. End.

Result

First post, very short.

---

The second post is quite a bit longer than the

---

first one was. End.

Emoji never cut

Limit of 2 characters, exact cut. Each 👍🏽 counts as one character even though it combines two technical symbols, and it is never separated from its skin tone.

Input

👍🏽👍🏽👍🏽é

Result

👍🏽👍🏽

---

👍🏽é

Tips and best practices

  • Keep a margin: some social networks count an emoji or an ideograph as two characters, and a text message counts according to its own alphabet.
  • An AI assistant measures its limit in tokens, not characters: the ratio between the two depends on the language, so keep a comfortable margin.
  • To number a thread (1/5, 2/5…), lower the limit by a few characters before splitting, then add the numbers by hand.
  • Check each chunk’s length on its label before publishing; it uses the same count as the limit.

Sources and references

Frequently asked questions

How are characters counted?

As user-perceived characters (Unicode grapheme clusters): an accented letter, an emoji with a skin tone or a flag each count as one. Spaces and line breaks count as one too.

Can words be cut?

Only with the exact cut, or when a single word is longer than the limit, such as a long web address. The other two methods always cut between words.

Do the chunks put back together give the original text?

Yes with the exact cut at the character. With the other methods, the space or line break at the cut is removed: join the chunks with a space to get the text back.

Which limit should I choose for a social network?

The one the platform states, minus a margin for emoji, links or numbering. Platforms count in different ways; the tool counts characters as a reader sees them.

Is my text sent anywhere?

No. The splitting is calculated in your browser; no chunk is sent to a server.

Related tools

Tools similar or complementary to this one.

Similar tools

Analyse a text and get its number of words, characters, lines, sentences and paragraphs.

Text & writingFeaturedUse this tool

Split a long list into groups of a fixed size, based on the number of items you choose.

Text & writingUse this tool

Put a broken text back on one line, or join a list with a comma or another separator.

Text & writingNewUse this tool