Why two counters give your text different numbers
There is no single correct length for a string. Before trusting any counter, work out which rule the place you are pasting into uses.
People arrive at a counter with a limit in mind — a field that rejects the text, a form that truncates it, a post that will not send. The frustrating part is that the counter and the destination can both be right while disagreeing, because they are counting different things. This guide is about choosing the rule first and the tool second.
1. A character is three different quantities
Take a family emoji. A reader sees one character. Our counter reports five, because that is how many code points the sequence really contains — several people joined together. JavaScript's own length property reports eight, because it counts sixteen-bit units and the larger symbols need two each.
None of the three is wrong. What matters is which one your destination applies: a field that truncates by storage will cut where the eighth unit falls, not where you see the emoji end. That is why a name that "fits" can still come back trimmed.
2. What counts as a word here, and what it costs
Our word count takes runs of letters and digits. It is a single rule, applied consistently, and it has consequences you should know before quoting the number to anyone.
"E-mail" counts as two words, because the hyphen is neither a letter nor a digit. "Don't" counts as two for the same reason. A price written as R$ 1.500,00 counts as four. An emoji on its own counts as zero. Accents are safe — São Paulo is two, as you would expect. If your limit is contractual, check which of these cases appears in your text before you rely on the total.
3. Case conversion throws information away
Converting to title case is not reversible, and the loss is easy to miss until it is published. ANPD e LGPD becomes Anpd E Lgpd: the acronyms are gone and the connective has been promoted to a capital.
Going back through lower case does not recover them — the original capitalisation was never stored anywhere. Convert a copy, read the result, and keep acronyms and proper nouns under your own eye. This is the one transformation on the site where the tool cannot know what you meant.
4. The order that avoids rework
Find out what the destination counts, pick the matching number, and only then edit to fit. Doing it the other way round — trimming to the counter you happened to open — is how text gets cut twice.
If the destination does not document its rule, the conservative move is to fit the largest of the three counts. Nothing that fits the strictest reading will be rejected by a looser one.
Tools in this guide
- Text ToolsWord and character counter, case converter, slugify — free in the browser.
- Character CounterFree character counter with and without spaces — plus words and lines.
- Word CounterFree online word counter — also counts characters, lines and sentences.
- Case ConverterConvert to UPPERCASE, lowercase, Title Case, camelCase, snake_case and more.