Character Counter
Count characters with and without spaces, letters, digits, lines and UTF-8 bytes. Emoji count as one. Set your own limit and see what is left.
Character limit
Letter frequency
| Letter | Count | Share of letters |
|---|
What counts as a character?
A character is one visible unit of text: a letter, a digit, a punctuation mark, a symbol, an emoji or a space. This counter counts characters the way you see them, so ๐๐ฝ is one character and so is รฉ, however it was typed. It then breaks the total down into letters, digits, punctuation, symbols and emoji, and whitespace, and shows the line count and the size of the text in UTF-8 bytes.
For example, Go23 rocks! ๐๐ฝ Cafรฉ, 2 cups. has 27 characters: 15 letters, 3 digits, 3 punctuation marks, 1 emoji and 5 spaces, which leaves 22 characters without spaces. Paste it into the box above to check.
Characters, code points, code units and bytes
Computers do not store "characters as you see them". Text is stored as Unicode code points, and code points are stored as code units in an encoding such as UTF-8 or UTF-16. One visible character can be made of several code points, and one code point can take up to four bytes. That gives four different answers to "how long is this text?":
- Characters (graphemes): what a reader sees. This is the main count on this page.
- Code points: the Unicode values behind the text. A skin-tone emoji is two: the emoji plus a modifier.
- UTF-16 code units: what JavaScript's
lengthreturns, and what many web forms and apps count. Code points outside the basic range, including most emoji, take two units each. - UTF-8 bytes: the storage size on the web and in most files and databases. Plain English letters take one byte; accented letters take two; Chinese characters take three; most emoji take four or more.
| Text | What it is | Characters | Code points | UTF-16 units | UTF-8 bytes |
|---|---|---|---|---|---|
| A | A plain letter | 1 | 1 | 1 | 1 |
| รฉ | รฉ typed as one precomposed character | 1 | 1 | 1 | 2 |
| eฬ | รฉ typed as e plus a combining accent | 1 | 2 | 2 | 3 |
| ๆฅ | A Chinese character | 1 | 1 | 1 | 3 |
| ๐ | Thumbs up | 1 | 1 | 2 | 4 |
| ๐๐ฝ | Thumbs up with a skin-tone modifier | 1 | 2 | 4 | 8 |
| โค๏ธ | Red heart (heart plus emoji style selector) | 1 | 2 | 2 | 6 |
| ๐บ๐ธ | A flag (two regional-indicator letters) | 1 | 2 | 4 | 8 |
| ๐จโ๐ฉโ๐งโ๐ฆ | Family (four people joined by zero-width joiners) | 1 | 7 | 11 | 25 |
The family emoji is the extreme case: one character on screen, but 7 code points, 11 UTF-16 units and 25 bytes. The two versions of รฉ look identical, yet one is 2 bytes and the other 3. When the counts differ for your text, the counter tells you, so you know what a stricter tool might report.
Why different sites give different counts
If a website, app or form disagrees with this counter, it is usually counting something else. Common reasons:
- It counts UTF-16 code units. Anything built on JavaScript's
lengthcounts ๐๐ฝ as 4, not 1. Choose UTF-16 code units in the limit setting to match. - It counts bytes. Databases, file formats and some network protocols set limits in bytes. The phrase
naรฏve cafรฉis 10 characters but 12 UTF-8 bytes. - It counts line breaks as two. When a web form is submitted, each line break is sent as a carriage return plus a line feed, so the server can count two characters where the box showed one.
- It normalizes or weights the text. Some services convert รฉ to a single form first, count a link as a fixed length whatever its real length, or count some characters as two.
- It trims spaces. Leading and trailing spaces, or runs of spaces, may be removed before counting.
- Text messages switch encodings. SMS uses a compact alphabet for basic Latin text; adding an emoji or certain accented letters switches the whole message to a larger encoding, which fits fewer characters per message.
Character limits on social networks, ad platforms and app stores change from time to time, so check the platform's own help pages for the current figure, then type it into the limit box above.
Spaces and line breaks
Spaces are characters. So are tabs and line breaks, and this counter puts them all under Spaces & line breaks. "Without spaces" removes every kind of whitespace, not just the space bar. Take this short note, with a blank line after the greeting and a double space after "Thanks":
Thanks for the update.
- Characters: 34, including 2 line breaks and 5 spaces.
- Without spaces: 27.
- Lines: 3, because the blank line counts as a line.
Doubled spaces and stray blank lines quietly use up a limit. The text formatter collapses repeated spaces and removes empty lines.
Setting a character limit
Type a number into Limit and the counter shows how many characters remain, or how many you are over. When you go over, the box turns red and a preview strikes through the text past the limit, so you can see which words to cut. You can also choose what the limit counts: characters as you see them, characters without spaces, UTF-16 code units or UTF-8 bytes. Use the last two when a form or database rejects text that looks short enough.
To shorten text to a fixed length automatically, use the text truncator, which can cut at a word or sentence boundary instead of mid-word.
Length guidance for titles and descriptions
Page titles for search results are commonly kept under about 60 characters, and meta descriptions under about 150 to 160, because longer ones tend to be cut off. Search engines truncate by pixel width rather than character count, so a title full of wide letters such as W and M runs out sooner. The SERP simulator previews how a title and description might look in search results.
Letter frequency
Check Show letter frequency to see how often each letter appears, ignoring case. It is handy for word games, puzzles, simple cipher work and spotting overused letters in a headline. For counts of whole words instead, use the word frequency counter, and for word totals, reading time and keyword density, use the word counter.