Character Counter
Count every character in your text, with and without spaces, and see how many are left against a limit you choose.
For example 280, the usual limit for a standard X post.
Private: Everything runs in this page. Nothing you type is sent anywhere or saved.
On this page
Character count examples
| Text | Characters | UTF-8 bytes |
|---|---|---|
| Hello | 5 | 5 |
| Hello world | 11 | 11 |
| a b c | 5 | 5 |
| Café | 4 | 5 |
| €100 | 4 | 6 |
Formula
The count uses Intl.Segmenter, which every current browser has, to group a character with its accents and joiners. A browser without it counts Unicode code points instead, so a combined emoji counts as several; the box named How characters are counted says which method was used.
How the character counter works
- Step oneType or paste your text into the box.
- Step twoOptional: type a limit in the second box, such as 280.
- Step threeRead the character count, and the tile that shows how many characters are left or by how many you are over.
What this tool does not do
- It counts characters as you see them where the browser has Intl.Segmenter: a letter with a combining accent, an emoji with a skin tone and a flag each count as one.
- A browser without Intl.Segmenter counts Unicode code points instead: a letter with a separate combining accent then counts as two and a combined emoji as several. The How characters are counted box says which method ran.
- It does not know the rules of any platform: a limit you type is only compared with the number, nothing more.
- It does not shorten or cut your text.
Frequently asked questions
Do spaces count as characters?
Yes, in the main count. The tile without spaces leaves out spaces, tabs and line breaks.
How are emoji and accented letters counted?
As you see them: one emoji counts as one character, even a flag, a thumbs-up with a skin tone or a family. The same goes for a letter with a separate accent mark. If your browser cannot group characters, the page says so and counts Unicode code points instead.
Why can the byte count be higher than the character count?
Letters outside plain English, such as the e with an accent or the euro sign, take 2 to 4 bytes in UTF-8, so the byte count can be larger than the character count.
Does it save what I type?
No. The count is made in your browser and the text never leaves the page.