FA Dev Tools

Word Count

Paste or type text and every count updates as you go — words, characters, lines, sentences, paragraphs, bytes and reading time. Select part of the text to count just that. Nothing leaves your browser.

Words
0
Characters
0
No spaces
0
Lines
0

Everything else

Sentences
0
Paragraphs
0
Unique words
0
Non-empty lines
0
CJK characters
0
Chinese, Japanese and Korean
Code points
0
Astral characters count once
Graphemes
0
What a reader sees as one character
Bytes (UTF-8)
0
Size on disk or over the wire
Reading time
0s
200 words/min
Speaking time
0s
130 words/min
Line endings
—
Typing in the box always produces LF

Most used words

No words yet.

Instructions

Counts characters, words, lines and more for whatever you paste in. Everything runs in your browser — the text is never sent anywhere, and it is kept in this browser's local storage so it survives a reload.

  1. Paste or type your text into the box (or hit Paste to take it from the clipboard).
  2. Read the four headline counts: words, characters, characters without spaces, and lines.
  3. Select part of the text to get a Selection count for just that passage.
  4. Use Copy above the smaller cards to put the whole summary on your clipboard.

Tips

  • Words are whitespace-separated runs, so Alice,42 counts as one — the same way an editor counts. Chinese and Japanese are not spaced, so use CJK characters for those instead. In the word list each CJK character is its own entry, and Hide 1–2 letter words leaves them alone.
  • Characters counts UTF-16 code units, which is what a maxlength attribute or a “max 280 characters” limit usually enforces. An emoji costs two there but one under Graphemes.
  • A trailing newline does not open a new line, so a\nb and a\nb\n are both 2 lines. Paragraphs are blocks separated by a blank line.
  • Sentences split on . ! ? … and their full-width forms, so an abbreviation like Dr. reads as a sentence break.
  • Typing in the box always produces LF line endings; CRLF only survives if it arrived via Paste.
  • Hit Example, then click Load example for English prose or the CJK characters card for Chinese text.

About counting words and characters

What a word counter is for

Word and character limits are everywhere: essay and assignment lengths, job application answers, meta descriptions for search results, app store listings, SMS messages, and database columns with a fixed size. A counter tells you how far over or under you are before you submit. Reading and speaking time help you plan a blog post or a talk.

How words are counted

In English, a word is usually counted as a run of characters between spaces, tabs or line breaks. This tool does exactly that, the same way most editors show it in their status bar. That means well-known is one word and so is a delimited value like Alice,42.

Chinese and Japanese are written without spaces, so a space-based count sees a whole sentence as a single word. Many editors, including Microsoft Word, count each Chinese or Japanese character as a word instead. For those languages use the CJK characters count, which counts Han characters, Japanese kana and Korean Hangul. Korean does use spaces between words, so the normal word count works for it too.

Why there are four kinds of character count

“How many characters?” has more than one honest answer once you leave plain English. Characters counts UTF-16 code units, which is what an HTML maxlength attribute and JavaScript's .length measure, so it matches most form limits. Most emoji count as two there. Code points counts each Unicode character once. Graphemes counts what a reader sees as one character, so a flag or a family emoji built from several code points counts once.

Bytes (UTF-8) is the storage size. English letters take 1 byte, accented Latin letters 2, Chinese characters 3 and emoji 4. Use it when a limit is in bytes, such as some database columns or HTTP header sizes.

What this tool does

Every count updates as you type. Select part of the text and you get a separate word, character and line count for just that passage, which helps when trimming one paragraph to a limit. A trailing newline does not start a new line, so the line count matches an editor rather than wc -l. Sentences end at . ! ? … and the full-width 。!?, so abbreviations like Dr. are counted as sentence breaks. Paragraphs are blocks separated by a blank line. Reading time assumes 200 words per minute and speaking time 130.

The most-used-words list ignores case and treats each CJK character as its own word. Your text stays in this browser's local storage so it survives a reload, and it is never uploaded.

Frequently asked questions

Do spaces count as characters?
In the main Characters count, yes: spaces, tabs and line breaks are all included. The No spaces count removes every kind of whitespace, which is what some essay and form limits ask for.
Why does an emoji count as two characters?
Most emoji sit outside Unicode's Basic Multilingual Plane, so JavaScript and HTML store them as two UTF-16 code units. A limit enforced by a web form usually counts them that way. The Graphemes count shows them as one.
How do I count words in Chinese or Japanese text?
Use the CJK characters count. Because these languages have no spaces between words, the standard word count only sees whitespace-separated runs, while counting characters is the usual way to measure their length.