# 字符限制

短信字符限制是指一条短消息最多能承载的文本量：采用7位GSM默认字母表编码时为160个字符，而文本需要使用16位UCS-2（Unicode）编码时为70个字符。这两个数字源自同一物理约束——每条短消息的用户数据字段为140个八位组。<sup>[1](https://datatracker.ietf.org/doc/rfc5724/)</sup>

| 关键事实 | 详情 |
|---|---|
| 单条消息限制 | GSM 7位默认字母表下为160个字符，即140个八位组的用户数据<sup>[1](https://datatracker.ietf.org/doc/rfc5724/)</sup> |
| Unicode限制 | UCS-2 16位编码下为70个字符（140字节除以每字符2字节）<sup>[3](https://www.twilio.com/docs/glossary/what-sms-character-limit)</sup> |
| 8位数据 | 未压缩8位编码下每条消息140个字符<sup>[8](https://standards.iteh.ai/catalog/standards/etsi/fe77a77d-bd75-4c7b-98dd-4fdf0dfc98e4/etsi-tr-102-529-v1-1-1-2009-03)</sup> |
| 拼接分段 | GSM-7每段153个字符，UCS-2每段67个字符，因为每段都携带一个用户数据头<sup>[2](https://knowledgecenter.cm.com/knowledge-center/communications-platform/sms/sms-basics/what-is-the-length-of-an-sms-message)</sup> |
| 拼接上限 | GSM 03.40允许最多255段、每段153个字符；实际支持取决于手机<sup>[4](https://api.ctia.org/docs/default-source/default-document-library/sms_interoperability_guidelines_v3-2-1_sep2014.pdf)</sup> |
| 编码切换 | 只要有一个字符不属于GSM-7，比如一个表情符号或一个弯引号，整条消息就会切换到UCS-2，限制从160降到70<sup>[3](https://www.twilio.com/docs/glossary/what-sms-character-limit)</sup> |
| 双宽字符 | GSM-7扩展字符\| ^ € { } [ ] ~ \\各占两个七位组而非一个<sup>[2](https://knowledgecenter.cm.com/knowledge-center/communications-platform/sms/sms-basics/what-is-the-length-of-an-sms-message)</sup> |

## 160从何而来

一条短消息最多携带140个八位组（字节）的用户数据。[GSM 03.38](https://www.edgepedia.org/zh/gsm-03-38)定义的GSM 7位默认字母表将每个字符打包进7位，因此140字节可容纳1,120位，恰好是160个字符。<sup>[3](https://www.twilio.com/docs/glossary/what-sms-character-limit)</sup> CTIA短信互操作指南也给出同样的关系：GSM中的一条短消息限于140字节用户数据，在7位字符集上折算为160个字符。<sup>[4](https://api.ctia.org/docs/default-source/default-document-library/sms_interoperability_guidelines_v3-2-1_sep2014.pdf)</sup>

7位字母表涵盖基本拉丁字母、数字和一小套符号，GSM手机和网络元素必须支持它。印地语、阿拉伯语、中文、韩语、日语或西里尔字母语言等语言的字符无法用它表示，必须使用16位UCS-2编码。<sup>[2](https://knowledgecenter.cm.com/knowledge-center/communications-platform/sms/sms-basics/what-is-the-length-of-an-sms-message)</sup> 由于UCS-2每字符需要两个字节，同样的140字节字段只能容纳70个字符。<sup>[3](https://www.twilio.com/docs/glossary/what-sms-character-limit)</sup> 介于两者之间的8位数据编码则每条消息可容纳140个字符。<sup>[8](https://standards.iteh.ai/catalog/standards/etsi/fe77a77d-bd75-4c7b-98dd-4fdf0dfc98e4/etsi-tr-102-529-v1-1-1-2009-03)</sup>

## 编码切换

编码是按消息而非按字符选择的。如果所有字符都属于GSM-7字母表，消息就使用GSM-7；只要有任何一个字符落在其外，整条消息就切换到UCS-2。<sup>[7](https://bird.com/docs/guides/sms/character-limits)</sup> 因此，文本编辑器插入的一个智能引号、基本字符集之外的一个带重音字母，或一个表情符号，都会把整条消息的额度从160个字符削减到70个。<sup>[3](https://www.twilio.com/docs/glossary/what-sms-character-limit)</sup>

即便在GSM-7之内，也有几个字符比看上去更贵。扩展字符\|、^、€、{、}、[、]、~和\\用转义序列编码，各占两个七位组，所以一条含有一个欧元符号的消息只能再容纳159个其他字符。<sup>[2](https://knowledgecenter.cm.com/knowledge-center/communications-platform/sms/sms-basics/what-is-the-length-of-an-sms-message)</sup> Bird给出了算术：159个常规字符加一个欧元符号编码为161个七位组，这会把消息推入第二段，尽管它看上去恰好是160个字符。<sup>[7](https://bird.com/docs/guides/sms/character-limits)</sup>

## 拼接消息

超过一条消息长度的文本会被拆成分段，作为独立的短消息发送，并在接收手机上重新组装。每个分段开头都有一个用户数据头（UDH），包含分段信息，例如参考号和该分段在序列中的位置；由于头部占用了部分载荷，留给文本的字符就更少。<sup>[2](https://knowledgecenter.cm.com/knowledge-center/communications-platform/sms/sms-basics/what-is-the-length-of-an-sms-message)</sup> 采用常见的7个七位组头部时，GSM-7分段可携带153个字符，UCS-2分段可携带67个。<sup>[3](https://www.twilio.com/docs/glossary/what-sms-character-limit)</sup>

头部长度并非由标准固定，因此每段字符数取决于实际使用的头部。3GPP TS 23.040在其描述的情形中给出：未压缩GSM 7位数据为152个字符（160减8），UCS-2为66个字符（（140减7）除以2），并指出UCS2字符不得在分段中间被拆分。<sup>[5](https://www.etsi.org/deliver/etsi_ts/123000_123099/123040/08.06.00_60/ts_123040v080600p.pdf)</sup> 同一规范的早期草案假设6个八位组头部，给出的是153和67。<sup>[6](https://www.3gpp.org/ftp/tsg_t/tsg_t/tsgt_04/docs/pdfs/TP-99126.pdf)</sup>

理论上的上限很高。GSM 03.40允许最多255条拼接消息、每条153个字符，但该功能取决于手机；不支持拼接的手机不会重组文本，而是在每个部分前面显示乱码字符。<sup>[4](https://api.ctia.org/docs/default-source/default-document-library/sms_interoperability_guidelines_v3-2-1_sep2014.pdf)</sup> 同一草案规范计算出未压缩拼接消息的最大长度为39,015个默认字母表字符（255×153）或17,085个UCS-2字符（255×67）。<sup>[6](https://www.3gpp.org/ftp/tsg_t/tsg_t/tsgt_04/docs/pdfs/TP-99126.pdf)</sup> 在商业实践中限制更低：Twilio的表格列出GSM-7短信的最大拼接长度为1,600个字符（十段），UCS-2为700个字符。<sup>[3](https://www.twilio.com/docs/glossary/what-sms-character-limit)</sup>

## 实际后果

这一限制不仅影响长度，也影响费用，因为计费通常按分段进行。一条161个字符的GSM-7消息按两条计费；而一条消息只要沾上一个表情符号就会被重新编码为UCS-2，其拼接分段每段只容纳67个字符；因此一段满160字符、带一个表情符号的文本可能需要三段而非两段。<sup>[2](https://knowledgecenter.cm.com/knowledge-center/communications-platform/sms/sms-basics/what-is-the-length-of-an-sms-message)</sup>

160这个数字也是监管机构和一般性描述中最常引用的短信数字。美国联邦通信委员会将短信描述为通常限于160个字符，并指出许多现代手机支持超过此限制的拼接消息。<sup>[9](https://docs.fcc.gov/public/attachments/FCC-11-134A1.pdf)</sup> 后来的消息服务放宽了这一约束：[富通信服务](https://www.edgepedia.org/zh/rich-communication-services)（RCS）使用UTF-8编码，每字符占1到4个字节，而Twilio为RCS列出的分段数字与GSM-7短信相同，也是160/153。<sup>[3](https://www.twilio.com/docs/glossary/what-sms-character-limit)</sup>

## References

1. [RFC 5724: URI Scheme for GSM Short Message Service (SMS), IETF](https://datatracker.ietf.org/doc/rfc5724/)
2. [What is the length of an SMS message? CM.com Knowledge Center](https://knowledgecenter.cm.com/knowledge-center/communications-platform/sms/sms-basics/what-is-the-length-of-an-sms-message)
3. [How long can a message be? Twilio Docs](https://www.twilio.com/docs/glossary/what-sms-character-limit)
4. [CTIA SMS Interoperability Guidelines Version 3.2.1](https://api.ctia.org/docs/default-source/default-document-library/sms_interoperability_guidelines_v3-2-1_sep2014.pdf)
5. [3GPP TS 23.040 version 8.6.0 Release 8, Technical realization of the Short Message Service (ETSI)](https://www.etsi.org/deliver/etsi_ts/123000_123099/123040/08.06.00_60/ts_123040v080600p.pdf)
6. [3GPP TSG-T#4 document TP-99126 (3G TS 23.040 V2.0.0 draft)](https://www.3gpp.org/ftp/tsg_t/tsg_t/tsgt_04/docs/pdfs/TP-99126.pdf)
7. [SMS character limits and segment counting, Bird Docs](https://bird.com/docs/guides/sms/character-limits)
8. [ETSI TR 102 529 V1.1.1 (2009-03), SMS Testing](https://standards.iteh.ai/catalog/standards/etsi/fe77a77d-bd75-4c7b-98dd-4fdf0dfc98e4/etsi-tr-102-529-v1-1-1-2009-03)
9. [FCC 11-134 (2011), FCC document on SMS-based systems](https://docs.fcc.gov/public/attachments/FCC-11-134A1.pdf)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 11, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 通信与日常技术 › 电话系统与服务 › Mobile and precellular telephony › Mobile telephony (overview)

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/character-limit

English original: https://www.edgepedia.org/character-limit
