SuperDevTools

Character counter

0 characters

0 without spaces

0 graphemes

0 UTF-16 units

0 UTF-8 bytes

0 words

0 sentences

0 paragraphs

0 lines

SMS

Encoding
GSM-7
Number of SMS
0
Counted length
0
Per SMS
160
Left in the last one
160

Characters forcing UCS-2:

Counted twice in GSM-7:

Length limits

Highlighted in red: text beyond the smallest ticked limit. Highlighted in yellow: characters that switch the SMS to UCS-2.

Nothing is uploaded: counting happens on your device.

Count characters exactly

This character counter is for the times when a length limit is strict: a form field capped at 255 characters, a text message that must fit in one SMS, a page title, a meta description, a profile bio, a subtitle line or the text on a business card. It shows, as you type, the characters, the characters without spaces, the graphemes, the UTF-16 units and the UTF-8 bytes, followed by words, sentences, paragraphs and lines.

It goes further than a word counter: it tells you how many SMS your message will use and why, points out the characters that push a text message into a shorter mode, and highlights in the text whatever runs past the limit you picked.

How to use it

  1. Type or paste your text into the box: every figure updates with each keystroke.
  2. Check the “SMS” panel: encoding, number of SMS, counted length and room left in the last message.
  3. Under “Length limits”, tick the limits that apply to you or enter a “Custom limit”. Use “Limits count in” to choose the unit: characters, graphemes or UTF-16 units.
  4. Text beyond the smallest ticked limit is highlighted in red, characters that force UCS-2 in yellow.
  5. To shorten the text, use “Remove double spaces” or “Remove line breaks”. “Undo” takes you back one step.
  6. To see how often a sign or a word appears, type it into “Character or string to count”.

Characters, bytes and graphemes: three ways to count

For plain English text the figures are identical. They split apart as soon as accents or emoji appear.

  • Hello: 5 characters, 5 graphemes, 5 bytes.
  • café: 4 characters but 5 bytes, because an accented letter takes 2 bytes in UTF-8. That matters when a database column or a file format limits size in bytes.
  • 👍🏽 (thumbs up with a skin tone): 1 grapheme, meaning a single symbol on screen, but 2 Unicode characters, 4 UTF-16 units and 8 bytes. A web form field with a maximum length usually counts UTF-16 units, so this emoji takes up 4 of them.
  • 👨‍👩‍👧 (family): 1 grapheme, 5 characters, 8 UTF-16 units and 18 bytes.

A grapheme is what your eye sees. A character is what most software counts. A UTF-16 unit is what many forms count. A byte is the space the text really takes in memory or on disk.

How many SMS does a message use?

A text message is encoded either in GSM-7, an alphabet of 128 signs, or in UCS-2. In GSM-7 a single SMS holds 160 characters; longer messages are split into parts of 153 characters. So 160 characters fit in 1 SMS, 161 characters need 2 and 307 characters need 3.

A few signs from the extension table count double: € ^ { } [ ] ~ | \. “Only 15 €” is 9 characters but takes 10 places in GSM-7. The pound sign £ and the dollar sign $ are in the base table and count once.

A single character outside the alphabet switches the whole message to UCS-2: 70 characters for a single SMS, then parts of 67. A 71-character text in UCS-2 therefore costs 2 SMS. The usual culprits in English are invisible: curly quotes “ ” and the curly apostrophe ’ that phones and word processors insert automatically, an en dash –, an ellipsis … or any emoji. “Don’t” with a curly apostrophe forces UCS-2; “Don't” with a straight one stays in GSM-7.

Handy length benchmarks

  • Page title: about 60 characters before it gets cut off in search results.
  • Meta description: about 155 characters.
  • Subtitles: often around 40 characters per line, on two lines at most.
  • Business card: a line of 30 to 35 characters stays readable at a small size.

Frequently asked questions

Is my text sent anywhere?

No. Everything is calculated on your device. The text is only kept if you tick “Keep the text and settings on this device”; unticking the box erases it from storage.

Why does a form reject my text when the count looks right?

It probably counts UTF-16 units or bytes. Pick “UTF-16 units” in “Limits count in” or look at the “UTF-8 bytes” figure: emoji and accented letters push both totals up.

Do spaces count as characters?

Yes, almost always, and so do line breaks. The “without spaces” figure is useful when a brief asks for it explicitly.

Why does my 100-character text message count as two?

Because it contains at least one character outside the GSM-7 alphabet, listed under “Characters forcing UCS-2”. Replace it, for example ’ with ' or “ with ", and the message gets its 160 characters per SMS back.