Text slicer
Split a string into lines by Unicode code-point length.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Result
One chunk per line; length counts Unicode code points.
Enter text to see the result
Chunks: 0 · Code points: 0
What this tool does
- Break a long licence key, serial number or token into readable lines.
- Split mixed-script text by Unicode code point instead of UTF-16 unit.
Example
Input
abcdef
Output
ab cd ef
The default chunk length is 2 code points; the 6-character example yields 3 chunks, one per line.
Frequently asked questions
Is the length counted in characters or bytes?
In Unicode code points. Array.from is used so that astral characters such as 😀 (a surrogate pair) are never cut in half. Common CJK characters count as one code point each.
Can combining marks be split?
Yes. A grapheme cluster such as a + U+0301 contains two code points, so it may be cut apart; do not use this tool when cluster-level splitting is required. Nothing else about the text is modified.
What chunk lengths are allowed?
Any integer from 1 to 100000. Leaving the field empty uses the default 2; 0, negative numbers or fractions raise an error instead of being rounded silently.
Keywords:Text slicertxt-slicetextlist