Character Counter
Measure visible characters, Unicode code points, UTF-16 length, and UTF-8 bytes without uploading text.
Loading tool…
How to use Character Counter
Different platforms measure text length in different ways. Compare visible graphemes with the code-point, JavaScript, and byte counts used by software limits.
- Enter the exact text you want to measure.
- Compare the visible-character total with the encoding totals.
- Use the count that matches the limit in your destination system.
Good to know
- A grapheme is a user-perceived character: an emoji sequence or a letter plus combining accent can contain multiple code points.
- Whitespace includes spaces, tabs, and line breaks. The byte count uses UTF-8 without a byte-order mark.
Compare visible characters with software length limits
Paste the exact string below: a lowercase e followed by a combining acute accent, then the woman technologist emoji. The browser displays two grapheme clusters, but the underlying sequence contains five Unicode code points. The emoji includes a joiner, and its non-BMP characters each occupy two UTF-16 units. Run the counter and choose the measurement your destination actually specifies. A database byte limit, a JavaScript string length check and an editorial character allowance can therefore reject different strings even when they look equally long.
Exact text, with a combining accent rather than a precomposed é
é👩💻
Expected counts
Characters (graphemes): 2 Characters excluding whitespace: 2 Unicode code points: 5 UTF-16 code units: 7 UTF-8 bytes: 14
- The excluding-whitespace total filters whole grapheme clusters that consist of whitespace; it does not subtract bytes from the UTF-8 total.
- Do not replace the combining-accent sequence when reproducing this example. Visually similar normalized text can have different code-point and byte counts.
- Grapheme boundaries follow browser Unicode segmentation, not another website's length policy.
Common questions
Why do emoji produce different totals?
A displayed emoji can combine several Unicode code points, and each code point may require more than one UTF-16 code unit or UTF-8 byte.
Which count is JavaScript string.length?
UTF-16 code units is the same measure as JavaScript string.length.
Keep going with related tools
All text →Word Counter
Count words, visible characters, sentences, and lines locally, with Unicode-aware word boundaries.
TextBinary Text Converter
Encode Unicode text as UTF-8 binary bytes or decode valid 8-bit UTF-8 binary back to text.
TextLine Counter
Count total, non-empty, and blank lines in pasted text, including trailing line breaks.
TextNumber to English Words
Spell exact bounded numeric source lines as English cardinal, ordinal or digit-by-digit decimal words.
TextSMS Segment Budget Reviewer
Inspect GSM-7 or strict BMP UCS-2 character costs and segment boundaries under an explicit concatenation-header profile.
TextLocalization String Budget Reviewer
Check keyed translations against your declared grapheme, UTF-8 byte and logical-line budgets.