Word counter
Words, characters, and paragraphs at a glance.
- 1Add input
- 2Review and run
- 3Get your result
Tool input and files are processed in this browser without being uploaded.
Before you start
Count English word patterns, Han characters, lines and paragraphs in pasted text. Compare Unicode code points, code points excluding whitespace, UTF-16 units, grapheme clusters and UTF-8 bytes. These nine measures can give different answers for emoji and mixed-language writing.
How to use this tool
- Paste content into “Text”, or load the example to try it.
- Let the counts update after a short pause, or select “Count text” to run the counter yourself.
- Read the labeled counts and copy a value or the full JSON summary. Compare the required counting rule with your destination's own limit.
Supported inputs and limits
Pasted text can contain up to 1 MiB (1,048,576 bytes) when encoded as UTF-8. Emoji, Han characters and line breaks contribute to that size; the number of characters that fit depends on the text.
Grapheme counting requires a browser with Intl.Segmenter support. The tool has no fallback when that feature is missing, and segmentation can vary with the Unicode data used by the browser.
Spaces and line breaks stay in the pasted text. Code-point, UTF-16 and UTF-8 totals include them; “Code points without whitespace” excludes whitespace from that count but keeps punctuation.
Worked example
Example input
Hello 世界 😀
Example options
{}Example output
{
"characters": 11,
"utf16Units": 12,
"graphemes": 10,
"charactersWithoutWhitespace": 8,
"englishWords": 1,
"hanCharacters": 2,
"lines": 2,
"paragraphs": 1,
"utf8Bytes": 18
}When something does not work
Keep the original and count smaller sections if the text exceeds the UTF-8 byte limit. For a counting failure, retry in a browser with Intl.Segmenter support. A failed count clears the result; edits or cancellation can leave previous counts visible, so run again and check them before copying. If a row button does not copy, try “Copy result” for the full summary.
Frequently asked questions
Where is my pasted text processed?
The counter processes text in your browser. Switching tools can retain text and counts temporarily in the same tab. This memory has size and time limits and clears when you refresh or close the tab. Copy the values you need to keep.
What should I check in this result?
English words are A–Z/a–z letter runs; an internal ', ’ or - joins adjacent runs into one word. Han characters are counted individually by Unicode script. Emoji and combining marks can span several code points or UTF-16 units while forming one grapheme cluster. Each CRLF, CR or LF starts a new line, including a trailing empty line. Paragraphs are blocks containing non-whitespace text, separated by blank lines; CRLF and CR are treated as LF for that measure. A publisher or editor may apply different rules to the full document.
How do I update and keep the counts?
Automatic counting starts after a pause of about 300 ms. You can also select “Count text”. An empty input produces nine zeros after counting in a supported browser. To keep the result, copy a number using its row button or select “Copy result” for the full nine-value JSON. Wait until the result reflects your latest text before copying.
Documentation & further reading
Related tools
TXT to UTF-8
Read a TXT file with the right source encoding and save it as UTF-8.
Merge TXT files
Combine TXT files in your chosen order and save one UTF-8 text file.
Case converter
Change pasted text to uppercase, lowercase or simple capitalized forms.
Remove duplicate lines
Less repetition. Same order.