JavaScript Split into chunks Online
Split text in fixed-size chunks.
Run details
The output updates as you type. The tool processes input in your browser.
Worked example
Chunks have a fixed width and can break across words. Use word wrap when word boundaries need to be kept.
- Chunk length
3- Chunk ending
"\\n"
manualsplus
man\nual\nspl\nus\n
Using this operation in JavaScript
The interactive result uses JavaScript. JavaScript string indexes count UTF-16 code units. Use code-point iteration when working with supplementary Unicode characters.