Character support

When defining the message body in your request, both the character set and message length impact the number of SMS segments sent. If you use personalization (Liquid Syntax), message length can vary per recipient based on their specific data.

The characters used also influence the encoding format. The API automatically detects the necessary encoding based on the content, ensuring support for SMS delivery in any language.

A single SMS message can contain up to 160 characters, provided all characters used belong to the GSM 7-bit character set.


GSM alphabet and Unicode

The GSM character set consists of both basic and extended characters. The image below displays the basic characters on the left and the extended ones on the right.


Extended Character Set

The following characters are also available, but they're counted as two characters in the SMS message rather than one:

| , ^ , € , { , } , [ , ] , ~ , \


Other Characters

When characters outside the GSM set are needed, such as for non-Latin scripts, messages are encoded using 16-bit Unicode (UCS-2). Each character consumes 2 bytes in this format, limiting a single SMS to a maximum of 70 characters.


Long messages

The message body in a request can include up to 1530 characters. However, SMS messages have encoding limitations:

  • GSM 7-bit encoding supports up to 160 characters per message.
  • Unicode (UCS-2) encoding, used for non-GSM characters (e.g., emojis or non-Latin scripts), supports up to 70 characters per message.
  • Additionally, each message includes a header that consumes part of the character limit.
    To support longer texts, the system automatically splits messages into multiple segments. These segments are typically reassembled on the recipient’s device, appearing as continuous messages. Refer to the charts below to estimate how many SMS segments your message will require.

🚧

Maximum characters accepted

Messages exceeding 1530 characters will trigger a 422 error and will not be sent.


Using text, unicode or auto encoding

When sending messages, you can decide on the encoding used.

Text

When text is used as encoding, all characters outside the basic and extended character will be evaluated.
Transliteration is applied if the character can be transliterated into another character.
For example: in French, the character ç will be replaced (transliterated) by Ç

If the character cannot be replaced via transliteration, then the character is replaced by a question mark ?

Unicode

When unicode is used, then all characters are accepted but the length of one SMS is limited to 70 characters.

Auto

When auto is used, we will use text or Unicode automatically, depending on the characters present in the message.


Length of messages

Using only 7-bit Characters

Each SMS in a multi-part 7-bit encoded message has a maximum length of 153 characters.

Length of message# SMS parts
1–1601
161–3062
307–4593
460–6124
613–7655
766–9186
919–10717
1062–12248
1215–13779
1378–153010

Using Unicode

Each SMS in a multi-part Unicode-encoded message has a maximum length of 67 characters.

Length of message# SMS parts
1–701
71–1342
135–2013
202–2684
269–3355
336–4026
403–4697
470–5368
537–6039
604–67010
671–73711
738–80412
805–87113
872–93814
939–100515
1006–107216
1073–113917
1140–120618
1207–127319
1274-134020
1341 - 140721
1408 - 147422
1475 - 1541 (*)23

📘

Max length is set to 1530

(*) Please note that sending more than 1530 characters in unicode will produce an error but 1530 characters will result in 23 SMS segments.