About this tool
Count words, characters, Han characters, lines and UTF-8 bytes live as you type. Useful for checking essays, abstracts, ad copy and social posts against length limits.
Typical uses
- Check an abstract stays under 300 words
- Confirm titles and descriptions fit SEO lengths
- Count words for a translation or writing invoice
How to use
Paste text into the input box.
Read the live word, character, Han character, line and UTF-8 byte counts.
Word counts use browser word segmentation and can vary across browsers and languages.
What each of the five numbers measures
The five lines under the text box update together as you type, and each answers a different question. Before comparing against a limit, check which definition the limit uses.
| Line | What it counts | Not counted |
|---|---|---|
| Words | Word-like segments found by the browser’s word segmenter (Intl.Segmenter), using the language of this page | Spaces, punctuation, emoji |
| Characters (including spaces) | Every Unicode code point: letters, digits, punctuation, spaces, tabs and line breaks | Nothing |
| Han characters | Characters in the Han script: Chinese characters and Japanese kanji, including 々 and 〇 | Kana, punctuation, Latin letters, digits |
| Lines | Line breaks plus one; an empty box shows 0 | — |
| UTF-8 | Size of the text in bytes when encoded as UTF-8 | — |
For English, “Words” is the number to compare with an essay or abstract limit, and “Characters (including spaces)” is the one to use for limits stated in characters. There is no separate count without spaces; if a limit excludes spaces, subtract them yourself or remove them first with the whitespace tool.
Where words split in English text
Words are found with the Unicode word-boundary rules (UAX #29), the same rules browsers use for double-click selection. An apostrophe between letters keeps a word together, but a hyphen splits it. A full stop or comma between digits stays inside the number. These choices explain most differences from Microsoft Word, Google Docs or a hand count.
| Text | Words | Segments counted | Why |
|---|---|---|---|
| Don't stop. | 2 | Don't · stop | The apostrophe sits between letters, so “Don’t” is one word; the full stop is not a word |
| well-known e-mail | 4 | well · known · e · mail | Hyphens break words, so each hyphenated compound counts as two |
| 3.14 1,000 12 500 | 4 | 3.14 · 1,000 · 12 · 500 | 3.14 and 1,000 are single numbers; a space inside 12 500 makes two |
| Great 👍 | 1 | Great | Emoji are not words, but they do count as characters |
- Numbers count as words, so a passage full of dates and figures can come out higher than in editors that skip them.
- Curly (’) and straight (') apostrophes behave the same way.
- If a limit is strict, test a sample paragraph in the tool and in the program your reader will use; the difference is usually a few hyphenated words.
Chinese and Japanese text: words are not characters
Chinese and Japanese do not put spaces between words, so the segmenter uses a built-in dictionary to split them. The “Words” line therefore counts dictionary words, not characters. The table shows how the text was split when this page was built; a different browser’s dictionary can split a few phrases differently, while the character, Han and byte counts are the same everywhere.
| Text | Segments | Words | Han characters | Characters (including spaces) |
|---|---|---|---|---|
| 我爱北京天安门。 | 我 · 爱 · 北京 · 天安门 | 4 | 7 | 8 |
| 今天天气很好,我们去公园散步吧。 | 今天 · 天气 · 很好 · 我们 · 去 · 公园 · 散步 · 吧 | 8 | 14 | 16 |
| 今日は良い天気です。 | 今日 · は · 良い · 天気 · です | 5 | 5 | 10 |
| 東京タワーへ行きます | 東京タワー · へ · 行き · ます | 4 | 3 | 10 |
When a Chinese or Japanese brief asks for a number of “字” or “文字”, compare it with “Han characters” (Chinese characters only) or “Characters (including spaces)” (with punctuation). In Japanese, kana are not Han characters: “今日は良い天気です。” has 5 Han characters out of 10.
What counts as one character: emoji, accents and line breaks
“Characters (including spaces)” counts Unicode code points. An emoji that looks like one symbol can be several code points, and systems that count UTF-16 code units (JavaScript’s length, many databases and web forms) get yet another number. The table compares the three measures.
| Text | Characters (including spaces) (code points) | UTF-16 units | UTF-8 bytes |
|---|---|---|---|
| 👍 a single emoji | 1 | 2 | 4 |
| 👍🏽 with a skin tone | 2 | 4 | 8 |
| 👨👩👧 family (3 people + 2 joiners) | 5 | 8 | 18 |
| 🇫🇷 flag (2 regional indicators) | 2 | 4 | 8 |
| é as one precomposed character | 1 | 1 | 2 |
| é as e + combining accent | 2 | 2 | 3 |
| a, Windows line break, b | 3 | 3 | 3 |
| 我爱北京天安门。 | 8 | 8 | 24 |
- Line breaks are characters, one character and one byte each. Text pasted from Windows uses CRLF, but the browser’s text box turns every CRLF into a single line feed, so a line break never counts as two here, even though the original file had 2 bytes per break. A final Enter adds a line, so “a” followed by a newline shows Lines: 2.
- Two “é” that look identical can differ by one character. Text copied from PDFs or macOS file names is often in the decomposed form.
- Byte limits hit non-English text first: every Chinese character is 3 bytes in UTF-8 and most emoji are 4.
- Counting runs in your browser; the text is not uploaded.
Sources
Frequently asked questions
What is the difference between characters and Han characters?
Han characters count only CJK ideographs; characters include every letter, digit, punctuation mark and space.
Why does my word count differ from Word?
Word counts use the browser’s word segmentation, which can vary slightly between browsers and languages.
Is my text uploaded?
No. Counting happens live in your browser.
Suggest an improvement to this tool
Missing an option, something awkward to use, or a wrong result? Let us know.