Character Counter
Counts the characters in your text and shows related lengths such as lines, Unicode code points and UTF-8 bytes. It is useful when a form, post or database field has a character limit. Emoji and accented letters are counted as you would see them on screen.
Results
Results appear here.
How to use the Character Counter
- Type or paste your text. All counts update as you type.
- Characters counts what you see: an emoji, a flag or an accented letter counts as one.
Counts explained
- Unicode code points, UTF-16 code units and UTF-8 bytes are technical lengths. Some websites and databases limit text by these instead of visible characters; for example, a family emoji is 1 character but 7 code points.
- Lines counts line breaks plus one.
Limitations
- How many characters an emoji sequence shows as can vary with your device’s fonts. For words and lines see the Word Counter; for bytes in detail see the UTF-8 Byte Counter.
Worked examples
Input
Café 😀 12!
Result
Characters: 10 Characters excluding spaces: 8 Letters: 4 Digits: 2 Spaces and line breaks: 2 Punctuation: 1 Emoji: 1 Lines: 1 Unicode code points: 10 UTF-16 code units: 11 UTF-8 bytes: 14
Input
Sale today! All items 20% off.
Result
Characters: 30 Characters excluding spaces: 25 Letters: 20 Digits: 2 Spaces and line breaks: 5 Punctuation: 3 Emoji: 0 Lines: 2 Unicode code points: 30 UTF-16 code units: 30 UTF-8 bytes: 30
Practical uses
-
Stay within a field limit
A web editor drafts a short description for a form that limits the number of characters. They paste the draft and watch the count update as they type. They trim the wording until it fits the limit.
-
Check emoji and byte length
A developer sees a database error about text length. They paste the offending text and compare the characters, Unicode code points and UTF-8 bytes. The figures show why an emoji can use more space than its single visible character suggests.
Related tools
Privacy: this tool runs entirely in your browser. Your text is not uploaded, logged or saved, and it is never sent to analytics. Maximum input: 1 MiB.