Text Chunker
Text Chunker lets you split text into fixed-size Unicode code-point chunks without breaking surrogate pairs. Enter your own values or load the worked example.
- Copy or download the computed result
- Adjust input text
- See the processing method and limits
Method and calculation
Split text into fixed-size Unicode code-point chunks without breaking surrogate pairs.
Inputs and settings
Text Chunker accepts Input text; Characters per chunk (minimum 1, maximum 10000).
Worked example
Text Chunker example — Input text: "Hello world\nA second line\nHello world"; Characters per chunk: 20. Computed output: Hello world A second line Hello world
Output and limitations
Text Chunker: Input is treated as plain text; it is never executed.
Technical references: JavaScript Unicode normalization
Text Chunker FAQs
Text Chunker applies the following rule to your input: Split text into fixed-size Unicode code-point chunks without breaking surrogate pairs. The worked example on this page uses the same processor as the result button.
Text Chunker has these boundaries: Input is treated as plain text; it is never executed. Start by checking the input text field against the units or format shown.
Text Chunker provides this sample: Hello world A second line Hello world. Use the sample button to reproduce it, then replace the inputs with your own values.