What is a Segment?
A segment is a fixed-size chunk of an SMS message. Short messages fit in one segment. Longer messages are split across multiple segments, each with overhead bytes for reassembly headers.GSM-7 vs UCS-2 Encoding
SMS supports two character encodings. The encoding is chosen automatically based on the characters in your message.| Encoding | Character Set | Single Segment | Multi-Segment (per part) |
|---|---|---|---|
| GSM-7 | Latin letters, digits, common symbols | 160 characters | 153 characters |
| UCS-2 | Full Unicode (emoji, non-Latin scripts) | 70 characters | 67 characters |
GSM-7 Basic Character Set
The GSM-7 basic set includes:- Letters: A-Z, a-z
- Digits: 0-9
- Symbols:
@ £ $ ¥ ! " # ¤ % & ' ( ) * + , - . / : ; < = > ? ¡ ¿ § _ - Accented characters:
è é ù ì ò Ç Å å Ä ä Ö ö Ñ ñ Ü ü à Æ æ ß É - Greek letters:
Δ Φ Γ Λ Ω Π Ψ Σ Θ Ξ - Special:
Ø øand standard whitespace (space, newline, carriage return)
Characters That Trigger UCS-2
These commonly used characters force UCS-2 encoding, dramatically reducing your per-segment character limit:- Emoji (any emoji forces UCS-2)
- Smart quotes: \u201c \u201d \u2018 \u2019 (use straight quotes ” ’ instead)
- Em dash: \u2014 (use a hyphen - instead)
- Ellipsis character: \u2026 (use three periods … instead)
- Non-Latin scripts: Chinese, Arabic, Cyrillic, etc.
Segment Calculation
The platform calculates segments using this algorithm:- Check if all characters are in the GSM-7 basic character set
- If GSM-7: use 160-char limit (single) or 153-char limit (multi-part)
- If UCS-2: use 70-char limit (single) or 67-char limit (multi-part)
- Divide the message length by the per-segment limit, rounding up
Examples
| Message | Length | Encoding | Segments |
|---|---|---|---|
| ”Your order ships today.” | 24 chars | GSM-7 | 1 |
| ”Your code is 482910. Valid for 5 min.” | 38 chars | GSM-7 | 1 |
| ”Big sale! Save 50% on all items. Shop now at…“ | 160 chars | GSM-7 | 1 |
| ”Big sale! Save 50% on all items. Shop now at…“ | 161 chars | GSM-7 | 2 (153 + 8) |
| “Thanks for signing up! \ud83c\udf89” | 25 chars | UCS-2 | 1 |
| A 140-character message with one emoji | 140 chars | UCS-2 | 2 (70 + 70) |
Billing Impact
Trackly bills per segment at tiered rates:- First 1M segments (in a 360-day cycle): $0.0045/segment
- After 1M segments: $0.0030/segment
Tips for Reducing Segments
- Avoid emoji — they force UCS-2 encoding and cut your limit from 160 to 70 characters
- Use straight quotes — replace smart quotes (\u201c \u201d) with straight quotes (” ”)
- Use short links — Trackly’s link shortener creates compact URLs that save characters
- Keep messages under 160 characters — one GSM-7 segment is the sweet spot for cost and deliverability
- Test with the API — send a test message and check the
segmentsfield in the response
Template Length Cap
Creative templates are limited to 1,600 characters. This prevents accidentally creating messages that would produce an excessive number of segments.Next Steps
Creative Templates
Design effective message templates
Platform Limits
View all platform limits