Skip to content
ToolkitHub

Word & Character Counter

Count words and characters

Guide

Counting words, characters and tokens accurately

By Logappradeep · ServiceNow developer

Length limits are everywhere: essay word counts, meta descriptions, social posts, SMS messages, app store listings, form fields, and AI prompts. This counter updates as you type and shows six numbers at once: words, characters, characters without spaces, lines, estimated reading time, and GPT tokens.

How each number is calculated

  • Words: sequences of non-whitespace characters separated by spaces, tabs, or line breaks. don't, e-mail, and 3.14 each count as one word.
  • Characters: everything, including spaces and line breaks.
  • No spaces: characters with all whitespace removed, which some academic and translation briefs use.
  • Lines: the number of lines, including empty ones.
  • Read time: words divided by 200, a common estimate for silent reading speed, rounded up to the next minute.
  • GPT tokens: the token count under OpenAI's cl100k_base encoding, used by GPT-4 and GPT-3.5 Turbo. Use the dedicated AI Token Counter to compare other encodings.

Common limits worth knowing

  • Meta descriptions: search engines truncate by pixel width rather than characters, but roughly 150–160 characters usually fits on desktop results.
  • Title tags: around 50–60 characters typically avoids truncation.
  • X (Twitter) posts: 280 characters for standard accounts, with some characters such as emoji and CJK counted as two.
  • SMS: a single message holds 160 characters in the basic GSM-7 alphabet, but only 70 if any character, such as an emoji or many accented letters, forces Unicode encoding.

Why counts differ between tools

Character counts are not as simple as they look. This counter measures characters the way JavaScript does, in UTF-16 code units, so most emoji count as two characters and some combined emoji, like family or flag sequences, count as more. A database column, a form validator, or a social platform may count bytes, code points, or visible characters instead, so a text that fits here can still be rejected elsewhere, especially when it contains emoji.

Word counts vary too. Word processors sometimes treat em-dashes or slashes as word breaks, and languages written without spaces, such as Chinese, Japanese, and Thai, are counted as one long "word" per unbroken run of text by whitespace-based counters. For those languages, character count is the more meaningful measure.

Privacy and persistence

Your text is saved in your browser's local storage so it survives a refresh or an accidental tab close, which is handy for drafts. It never leaves your device. Use the Clear button to remove it, especially on a shared computer.

Frequently asked questions

Why does an emoji count as two characters?

Most emoji sit outside the Basic Multilingual Plane and are stored as two UTF-16 code units, which is how JavaScript and many platforms measure length.

How is reading time estimated?

The word count is divided by 200 words per minute and rounded up. Technical or dense text usually takes longer to read.

Does it count words in Chinese or Japanese correctly?

Words are counted by spaces, so text without spaces counts as one word per run. Use the character count for those languages.

Is my text saved?

Yes, in your own browser's local storage only, so it survives a refresh. Click Clear to remove it.