Encoding

Learn about character encoding and how it affects your messages.

At a glance
FreeClimb supports two primary SMS character encodings: GSM-7 (7-bit, up to 160 characters per segment) and Unicode/UCS-2 (16-bit, up to 70 characters per segment). Including even a single non-GSM character automatically switches the entire payload to Unicode, which lowers the limit to 70 characters per segment and increases overall segment count.

Difference between GSM 7 and Unicode SMS encoding

Character encoding refers to the scheme used to represent characters. The default encoding for SMS is GSM 7, which uses 7 bits to represent a single character. The GSM character set contains most standard text and symbol characters. Unicode is an alternative encoding scheme, which uses 16 bits to represent a single character. The Unicode character set includes emoji, smart quotes, and certain special characters.


How to calculate character limits per SMS segment

A single segment message can contain 140 bytes. At 8 bits per byte, a single segment can have up to 1,120 bits. Therefore, GSM encoded messages can have 160 characters in a single segment while Unicode can only contain 70 characters in a single segment. Messages with more characters are split into multiple segments. For more details about how this works, please reference our concatenation guide.

The table below illustrates how the number of segments changes based on the amount of characters and encoding type used.

Number of SegmentsMaximum GSM CharactersMaximum Unicode Characters
116070
2306134
3459201
4612268
5765335
6918402
71071469
81224536
91377603

Managing message length and encoding scheme

Message encoding is based on the characters you use. When you're trying to keep the number of segments low, try crafting your message to avoid using Unicode characters. If you think you've avoided Unicode characters but your message's encoding is still being set to UCS-2, check for these commonly missed Unicode characters in your message:

  • Smart quote
  • Non-GSM whitespace
  • Certain accented characters

Sometimes these characters can be introduced from copying and pasting your text from a text editor. To be confident about the encoding and length of your message before you send, you can use this handy tool.