SMS Character Counter

Type or paste a text message to see its encoding, its length, how many parts it needs, and which characters are not in GSM‑7.

The counts change as you type. Positions count each character as you see it, from 1.

Results

UCS-2, 3 parts, 50 characters left

UCS-2Encoding70 alone, 67 a part
151CharactersAs the network counts them
3PartsSent as one long message
50Left in This PartOf 67 in part 3

With every suggestion used: GSM-7, 1 part, 154 characters.

151Characters you see
0Characters that count as two
6Characters not in GSM-7
201Most that fit in 3 parts

Characters That Force UCS-2 4

U+2019, 1 timeat 61
U+2026, 1 timeat 91
U+201C, 2 timesat 99 and 119
U+201D, 2 timesat 103 and 122

Where Each Part Starts 3 parts

Part 1Hi Sam, your table for 4 is booked for Friday at 7:30 pm. We’re on Part 2the corner of Park Road… Reply “YES” to confirm or “NO” to cancel. Part 3Parking costs €5.

How to Use the SMS Character Counter

  1. Type or paste your message into Your Text Message. The figures change as you type, and you can press Clear to empty the box.
  2. Read the four main figures: the encoding (GSM-7 or UCS-2), the characters as the network counts them, the number of parts, and how many characters are left in the part you are filling.
  3. If the encoding is UCS-2, look at Characters That Force UCS-2. Each row has the character, its Unicode code point, how many times it appears and where.
  4. Press the button on a row to put a GSM-7 character in its place, or Replace All Suggested to change every one at once. Under the bar you can read the encoding and number of parts the message will have with every suggestion used, before you press anything.
  5. Check Where Each Part Starts to see the message in its parts, with each marked character underlined. Press Copy Counts to copy the figures as plain text.

Example of a Text Message in UCS-2

The example message is Hi Sam, your table for 4 is booked for Friday at 7:30 pm. We’re on the corner of Park Road… Reply “YES” to confirm or “NO” to cancel. Parking costs €5. It has 151 characters. Four of them are not in the GSM-7 alphabet: the curly apostrophe in We’re at position 61, the ellipsis at 91, and two pairs of curly double quotes at 99, 103, 119 and 122. With even one of them, the whole message is sent in UCS-2.

In UCS-2 the message counts as 151 characters. That is more than the 70 that fit in a single message, so it is sent as a long message in parts of 67: parts start at characters 1, 68 and 135, and the third part has 50 characters left.

With Replace All Suggested, the curly marks become straight ones and the ellipsis becomes three full stops. The message is then GSM-7 and counts as 154 characters: three more for the full stops and the euro sign counted as two. That fits in 1 part with 6 characters to spare.

SMS Character Limits for GSM-7 and UCS-2

A single SMS has room for 140 octets of text. In the GSM 7 bit default alphabet each character is 7 bits, so 160 characters fit, the figure in 3GPP TS 23.038. In UCS-2 each character is 16 bits, so 70 fit. A message of 160 GSM-7 characters is still one message with 0 left, and with one more character it is 2 parts.

A longer text is sent as a concatenated message: several parts that are joined again on the receiving phone. Every part has a 6 octet header with a reference number, the number of parts and its own place in the order, so 134 octets are left for text: 153 GSM-7 characters or 67 UCS-2 characters a part. Under TS 23.040 a message can have up to 255 parts, which is 39,015 GSM-7 characters or 17,085 UCS-2 characters.

PartsMost GSM-7 CharactersMost UCS-2 Characters
116070
2306134
3459201
4612268
5765335
6918402
81,224536
101,530670

Characters That Count as Two

Ten characters are in the GSM-7 extension table rather than the main alphabet. Each of them is sent as an escape code followed by a second code, so each one counts as two characters, though the message is still GSM-7.

CharacterNameCodes SentCounts As
Page breakpage break (form feed)1B 0A2
^caret1B 142
{left curly bracket1B 282
}right curly bracket1B 292
\backslash1B 2F2
[left square bracket1B 3C2
~tilde1B 3D2
]right square bracket1B 3E2
|vertical bar1B 402
€euro sign1B 652

The two codes of one of these characters are always sent in the same part. In a message of 152 letters, a euro sign and 20 more letters, the euro sign has only one place left in the first part, so the second part starts with it. The first part then has 152 characters, not 153.

Why a Text With Emoji Is Sent in UCS-2

A message is sent in GSM-7 only when every character in it is in the GSM-7 alphabet. With one character outside it, such as an emoji, a curly quote or a letter like á, the whole message is sent in UCS-2, and the limit is 70 instead of 160. On many phone keyboards and in word processors, a typed straight quote can become a curly one, and the same is true of dashes and the ellipsis, so a message can be in UCS-2 even when the sender typed nothing unusual.

In UCS-2 the count is in UTF-16 code units. Most letters and symbols are one unit, but most emoji have code points above U+FFFF and are two units each: 😀 counts as 2, 👍🏽 with a skin tone as 4, a flag such as 🇬🇧 as 4, and the family emoji 👨‍👩‍👧 as 8. An emoji is always in one part.

CharacterCode PointGSM-7 Stand-In
Right single quotation mark (curly apostrophe) ’U+2019'
Left double quotation mark “U+201C"
En dashU+2013–
Em dashU+2014–
Horizontal ellipsis …U+2026…
No-break spaceU+00A0A plain space
Small a with acute áU+00E1a
Small c with cedilla çU+00E7c
Grinning face emoji 😀U+1F600None, remove it or keep UCS-2

Accented letters vary. É, é, è, ù, ì, ò, à, Ä, ä, Ö, ö, Ñ, ñ, Ü, ü, Å, å, Ø and ø are all in GSM-7, so Café é is GSM-7 and counts as 6. Á, í, ó, ú, â, ê, ã and ç are not, and the stand-in is the plain letter.

The GSM-7 Character Set

The table is the GSM 7 bit default alphabet from 3GPP TS 23.038, in the same order as in the standard: the column is the first hex digit of the code and the row is the second. ESC at 1B is the escape code for the extension table of characters that count as two. LF and CR are line feed and carriage return.

Row01234567
0@ΔSpace0¡P¿p
1£_!1AQaq
2$Φ"2BRbr
3¥Γ#3CScs
4èΛ¤4DTdt
5éΩ%5EUeu
6ùΠ&6FVfv
7ìΨ'7GWgw
8òΣ(8HXhx
9ÇΘ)9IYiy
ALFΞ*:JZjz
BØESC+;KÄkä
CøÆ,<LÖlö
DCRæ–=MÑmñ
EÅß.>NÜnü
FåÉ/?O§oà

Only the capital Ç is in the table, at code 09. Under the standard, a message with a small ç is sent in UCS-2, and the count is by the standard, though on some phones and sending services ç is sent with the same code as Ç.

How Characters and Message Parts Are Counted

Every character of the message is checked against the GSM-7 alphabet and its extension table. When all of them are there, the message is GSM-7: characters in the main alphabet count as one and extension characters as two. Otherwise it is UCS-2, and a character counts as its number of UTF-16 code units, which is how UCS-2 text with emoji in it is sent from phones.

Up to 160 GSM-7 or 70 UCS-2 characters fit in one message. Longer messages are sent in parts of 153 or 67 in order, and a new part starts when the next character does not fit, so an extension character or an emoji is always in one part. A character as you see it, such as a letter with several accent marks, is kept in one part unless it is longer than a whole part, the same as on Android. Characters as you see them are read with the browser’s grapheme segmenter, based on Unicode Standard Annex 29, and positions start at 1.

Stand-ins are taken first from a short list of common look-alikes such as curly quotes, dashes, the ellipsis and unusual spaces, then from the composed form of the character, then from the letter without its accent. Emoji and letters from other alphabets have no stand-in.

Only the default alphabet is used. TS 23.038 also has national language tables for Turkish, Spanish, Portuguese and Indian languages, but support for them depends on the phone and the network, and a part with one has a longer header. Nothing you type is sent anywhere. Prices are not given, because carriers and sending services set their own.

FAQs

Q1. How Many Characters Are in One SMS?

One SMS has room for 160 characters when every character is in the GSM-7 alphabet, and 70 characters when the message needs UCS-2. A longer message is sent in parts of 153 GSM-7 characters or 67 UCS-2 characters, because each part has a header that the receiving phone uses to join the parts in order.

Q2. Why Did My Text Message Limit Drop From 160 to 70?

The limit is 70 instead of 160 when the message has at least one character outside GSM-7, such as an emoji, a curly quote or a letter like á. The phone then sends the whole message in UCS-2, which uses 16 bits a character. Replace those characters with GSM-7 ones and the limit is 160 again.

Q3. Do Emojis Count as Two Characters in a Text Message?

Most emoji count as two characters, and some count as more. A plain emoji such as 😀 is two UTF-16 code units, an emoji with a skin tone is 4, and a family emoji built from three people is 8. A message with any emoji in it is also sent in UCS-2, so the limit is 70 rather than 160.

Q4. Which Characters Count as Two in GSM-7?

In GSM-7 the characters ^ { } [ ] ~ | \ and the euro sign count as two, along with the page break. They are in the extension table, so phones send an escape code before each one. The message stays GSM-7, but each of them uses two of the 160 places.

Q5. Do Spaces and Line Breaks Count in an SMS?

Spaces and line breaks count as one character each in GSM-7. A no-break space, a thin space or a tab is not in GSM-7, so a message with one of those is sent in UCS-2, and a plain space in its place makes it GSM-7 again.

Q6. Why Is a Long SMS Split Into Parts of 153 Characters?

A long SMS is sent in parts of 153 characters because each part has a 6 octet header, with the message reference, the number of parts and the part number, inside its 140 octets. The 134 octets left have room for 153 GSM-7 characters, or 67 in UCS-2, so a 161 character message is two parts of 153 and 8.

Sources

3GPP TS 23.038, Alphabets and Language-Specific Information, clause 4 and the GSM 7 bit default alphabet and extension table in clauses 6.2.1 and 6.2.1.1. 3GPP TS 23.040, Technical Realization of the Short Message Service, clause 9.2.3.24.1, Concatenated Short Messages. Unicode Standard Annex 29, Unicode Text Segmentation. Android telephony source, SMS message splitting. Twilio Smart Encoding character list, for the look-alike characters.