Tools

    SMS segment calculator

    GSM 7-bit or UCS-2, how many parts, and the room left in the last one.

    • Runs in your browser
    • No sign-up

    Input

    Examples

    Result

    EncodingGSM-7
    Parts1
    Characters75
    Length75 septets
    Left in part 185 septets
    Per part160 no UDH
    SMPP data_coding0x00

    Characters by part

    1. Part 1 · 75/160 septetsYour code is 482913. It expires in 10 minutes. Do not share it with anyone.

    Messages splitting or arriving garbled through your SMSC? IDNTEQ can help. SMPP integration consulting

    About this tool limits, splitting rules, specs, FAQ

    The calculator uses GSM 7-bit when every character is in the GSM default alphabet or its extension table, and UCS-2 otherwise. It then splits the text into parts as a handset or SMSC does: an escape sequence or a surrogate pair is never cut in two.

    Per-part limits

    EncodingSingle partEach part, 6-octet UDH7-octet UDH
    GSM 7-bit160 septets153152
    UCS-270 units6766

    Extension-table characters ({ } [ ] ~ | \ ^ € and form feed) cost 2 septets. If one would straddle a part boundary it moves to the next part, so 152 × a + € + 152 × a (306 septets) needs 3 parts, not 2: open that example.

    Specifications

    • 3GPP TS 23.038 §6.2.1 (default alphabet), §6.2.1.1 (extension table), §6.2.3 (UCS2).
    • 3GPP TS 23.040 §9.2.3.24 (user data, fill bits), §9.2.3.24.1 and §9.2.3.24.8 (concatenation, 8-bit and 16-bit reference).
    • SMPP v3.4 §5.2.19 (data_coding).

    Limits

    National language shift tables (TS 23.038 Annex A) are not applied. With data_coding 0x00 the alphabet is the SMSC's default, and some SMSCs convert or count text differently, so confirm with yours.

    FAQ

    Why does one emoji make my SMS cost more?

    No emoji is in the GSM 7-bit alphabet, so one emoji switches the whole message to UCS-2: 70 units in a single part instead of 160 septets. Most emoji are outside the Basic Multilingual Plane and take 2 units each.

    Why 153 characters per part and not 160?

    Each part of a concatenated message starts with a 6-octet user data header, leaving 134 of the 140 octets: 153 septets (plus one fill bit) or 67 UCS-2 units. With a 16-bit reference the header is 7 octets: 152 or 66.

    Is UCS-2 the same as UTF-16?

    No. UCS-2 is a fixed 2-octet code for the Basic Multilingual Plane only. Characters beyond it, such as most emoji, are sent as UTF-16 surrogate pairs (two 2-octet units), which handsets generally display.

    Related