Text Transform

Text splitter

Transformed in your browser · nothing is uploaded

Local · breaks on spaces, not mid-word
Advertisement
320 × 100

Splits long text into chunks of at most the length you set, cutting at a space so words stay whole. The chunks come back separated by a blank line. The default of 280 is one post on X; 160 is one SMS, and 2,200 an Instagram caption.

How to use the text splitter

1 Paste the long text.
2 Set the characters per chunk to whatever the box you are filling allows.
3 Copy the chunks one at a time. They are separated by a blank line.
4 Add your own 1/5 numbering if a reader needs the order.

The SMS limit is the one that catches people, because it is about encoding rather than about characters. A single message holds 160 characters while the text stays inside the GSM alphabet; one character outside it. An emoji, a curly apostrophe, an em dash; switches the whole message to 16-bit encoding and the limit drops to 70. A message that fitted comfortably becomes three, at three times the cost. Running the text through the cleaner first, which flattens curly quotes and dashes back to their ASCII equivalents, often brings it back under one segment. A message long enough to be split carries a joining header in every part, so each part holds slightly less than a single message would.

The splitting itself measures the way a browser measures a string, so an emoji counts as two rather than one. Platform counters do not always agree: X counts a link as a fixed length however long it really is, and weights some scripts differently, so treat a chunk size as a ceiling with a little headroom rather than an exact match. The break point is a space: a single word longer than the chunk, which in practice means a URL, gets cut mid-word, because the alternative is an oversized chunk that will be rejected. Chunks are trimmed, so a line break that lands on a boundary is lost.

Questions

Only when one word is longer than the whole chunk, such as a URL. Everything else breaks at a space.

MDN, working with strings
Advertisement
300 × 250
Was this tool any good?
Internal signal only · I use it to find the tools worth rebuilding