How to Count Characters in a Text
What counts as a character, why two tools can give two numbers, and how to get a reliable total.
By the Universal Character Counter Team
What a character is
A character is a single symbol in a text: a letter, a digit, a punctuation mark, a space or a symbol such as % or €. When a form asks for “no more than 200 characters”, it means the total number of these symbols, counted one by one.
That sounds simple, but a computer stores text in a more complicated way than the eye sees it. A letter with an accent, an emoji with a skin tone or a national flag can be built from several pieces inside the file, even though you perceive one symbol. A good counter counts what you see, not what is stored.
The distinction explains most surprises. If you have ever pasted a short text into two tools and received two different totals, the difference almost always comes from how each tool treats invisible or composite symbols, not from a mistake in your text.
The quickest way: use a counter
Counting by hand works for a headline, but for anything longer a character counter is faster and exact. Paste or type the text into the box and the total appears at once. A tool such as this one also shows the count without spaces, the number of words and the number of lines, so you do not need to count again for each rule.
Because the counts update on every keystroke, you can edit while watching the number. This is the practical way to bring a text under a limit: trim a phrase, look at the total, trim again.
Characters with spaces and without
Most limits count spaces. A post on a social network, a text field in a web form or an advertisement usually counts every space as one character. Some assignments and translation jobs count characters without spaces instead, which gives a lower figure for the same text.
Always check which of the two the rule means. If the rule does not say, assume that spaces count, because that is the stricter reading and the one most platforms use.
A practical example: the sentence “Hello, world!” has 13 characters with spaces and 12 without, because it contains one space. In a long text the gap between the two figures is roughly the number of spaces and line breaks, which in ordinary English prose is about one character in six.
Line breaks, tabs and punctuation
A line break counts as a character in most systems, even though it is invisible. If you paste text with many short lines, the total rises a little for each break. Tabs and extra spaces count too, which is why text copied from a document sometimes comes out longer than expected.
Punctuation is always counted. A full stop, a comma, a quotation mark and a hyphen are each one character, and so are the typographic versions such as ’ and “. Hidden characters, such as a zero-width space, can be in text copied from the web; they are counted by some systems and ignored by others.
Emoji, accents and other scripts
In a browser, the length of a string in JavaScript counts code units, so a single emoji can report a length of 2 or more. A counter that measures what a reader sees treats the emoji as one character. The Unicode standard calls these visible units grapheme clusters and defines them as the closest match to what users perceive as a single character.
This matters for languages such as Japanese, Chinese and Korean too, where each symbol is one character but takes more bytes of storage than a Latin letter. Counting characters is therefore a different question from counting bytes, and platforms differ in which one they apply.
In UTF-8, the most common encoding on the web, a basic Latin letter takes one byte, an accented letter usually two, a Japanese character three and an emoji four. A limit given in bytes therefore allows far fewer Japanese characters than English ones, while a limit given in characters treats them equally.
Where the numbers come from
Different tools give different totals for the same text for a few predictable reasons. One tool counts line breaks and another does not. One counts an emoji as two characters and another as one. One strips spaces at the start and end of the text. When two numbers disagree by a small amount, check these three points first.
If a platform enforces its own limit, its counter is the final authority. X, for instance, counts every link as 23 characters and every emoji as 2, so a post can be longer on X than in a plain counter. A character counter is the right tool for planning; the platform decides what is accepted.
A simple routine
- Paste the text into the counter and read the figure for characters with spaces.
- Read the figure without spaces if the rule asks for it.
- Choose the limit you need, such as a post or a meta description, and watch the bar.
- Edit until you are under the limit, leaving a few characters of margin.
- Paste the final text into the platform and confirm that it accepts it.
Keep a little margin when a text will be edited later. Adding a link, a hashtag or a name after you have counted can push a text over the limit, and the safest habit is to count the final version.
Count your characters now
→ universalcharactercounter.com