免费 Code 128A 条形码生成器 — 大写字母与控制字符编码
在线免费生成 Code 128A 条形码。Code 128A 支持大写字母(A–Z)、数字(0–9)及 ASCII 控制字符(NUL–US),适用于物流标签、GS1 供应链及需要 FNC1 等不可打印控制码的系统。即时下载 PNG 或 SVG 格式,无需注册,无水印,无限制。
什么是 Code 128A?
Code 128A 是 Code 128 码制的固定子集变体,可编码 ASCII 位置 0x00 至 0x5F 的字符:数字 0–9、大写字母 A–Z、空格、常用标点符号,以及 32 个 ASCII 控制字符(NUL、SOH、STX……至 GS、RS、US)。它是 ISO/IEC 15417 标准定义的三种编码子集之一。与 Code 128(自动模式)不同,Code 128A 不切换子集——条形码中的每个字符均使用子集 A 编码表进行编码。当数据包含控制字符、接收系统明确要求使用子集 A,或为兼容传统扫描仪而使用纯大写数据时,Code 128A 是正确的选择。
- 支持 ASCII 控制字符(NUL–US)编码Code 128A 是唯一能够不借助特殊转义序列直接编码 ASCII 控制字符的 Code 128 子集。字符 0x00(NUL)至 0x1F(US)——包括 SOH、STX、ETX、EOT、TAB、LF、CR、ESC 等——均作为标准符号字符编码。这使 Code 128A 成为 GS1 FNC1 初始化条形码、EDI 报文编码,以及任何使用控制码作为字段分隔符的条形码系统的必要格式。
- 支持大写字母与完整数字除控制字符外,Code 128A 还可编码全部 26 个大写字母(A–Z)、10 个数字(0–9)、空格,以及一组标准标点符号,包括 !、"、#、$、%、&、'、(、)、*、+、逗号、-、.、/、:、;、<、=、>、?、@。这涵盖了大多数物流、快递和工业条形码应用中不需要小写字母的完整字符集。
- 基于 Mod 103 的强制校验字符与所有 Code 128 变体相同,Code 128A 包含一个在编码时自动计算并附加的 Mod 103 校验字符。校验字符由所有编码符号值的加权求和得出,扫描仪在解码时将对其进行验证。校验字符不匹配的条形码在数据传递至主机系统前即被拒绝,从而提供可靠的首次扫描错误检测。
- 与物流系统的广泛兼容性众多传统仓储管理系统、物流标签标准及 EDI 协议明确指定使用 Code 128A。若规范文件或系统集成指南要求使用「Code 128 子集 A」或「Code 128A」,请使用此格式而非 Code 128 自动模式,以确保扫描仪和主机系统接收到预期的编码结构——包括所需的起始字符。
Code 128A specifications
Code 128 locked to code set A — uppercase letters, digits, and ASCII control characters. The table below lists the exact Code 128A specifications — character set, check digit, X-dimension, quiet zone and the governing ISO/IEC 15417 standard — so you can size and print the symbol correctly the first time.
| Character set | Digits 0-9, uppercase A-Z, ASCII control characters (NUL-US), and - . / : + % $ space (ASCII 0-63) |
|---|---|
| Data length | Variable; no fixed minimum or maximum |
| Check digit | Mandatory Mod 103 check character, appended automatically |
| Density | ≈12 characters per inch at the minimum 0.19 mm X-dimension |
| X-dimension (module width) | 0.19-0.50 mm typical |
| Quiet zone | 10X on each side |
| Magnification | Scales linearly with the chosen X-dimension |
| Bar / space ratio | Variable-width bars and spaces |
| Standard | ISO/IEC 15417 |
| Introduced | 1981 — Ted Williams, Computer Identics |
Typical uses: Legacy systems exchanging ASCII control characters; Industrial equipment interface labels; Fixed-format batch data with control separators.
How Code 128A compares to similar barcode types
Choosing the wrong symbology is the most common cause of barcodes that scan in the warehouse but get rejected downstream. This table compares Code 128A with the formats most often confused with it, on the three properties that decide compatibility: character set, check digit, and quiet zone.
| Symbology | Character set | Check digit | Quiet zone |
|---|---|---|---|
| Code 128A(this page) | Digits 0-9, uppercase A-Z, ASCII control characters (NUL-US), and - . / : + % $ space (ASCII 0-63) | Mandatory Mod 103 check character, appended automatically | 10X on each side |
| Code 128 | All 128 ASCII characters: 0-9, A-Z, a-z, punctuation, and control characters (code set dependent) | Mandatory Mod 103 check character, calculated automatically by the encoder | 10X on each side (minimum 2.5 mm recommended for general scanning) |
| Code 128B | Full printable ASCII 32-127: digits, upper and lowercase letters, punctuation, and space | Mandatory Mod 103 check character, appended automatically | 10X on each side |
| Code 128C | Digit pairs 00-99 only (numeric data) | Mandatory Mod 103 check character, appended automatically | 10X on each side |
Code 128A 条形码生成器功能
精确控制编码、尺寸和输出格式,生成符合规范的 Code 128A 条形码。
严格的子集 A 编码
本生成器仅限使用子集 A 编码——不自动切换子集。输出的条形码使用 Code 128 起始 A 字符,并使用子集 A 编码表对每个输入字符进行编码。如果输入包含子集 A 范围以外的字符(如小写字母),生成器会在生成不合规条形码之前标记无效字符。
支持控制字符输入
使用标准转义符号输入 ASCII 控制字符,或从源系统直接复制粘贴。编码器将控制码正确映射到对应的子集 A 符号值,并将其包含在条形码输出中。这使您能够生成符合规范要求的 GS1 FNC1 初始化 Code 128A 条形码及以控制码为分隔符的物流标签。
PNG 和 SVG 格式输出
将 Code 128A 条形码下载为高分辨率 PNG 或无损 SVG 矢量文件。SVG 输出可按任意打印尺寸缩放而不失真,对于需要在 25mm 地址标签到 A4 物流文件等多种标签尺寸上均可扫描的物流标签至关重要。
可调条高与模块宽度
设置条高和 X 尺寸(模块宽度)以匹配标签材料和扫描仪类型的物理要求。更高的条高可改善手持扫描仪的扫描角度容差;更宽的模块可提高低分辨率标签打印机的可读性。静区将按所需最小值自动生成。
批量生成大写列表条形码
将纯大写值列表——物料编号、运输代码、序列号——粘贴到批量面板中,一次生成所有 Code 128A 条形码。以 PNG 或 SVG 文件的 ZIP 压缩包形式下载,可用于标签软件、电子表格邮件合并或直接打印工作流程。
Code 128A 常见问题解答
关于 Code 128A 字符支持、应用场景及与 Code 128 自动模式区别的技术解答。
Code 128A 支持哪些字符?
Code 128A 编码 ASCII 范围 0x00–0x5F 内的字符:10 个数字(0–9)、26 个大写字母(A–Z)、空格(0x20)、标准标点符号(! " # $ % & ' ( ) * + , - . / : ; < = > ? @),以及从 NUL(0x00)到 US(0x1F)的 32 个 ASCII 控制字符。子集 A 不支持小写字母(a–z)及 0x5F 以上的字符。
何时应使用 Code 128A 而非 Code 128 自动模式?
在以下情况下使用 Code 128A:接收系统或规范明确要求子集 A 编码;数据包含必须作为标准子集 A 符号编码的 ASCII 控制字符;或与通过条形码起始字符识别编码子集的传统条码扫描仪或中间件集成时。对于仅含可打印 ASCII 数据的通用场景,Code 128 自动模式对子集 A 兼容输入可产生相同结果,并具有处理其他输入的灵活性。
Code 128A 能编码小写字母吗?
不能。小写字母(a–z,ASCII 0x61–0x7A)超出了子集 A 的字符范围。如需在 Code 128 条形码中编码小写字母,请使用 Code 128B 或 Code 128 自动模式。在严格的 Code 128A 条形码中尝试编码小写字母会产生大多数扫描仪无法识别的无效符号。
Code 128A 有校验位吗?
有。与所有 Code 128 变体相同,Code 128A 包含一个强制性 Mod 103 校验字符,由编码器自动计算并附加。您无需自行计算或添加。
Related barcode tools
Need more than one barcode, a printed label sheet, or a way to check the result? These tools use the same generator, so the output matches.
- Barcode Label PrintPrint a full sheet of labels that lines up with Avery label stock, at the correct physical size.
- Barcode ScannerVerify a printed label before you run the whole batch — decode it from an image or your camera.
- Barcode MakerFull control over size, colors, font, quiet zone, and layout for a single barcode.
立即创建 Code 128A 条形码 — 免费、即时、无需注册
立即为物流、快递和控制字符编码标签生成符合规范的 Code 128A 条形码。输入大写数据,下载 PNG 或 SVG,直接打印——完全免费,无需账号。
