Why can one visible character count as several?
“Character” can mean a stored code point or a visible symbol. This counter measures Unicode code points, so a combined emoji or an accented letter built from two parts can increase the total without adding another visible symbol.
One character. Three ways to count it.
Look inside a letter or an emoji. Change the sample to see what your character count actually measures.
The initial sample is the letter e followed by a separate combining acute accent. All counts include whitespace.
- UTF-16 code units
- 2
- Unicode code points
- 2
- Grapheme clusters
- 1
The units used by JavaScript’s string length.
The “Characters” count in this tool.
Groups approximating user-perceived characters.
2 code points form 1 grapheme cluster. This tool counts each code point separately.
Code points inside the text
- e
U+0065 - Combining acute accent
U+0301
Every code point is shown. Counts cover the full text.
An accent can be a separate code point; a joined emoji can contain several. This counter does not normalize the text. Grapheme grouping uses your browser’s Unicode rules. Read MDN on string length and Unicode’s segmentation rules.
Worked examples
- Starting point
- é compared with e followed by a combining acute accent.
- Result
- The first representation counts as 1 character; the second counts as 2.
- Why it happens
- They can look identical, but their code point sequences differ. The tool does not normalize one representation into the other before counting.
- Starting point
- The single displayed emoji 👩💻.
- Result
- 3 characters in this counter.
- Why it happens
- The sequence contains a woman, a zero-width joiner and a laptop. It is one extended grapheme cluster, but three code points; the joiner is not removed as whitespace.
- Starting point
- A, one space, B, then one line break.
- Result
- 2 words, 4 characters, and 2 characters without whitespace.
- Why it happens
- The space and line break each contribute one code point in the text field. Excluding whitespace removes them, not punctuation or emoji components.
Choose for the job
- A submission has a strict character limit.
- Check its own counter too. It may count grapheme clusters, UTF-16 units or bytes instead of this tool’s code points.
- Two editors disagree on the number of words.
- Inspect hyphens, apostrophes, URLs and mixed-language text. Different segmentation rules can be reasonable for different destinations.
Without whitespace does not mean letters only
The reduced total excludes whitespace. Digits, punctuation, combining accents and joiners remain. Do not use it as an alphabetic-letter count or as a measure of how many symbols will occupy a line.
How these examples are derived
Characters are counted by iterating Unicode code points. Whitespace is excluded for the second character total. Words use the browser’s English word segmentation; older browsers without that feature use a letter-and-number fallback that keeps internal apostrophes.
How to use word counter
Check the length of an email, article or short description. Counts update as you type, with separate totals for words, characters and characters without whitespace.
- Type or paste your text.
- Read the live word and character totals.
- Edit your text until it fits your intended length, or clear the field to start again.
Check a short introduction
The text “Hello world!” has 2 words, 12 characters including the space and punctuation, and 11 characters without whitespace. Line breaks and tabs count as whitespace.
Good to know
- Word counting uses the browser’s English word segmentation. Other editors can apply different rules to contractions, hyphens and punctuation.
- Characters are counted as Unicode code points. A displayed symbol made of multiple code points may count as more than one character.
- Empty input produces zero for every count. Your text is not saved between visits.
Common questions
Why does my editor show a different word count?
Editors do not all split words in the same way. Hyphens, apostrophes, URLs and mixed-language text can produce different counts. For a submission with a strict limit, check the destination’s own counter too.
Does the character count include spaces?
The total character count includes spaces, punctuation and line breaks. The separate count without whitespace excludes spaces, tabs and other whitespace characters.