Text & documents tool

Split Text

Break text into reusable pieces while choosing how boundaries, Unicode characters, cleanup, wrappers, and output separators should behave.

Local by designWalang kailangang accountPrivacy details ↗

Maximum 100,000 characters. Processing stays in this browser.

Used by an empty literal separator and both length-based methods.

Zero to 20 literal characters. Leave empty to split by the selected Unicode unit.

Zero to 20 literal characters.

Zero to 20 literal characters.

Paano gamitin

How to use

  1. Enter up to 100,000 characters and choose one of four split methods.
  2. Set the method-specific boundary plus optional trimming, empty-piece removal, wrappers, and output separator.
  3. Split the text, review the retained pieces, then copy the result or download a text file.

Four defined split methods

Literal mode matches the separator exactly; an empty literal separator splits into displayed grapheme clusters or Unicode code points. Regular-expression mode uses the browser RegExp engine with the Unicode flag and optional ignore-case, multiline, and dot-all flags. Fixed-length mode groups the selected Unicode units by a maximum size. Exact-piece mode distributes the units as evenly as possible, giving the first pieces one extra unit when division has a remainder.

Regex isolation and practical limits

Regular expressions run in a temporary Web Worker that is terminated after one second, keeping a pathological expression from freezing the page. Capturing groups follow JavaScript split semantics and can appear as output pieces; use a noncapturing group when that is not wanted. Input is limited to 100,000 UTF-16 characters, the retained result to 50,000 pieces, and final output to 500,000 UTF-16 characters.

Frequently asked questions

You may also want to know

Does the literal separator treat dots or brackets as regex?

No. Every character in a literal separator is matched exactly. Choose Regular expression only when you intentionally want regex syntax.

Will emoji and combining characters stay together?

Choose displayed grapheme clusters for empty-separator, fixed-length, or exact-piece splitting. Code-point mode intentionally treats the underlying Unicode scalar values separately.

Why did regex capturing groups appear in the result?

JavaScript split inserts matched capturing-group text between the surrounding pieces. Change groups such as (abc) to noncapturing groups such as (?:abc) when you only want them to define a boundary.