Word and character counter

Count words, characters, Chinese characters and lines.

  • Runs locally
  • Free

Use the tool

Your files are processed in your browser and are not uploaded to a server.

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

  1. Paste text into the input box.

  2. Read the live word, character, Han character, line and UTF-8 byte counts.

Good to know

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.

LineWhat it countsNot counted
WordsWord-like segments found by the browser’s word segmenter (Intl.Segmenter), using the language of this pageSpaces, punctuation, emoji
Characters (including spaces)Every Unicode code point: letters, digits, punctuation, spaces, tabs and line breaksNothing
Han charactersCharacters in the Han script: Chinese characters and Japanese kanji, including 々 and 〇Kana, punctuation, Latin letters, digits
LinesLine breaks plus one; an empty box shows 0—
UTF-8Size 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.

TextWordsSegments countedWhy
Don't stop.2Don't · stopThe apostrophe sits between letters, so “Don’t” is one word; the full stop is not a word
well-known e-mail4well · known · e · mailHyphens break words, so each hyphenated compound counts as two
3.14 1,000 12 50043.14 · 1,000 · 12 · 5003.14 and 1,000 are single numbers; a space inside 12 500 makes two
Great 👍1GreatEmoji 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.

TextSegmentsWordsHan charactersCharacters (including spaces)
我爱北京天安门。我 · 爱 · 北京 · 天安门478
今天天气很好,我们去公园散步吧。今天 · 天气 · 很好 · 我们 · 去 · 公园 · 散步 · 吧81416
今日は良い天気です。今日 · は · 良い · 天気 · です5510
東京タワーへ行きます東京タワー · へ · 行き · ます4310

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.

TextCharacters (including spaces) (code points)UTF-16 unitsUTF-8 bytes
👍 a single emoji124
👍🏽 with a skin tone248
👨‍👩‍👧 family (3 people + 2 joiners)5818
🇫🇷 flag (2 regional indicators)248
é as one precomposed character112
é as e + combining accent223
a, Windows line break, b333
我爱北京天安门。8824
  • 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.