Text Statistics
Text Statistics lets you inspect Unicode characters, UTF-8 bytes, words, lines and whitespace in one report. 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
Inspect Unicode characters, UTF-8 bytes, words, lines and whitespace in one report.
Inputs and settings
Text Statistics accepts Input text.
Worked example
Text Statistics example — Input text: "Hello world\nA second line\nHello world". Computed output: { "codePoints": 37, "utf16Units": 37, "utf8Bytes": 37, "words": 7, "lines": 3, "whitespace": 6 }
Output and limitations
Text Statistics: Input is treated as plain text; it is never executed.
Technical references: JavaScript Unicode normalization
Text Statistics FAQs
Text Statistics applies the following rule to your input: Inspect Unicode characters, UTF-8 bytes, words, lines and whitespace in one report. The worked example on this page uses the same processor as the result button.
Text Statistics 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 Statistics provides this sample: { "codePoints": 37, "utf16Units": 37, "utf8Bytes": 37, "words": 7, "lines": 3, "whitespace": 6 }. Use the sample button to reproduce it, then replace the inputs with your own values.