Writing & text

How to count characters in text with emoji

Find out why the same caption can have different counts in a character counter and an upload form, then check the rule that applies to the text you plan to submit.

Phone, papers and folder arranged on a desk

Check what the form counts

A field labelled Characters may count visible characters, Unicode code points, or UTF-16 units. A system with a storage limit may count UTF-8 bytes. These measures usually agree for basic English letters and ordinary spaces. They differ for many emoji and accented or combined characters. Look for the unit in the fieldโ€™s help text and check its own counter after pasting.

Compare the same short caption in several ways

Paste Go ๐Ÿ‘ฉโ€๐Ÿ”ง into the Word & Character Counter. In a browser with grapheme support, it shows 4 characters and 3 without spaces. The G, o, space and mechanic emoji are each a grapheme, an on-screen character by the toolโ€™s counting rule. The same phrase uses 6 Unicode code points, 8 UTF-16 units or 14 UTF-8 bytes. A field that allows only 7 UTF-16 units would be one unit over its limit.

Notice what happens with flags and accents

The India flag emoji ๐Ÿ‡ฎ๐Ÿ‡ณ uses two Unicode code points to form one flag. The letter รฉ can be represented by one code point or by e followed by a combining accent. Both accent versions usually look alike and count as one grapheme, yet their code point and byte counts can differ. Browsers without the segmentation API use Unicode code points in the MNROI counter, so several parts of a combined emoji may count individually there.

Use the space and line-break figures for different jobs

Characters includes ordinary spaces, tabs and line breaks. Without spaces removes whitespace before counting. Use the full Characters figure to budget a one-line title unless the destination explicitly excludes whitespace. If a form accepts multiple lines, paste the complete text with its final line breaks and check the displayed total there.

Trim complete characters and recheck the final copy

For Go ๐Ÿ‘ฉโ€๐Ÿ”ง under a seven-unit limit, removing the space reduces eight UTF-16 units to seven. If keeping the space matters, swapping the combined emoji for a single-code-point emoji such as ๐Ÿšš gives Go ๐Ÿšš and uses five UTF-16 units. Remove or replace whole emoji rather than cutting between the joined parts. If both versions fail, shorten the words and check the form again.

What different counters report for the same text
TextGraphemesUTF-16 units
Go ๐Ÿšš45
Go ๐Ÿ‘ฉโ€๐Ÿ”ง48
๐Ÿ‡ฎ๐Ÿ‡ณ14

References