Skip to content
WirebirdTalk to sales

SMS segment calculator

Paste a message to see its encoding, its length in segments and which characters pushed it into Unicode. Fix smart quotes and dashes in one click.

Try:

Preview

Highlighted characters force UCS-2. Underlined characters are GSM extension characters that count as 2.

Harbor Dental: We’re open late this week — book at harbordental.example… Reply STOP to opt out.

Result

Segments

2

Encoding

UCS-2

Characters
95
Encoded length (UTF-16 code units)
95
Limit per segment
67
Left in this segment
39

Characters forcing Unicode

  • ’U+2019
  • —U+2014
  • …U+2026

Why one character can double the cost of a text

Carriers bill and deliver SMS in segments, not messages. How many characters fit in a segment depends on the encoding, and the encoding is chosen by the characters in the message. One curly apostrophe or emoji anywhere in a reminder changes the encoding for the whole message.

GSM-7 and UCS-2

GSM-7 is the default SMS alphabet defined in 3GPP TS 23.038. It packs each character into 7 bits, so a single segment holds 160 characters. It covers English letters, digits, common punctuation and a set of accented and Greek letters such as é, ñ, ü, Δ and Ω.

Ten more characters live in the GSM extension table: € [ ] { } ^ ~ | \ and the form feed. They are sent as an escape code plus the character, so each one counts as 2 toward the limit while the message stays GSM-7.

If any character is outside both tables, the whole message is sent as UCS-2, which uses 16 bits per character. A single segment then holds 70 characters. Most emoji take two UCS-2 code units each, so one emoji uses 2 of those 70.

Why long messages get 153 or 67

A message longer than one segment is split, and each part carries a small header that tells the phone how to put the parts back together. That header takes space from the text, so each part holds 153 GSM-7 characters or 67 UCS-2 code units. A 161 character GSM-7 message is two segments. A 71 character Unicode message is also two. The calculator also avoids splitting an extension character or an emoji across two parts, as real senders do.

The usual suspects

  • Curly quotes and apostrophes copied from Google Docs, Word or a phone keyboard.
  • En and em dashes, and the single-character ellipsis.
  • Non-breaking and other invisible spaces pasted from web pages.
  • Emoji, including ones added by a business owner to a template.
  • Lowercase ç and accented capitals like Á, which are not in GSM-7 even though similar letters are.

What this means if texting is inside your product

When thousands of businesses send templates you provide, a stray smart quote in one reminder can quietly double the segments on every send. Show a live segment counter in your compose box, normalize punctuation in system templates before saving them, and let owners use emoji when they choose to rather than by accident. Segment counts also feed straight into cost per business, which you can model with the SMS revenue calculator.

Sources

Put texting in your product without the carrier details

Wirebird gives every business on your platform two-way texting and calling, with registration and compliance handled. Tell us what your customers send and we'll show you how it works.