# 数据矩阵码

**数据矩阵码**（Data Matrix）是一种二维条码符号体系，由国际标准ISO/IEC 16022定义，数据被编码为深色与浅色方形模块组成的有序网格，四周环绕定位图案。<sup>[1](https://www.iso.org/standard/80926.html?browse=tc)</sup><sup> • </sup><sup>[2](https://ref.gs1.org/guidelines/datamatrix/)</sup>符号由二维成像扫描器或视觉系统读取，而非线性条码所用的激光扫描器。<sup>[2](https://ref.gs1.org/guidelines/datamatrix/)</sup>该标准现行版本为ISO/IEC 16022:2024（第3版，2024年5月发布），规定了符号体系特性、数据编码、符号格式、印刷质量要求、纠错规则和解码算法，适用于任何印刷或标记技术制作的符号。<sup>[1](https://www.iso.org/standard/80926.html?browse=tc)</sup>

| 关键事实 | 详情 |
|---|---|
| 主管标准 | ISO/IEC 16022；现行版本2024年5月发布（第3版，86页），取代ISO/IEC 16022:2006<sup>[1](https://www.iso.org/standard/80926.html?browse=tc)</sup> |
| 符号尺寸 | 方形格式：从10×10到144×144个模块共24种尺寸；矩形格式：从8×18到16×48个模块共6种尺寸，均不含静区<sup>[3](https://ref.gs1.org/standards/genspecs/15.0.0/)</sup> |
| 纠错 | 里德-所罗门码；ECC 200是唯一采用该纠错方式的数据矩阵码配置<sup>[2](https://ref.gs1.org/guidelines/datamatrix/)</sup> |
| 最大容量（144×144） | 3,116个数字字符、2,335个字母数字字符或1,558字节<sup>[2](https://ref.gs1.org/guidelines/datamatrix/)</sup> |
| 最小符号（10×10） | 3个数据码字和5个纠错码字，最多容纳6个数字<sup>[2](https://ref.gs1.org/guidelines/datamatrix/)</sup> |
| GS1变体 | GS1数据矩阵码：ECC 200，首位为FNC1码字（值232）；符号标识符]d2<sup>[4](https://www.gs1.org/standards/gs1-datamatrix-guideline/25)</sup> |
| 静区 | 四边各一个模块（1X）宽<sup>[5](https://ref.gs1.org/standards/genspecs/21.0.1/)</sup> |

## 物理结构

数据矩阵码符号由两部分组成：扫描器用于定位符号的定位图案，以及编码数据本身。<sup>[2](https://ref.gs1.org/guidelines/datamatrix/)</sup>定位图案环绕四周。一边及相邻一边的一部分构成实心深色“L形定位图案”，宽一个模块，主要用于确定符号的尺寸、方向和畸变。另外两边为深浅交替的模块，称为“时钟轨”，用于界定基本结构并帮助确定尺寸和畸变。<sup>[2](https://ref.gs1.org/guidelines/datamatrix/)</sup><sup> • </sup><sup>[5](https://ref.gs1.org/standards/genspecs/21.0.1/)</sup>

深色模块表示二进制1，浅色模块表示二进制0；采用反射反转印刷的符号则相反。<sup>[5](https://ref.gs1.org/standards/genspecs/21.0.1/)</sup>方形ECC 200符号的行数和列数始终为偶数，因此在正常印刷下，与定位图案中点相对的角上为浅色（零）模块；这使读取器能够区分ECC 200与旧版数据矩阵码。<sup>[5](https://ref.gs1.org/standards/genspecs/21.0.1/)</sup>四边各一个模块宽的空白区域为强制静区，不得有任何可能干扰读取的图形元素。<sup>[2](https://ref.gs1.org/guidelines/datamatrix/)</sup><sup> • </sup><sup>[5](https://ref.gs1.org/standards/genspecs/21.0.1/)</sup>

## 尺寸与容量

符号尺寸由待编码数据量决定，而非由选定的纠错百分比决定。<sup>[2](https://ref.gs1.org/guidelines/datamatrix/)</sup>方形符号有24种尺寸，从10×10到144×144个模块；矩形符号有6种尺寸，从8×18到16×48个模块，两者均不含周围静区。<sup>[3](https://ref.gs1.org/standards/genspecs/15.0.0/)</sup>方形格式最为常用，可编码的数据量最大；矩形格式高度有限，适合某些高速印刷技术和特殊印刷空间。<sup>[2](https://ref.gs1.org/guidelines/datamatrix/)</sup>

容量随尺寸增大而增加。10×10符号容纳3个数据码字和5个纠错码字，最多6个数字；26×26符号容纳44个数据码字和28个纠错码字，最多88个数字；最大的144×144符号容纳1,558个数据码字和620个纠错码字，最多3,116个数字、2,335个字母数字字符或1,558字节。<sup>[2](https://ref.gs1.org/guidelines/datamatrix/)</sup>52×52及以上的符号使用2至10个交错的里德-所罗门纠错码字块。<sup>[3](https://ref.gs1.org/standards/genspecs/15.0.0/)</sup>码字通常为8位数据，是源数据与符号图形编码之间的中间编码层级。<sup>[3](https://ref.gs1.org/standards/genspecs/15.0.0/)</sup>

## 编码与纠错

数据矩阵码支持多种编码方案，可在同一符号内混用：ASCII、ISO/IEC 646、C40、Text、X12、EDIFACT和Base 256。<sup>[2](https://ref.gs1.org/guidelines/datamatrix/)</sup>在码字表中，值1至128承载ASCII数据（ASCII值加1），值130至229承载两位数字数据00至99，值230至241为功能字符，如切换至C40（230）和Base 256（231）的锁存符，以及FNC1（232）。<sup>[2](https://ref.gs1.org/guidelines/datamatrix/)</sup>若编码数据未填满符号容量，填充字符（码字值129）填补剩余空间。<sup>[2](https://ref.gs1.org/guidelines/datamatrix/)</sup>

ECC 200是唯一采用里德-所罗门纠错的数据矩阵码配置；早期方案（ECC 000、050、080、100和140）具有某种形式的检错和纠错能力，但已不再使用。<sup>[2](https://ref.gs1.org/guidelines/datamatrix/)</sup>里德-所罗门码在创建符号时计算补码和附加码，扫描时通过定位错误来还原原始数据，错误可能源于印刷问题、镜面反射或印刷表面劣化。<sup>[2](https://ref.gs1.org/guidelines/datamatrix/)</sup>纠错水平取决于所用纠错码字的相对数量；例如，26×26符号最多可纠正14个错误或25个擦除。<sup>[2](https://ref.gs1.org/guidelines/datamatrix/)</sup>

## GS1数据矩阵码

GS1数据矩阵码是GS1体系内使用的数据矩阵码标准化实施方案：即数据矩阵码ECC 200，在编码数据的首位添加功能1符号字符（FNC1，码字232）。<sup>[4](https://www.gs1.org/standards/gs1-datamatrix-guideline/25)</sup>FNC1起始序列使扫描器能够将GS1数据矩阵码与其他ISO/IEC数据矩阵码区分开来，并按GS1体系规则处理数据；根据ISO/IEC 15424，扫描器传输的符号标识符为]d2。<sup>[4](https://www.gs1.org/standards/gs1-datamatrix-guideline/25)</sup>普通ISO/IEC数据矩阵码不要求FNC1，正确使用FNC1才能使扫描系统区分两个版本。<sup>[6](https://support.gs1.org/support/solutions/articles/43000734429-does-datamatrix-require-the-use-of-the-function-1-character-)</sup>

FNC1在GS1数据矩阵码中有两个用途：作为起始字符，以及当一个符号中串联多个非预定义长度的元素串时作为分隔符。当FNC1或控制字符<GS>（ASCII 29）用作分隔符时，扫描器将其传输为<GS>。符号中最后一个元素串之后无需分隔符。<sup>[4](https://www.gs1.org/standards/gs1-datamatrix-guideline/25)</sup>GS1标准要求以ISO/IEC 646子集（等同于ASCII）编码数据；GS1体系不允许使用带重音字母等扩展字符，因为同一ASCII码在不同地区可能表示不同的扩展字符。<sup>[2](https://ref.gs1.org/guidelines/datamatrix/)</sup>

## 应用

**医疗保健。** GS1已采用GS1数据矩阵码作为医疗保健产品标识的首选数据载体，它满足75个以上国家的药品追溯法规以及唯一器械标识（UDI）要求。<sup>[7](https://www.gs1.org/industries/healthcare/2d-barcode-healthcare)</sup>典型的医疗保健符号编码内容包括：用应用标识符（AI）（01）表示的GTIN、用AI（10）表示的批号或批次号、用AI（17）表示的失效日期，以及相关情况下用AI（21）表示的序列号。<sup>[7](https://www.gs1.org/industries/healthcare/2d-barcode-healthcare)</sup><sup> • </sup><sup>[2](https://ref.gs1.org/guidelines/datamatrix/)</sup>在美国，FDA的UDI规则要求器械标签方以纯文本和机器可读两种形式提供唯一器械标识，机器可读形式须使用自动识别与数据采集技术；拟重复使用和再处理的器械还须在器械本体上以永久标记形式标注UDI。<sup>[8](https://www.fda.gov/medical-devices/unique-device-identification-system-udi-system/udi-basics)</sup><sup> • </sup><sup>[9](https://www.fda.gov/regulatory-information/search-fda-guidance-documents/unique-device-identification-direct-marking-devices)</sup>GS1医疗保健组织倾向于每件包装使用单一符号，部分出于患者安全考虑：多个符号会带来风险，如扫错符号或相邻符号之间相互干扰。<sup>[10](https://support.gs1.org/support/solutions/articles/43000734222/)</sup>根据GS1的指引，手机摄像头无法原生扫描GS1数据矩阵码，因为苹果和谷歌尚未为该符号体系启用原生扫描功能。<sup>[11](https://www.gs1.org/industries/healthcare/scan-my-gs1-datamatrix)</sup>

**直接零件标记。** 自21世纪初以来，数据矩阵码已成为直接标记在零件、组件和产品上的公认条码格式，其耐久性足以在物品整个生命周期内标识该物品。<sup>[12](https://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/20060048173.pdf)</sup>挑战者号事故后，NASA在“重返飞行”活动中开始研究数据矩阵码符号的[直接零件标记](https://www.edgepedia.org/zh/direct-part-marking)，NASA技术标准6002和NASA手册6003关于航空航天零件直接零件标记的规定，已成为大多数其他国际零件标记标准的基础。<sup>[12](https://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/20060048173.pdf)</sup><sup> • </sup><sup>[13](https://standards.nasa.gov/node/256)</sup>该技术也称为机器可读标识，广泛应用于汽车和航空航天领域，将字母数字码和二维数据矩阵码标记在单个零件和组件上。<sup>[14](https://global.videojet.com/wp-content/uploads/dam/pdf/UK%20-%20English/Technical%20Guides/tg-methods-for-direct-part-marking-en.pdf)</sup>此类应用推荐使用ECC 200符号，因为即使代码部分损坏或分辨率不佳，它仍具有高精度，且与几乎所有现有的零件标记技术兼容。<sup>[15](https://ntrs.nasa.gov/api/citations/20130013036/downloads/20130013036.pdf?attachment=true)</sup>

**与QR码的比较。** 两者均为GS1批准使用的二维符号体系，但编码GS1数据的方式不同：GS1数据矩阵码使用GS1元素串语法，与[GS1-128](https://www.edgepedia.org/zh/gs1-128)格式相同；而QR码和采用GS1数字链接的数据矩阵码使用[GS1数字链接](https://www.edgepedia.org/zh/gs1-digital-link)URI语法，后者增加了网络连接功能以促进消费者互动。<sup>[16](https://support.gs1.org/support/solutions/articles/43000756000-what-is-the-difference-between-the-2d-barcode-options-gs1-datamatrix-data-matrix-with-gs1-digital-l)</sup>QR码目前是消费者互动的首选，因为任何移动设备的默认相机应用都能扫描它并连接至网站，而并非所有移动设备摄像头都能自动处理数据矩阵码。<sup>[16](https://support.gs1.org/support/solutions/articles/43000756000-what-is-the-difference-between-the-2d-barcode-options-gs1-datamatrix-data-matrix-with-gs1-digital-l)</sup>

## References

1. [ISO/IEC 16022:2024 - Data Matrix bar code symbology specification, ISO](https://www.iso.org/standard/80926.html?browse=tc)
2. [GS1 DataMatrix Guideline, GS1](https://ref.gs1.org/guidelines/datamatrix/)
3. [GS1 General Specifications 15.0.0, Section 5: Data Carriers, GS1](https://ref.gs1.org/standards/genspecs/15.0.0/)
4. [GS1 DataMatrix Guideline, GS1](https://www.gs1.org/standards/gs1-datamatrix-guideline/25)
5. [GS1 General Specifications 21.0.1, GS1](https://ref.gs1.org/standards/genspecs/21.0.1/)
6. [Does DataMatrix require the use of the Function 1 character?, GS1 GO Customer Service Portal](https://support.gs1.org/support/solutions/articles/43000734429-does-datamatrix-require-the-use-of-the-function-1-character-)
7. [2D Barcodes in healthcare, GS1](https://www.gs1.org/industries/healthcare/2d-barcode-healthcare)
8. [UDI Basics, U.S. Food and Drug Administration](https://www.fda.gov/medical-devices/unique-device-identification-system-udi-system/udi-basics)
9. [Unique Device Identification: Direct Marking of Devices, FDA Guidance (November 2017)](https://www.fda.gov/regulatory-information/search-fda-guidance-documents/unique-device-identification-direct-marking-devices)
10. [Why is GS1 DataMatrix the only recommended 2D/Matrix Data Carrier for Healthcare applications instead of GS1 QR Code?, GS1 GO Customer Service Portal](https://support.gs1.org/support/solutions/articles/43000734222/)
11. [GS1 DataMatrix scanning, GS1](https://www.gs1.org/industries/healthcare/scan-my-gs1-datamatrix)
12. [NASA Technologies for Product Identification, NASA Technical Reports Server (2006)](https://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/20060048173.pdf)
13. [Applying Data Matrix Identification Symbols on Aerospace Parts (NASA-STD-6002D), NASA Standards](https://standards.nasa.gov/node/256)
14. [Methods for Direct Part Marking, Technical Guide, Videojet](https://global.videojet.com/wp-content/uploads/dam/pdf/UK%20-%20English/Technical%20Guides/tg-methods-for-direct-part-marking-en.pdf)
15. [Parts Quality Management: Direct Part Marking of Data, NASA Technical Reports Server](https://ntrs.nasa.gov/api/citations/20130013036/downloads/20130013036.pdf?attachment=true)
16. [What is the difference between the 2D barcode options (GS1 DataMatrix, Data Matrix with GS1 Digital Link and QR Code with GS1 Digital Link)?, GS1 GO Customer Service Portal](https://support.gs1.org/support/solutions/articles/43000756000-what-is-the-difference-between-the-2d-barcode-options-gs1-datamatrix-data-matrix-with-gs1-digital-l)

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

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Data formats and serialization › Text, encodings, and archives

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/data-matrix

English original: https://www.edgepedia.org/data-matrix
