Count text
Paste up to 100,000 UTF-16 units. Choose the segmentation language. Text is processed in this browser by this tool; it is not saved or submitted.
Result
Enter your inputs and run the tool.
Text
Count words, graphemes, Unicode code points, UTF-16 units, UTF-8 bytes and lines locally with explicit language and newline conventions.
Paste up to 100,000 UTF-16 units. Choose the segmentation language. Text is processed in this browser by this tool; it is not saved or submitted.
Enter your inputs and run the tool.
Words use Intl.Segmenter isWordLike segments for the selected locale. Graphemes approximate user-perceived characters, including combined accents and emoji sequences. Code points and UTF-16 units measure different representations; bytes use UTF-8. Empty text has zero lines. Otherwise CRLF is one separator; CR or LF also separates lines. A trailing separator creates an empty final line.
Two words, 11 graphemes, 11 code points, 11 UTF-16 units, 11 UTF-8 bytes and one line.
😀 is one grapheme, one code point, two UTF-16 units and four UTF-8 bytes. e followed by U+0301 is one grapheme, two code points and three UTF-8 bytes.
Word boundaries depend on locale and the browser’s Unicode database, so counts may differ from other editors. Emoji are not counted as words here. A browser with Intl.Segmenter is required. Pasted text is never placed in a URL or stored by this tool. Browser textareas normalize entered line endings to LF; counts reflect the text currently in the field.
For corrections or suggestions, contact UtilTrove with a non-sensitive example.