---
title: "GSM-7 encoding"
description: "GSM-7 is the default 7-bit SMS alphabet defined in 3GPP TS 23.038 (formerly GSM 03.38). It fits 160 characters in a single SMS, or 153 per segment when a message is split."
canonical: "https://omnichannels.ai/glossary/gsm-7/"
language: "en"
updated: "2026-10-18"
publisher: "BroadNet Technologies"
brand: "OmniChannels.ai"
---

# GSM-7 encoding

Canonical: https://omnichannels.ai/glossary/gsm-7/
Language: en
Publisher: OmniChannels.ai by BroadNet Technologies

**Definition:** GSM-7 is the default 7-bit SMS alphabet defined in 3GPP TS 23.038 (formerly GSM 03.38). It fits 160 characters in a single SMS, or 153 per segment when a message is split.

An SMS carries up to 140 octets of user data (3GPP TS 23.040). Packing 7-bit characters gives 140 × 8 / 7 = 160 characters. GSM-7 covers basic Latin letters, digits, common punctuation and some accented and Greek letters. The word “septet” is the technical name for one 7-bit unit, so a GSM-7 SMS holds 160 septets.

Some characters live in an extension table reached through an escape character, so each counts as two septets: the form feed and ^ { } \ [ ] ~ | €. A message with a few euro signs or braces therefore holds fewer than 160 visible characters. Characters in the basic table, such as @ and £, count as one.

If any character in the message is outside GSM-7 and its extension table — an Arabic letter, an emoji, or a curly quote pasted from a word processor — the whole message switches to UCS-2, which fits only 70 characters per SMS. That is why a message that costs one segment in English can cost two or three in Arabic.

For long messages, a user data header takes space in every segment, leaving 153 GSM-7 characters per part (152 with a 16-bit reference number), and 67 UCS-2 characters per part. An escaped character is never split across two segments. The segment count drives the bill, so a 161-character GSM-7 message is billed as two segments.

3GPP TS 23.038 also defines national language shift tables, which add characters used in languages such as Turkish, Spanish or Portuguese, using a header that costs some characters. Support varies by operator and route, and many senders simply avoid these tables, so test any non-English Latin text on handsets in the target country.

Check messages before a campaign. Replacing one smart quote with a straight quote can halve the number of billed segments. Typical culprits are curly quotes, long dashes, non-breaking spaces and accented characters outside the GSM-7 table, often introduced when text is pasted from documents or chat tools.

For Arabic content, GSM-7 is not an option; use UCS-2 and keep messages short, or send long content on WhatsApp, RCS or via a link. Mixed text with a single Arabic word forces the entire message into UCS-2, so decide per message which language it uses, or accept the higher segment count.

The SMS character counter on this site shows the encoding and the number of septets and segments for any text. OmniChannels.ai supports Unicode and Arabic SMS and handles segmentation when you send through the API or SMPP 3.4.

## Example

```
"Your code is 123456" = 19 GSM-7 characters, 1 segment. "Price: 20€" = 10 characters but 11 septets, because € is sent as escape + code.
```

## Sources

- [3GPP TS 23.038 — Alphabets and language-specific information](https://portal.3gpp.org/desktopmodules/Specifications/SpecificationDetails.aspx?specificationId=745)
- [3GPP TS 23.040 — Technical realization of the Short Message Service (SMS)](https://portal.3gpp.org/desktopmodules/Specifications/SpecificationDetails.aspx?specificationId=747)