String statistics
Count Unicode characters, words, lines, whitespace and UTF-8 bytes.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Text
Statistics
Calculated using Unicode and UTF-8 rules.
Enter text to calculate statistics
Characters: 0 · Words: 0 · Lines: 0 · Bytes: 0 · Whitespace: 0
What this tool does
- Inspect mixed Chinese and English text size.
- View characters, words and bytes together.
- Check line breaks and whitespace counts.
Example
Input
你好 world 😀
Output
10 characters, 2 words, 17 bytes
Characters use Unicode code points and bytes use actual UTF-8 encoding length.
Frequently asked questions
How many characters is an emoji?
Each Unicode code point counts as one character.
How are Chinese bytes counted?
TextEncoder calculates their actual UTF-8 encoding length.
How many lines does empty text have?
Empty text returns zero lines.
Keywords:字符统计string statisticsUnicodeword countUTF-8