Standards/code-one
Code One
Overview
Code One (also written Code 1) is a two-dimensional matrix symbology built from square data cells around a recognition pattern of bars and spaces that runs horizontally through the middle of the symbol, with vertical reference bars extending up and down from it 1112. It was invented by Ted Williams of Laserlight Systems 1 and is described as the first, or earliest, public-domain 2D matrix symbology 127. Its specification is the AIM USA Uniform Symbology Specification Code One of July 1994 143. There are eight square versions, A to H, holding from 13 to 2,218 alphanumeric characters, plus two short, fixed-height versions, S and T, designed for inkjet printing 13.
History
Invention (1991–1992). Seagull Scientific's barcode guide says Code One was "invented by Ted Williams of Laserlight Systems, Inc. in 1991" 1. Rosistem's barcode tutorial says Williams invented it in 1992 and that Laser Light Systems announced it in 1991 2. The Zint manual and the DataFlex reporting documentation both give "developed by Ted Williams in 1992" 310. No primary source (a Laserlight announcement or the AIM specification text itself) was found to settle the year. No public source found says where Laserlight Systems was based or why it put the symbology in the public domain.
Williams had earlier designed the stacked symbology Code 16K at Laserlight; the Zint manual dates that to 1988 and Wikipedia to 1989 319.
Specification (1994). An Intermec patent's non-patent citations list "AIM USA, 'Uniform Symbology Specification Code One', Jul. 1994, pp. 1-32" 14. Zint names "AIM Uniform Symbology Specification Code One (1994)" as the standard its encoder follows 3, and its source code refers to the specification's tables and to its Annex D encodation steps 45. No later edition and no ISO/IEC version were found.
Reader development (1995–1996). Intermec filed several patents in 1995 and 1996 on locating and measuring Code One symbols in camera images. Two of them call it "a recently developed symbology" 111213. These are reader-side methods; no patent on the symbology itself was found.
Technical specification
Structure. A Code One symbol has three parts 1213:
- a recognition pattern of bars and spaces running horizontally through the symbol;
- vertical reference patterns that extend perpendicularly from it, used to find the symbol and to measure its tilt, orientation and any surface curvature;
- a matrix of square data cells above and below the recognition pattern. Each cell is one bit, dark = 1 and light = 0.
The recognition pattern identifies the version and gives the X-dimension (the size of one data cell); a version D symbol, for example, has five bars and four spaces in its centre pattern 1112. A symbol character is normally a block of eight cells in two rows of four, encoding one 8-bit codeword. Codewords are read from the top-left corner rightward, row pair by row pair, to the bottom right 12. Rosistem adds that symbols can be laid out in L, U or T shapes; this is the only source found that says so 2. Reading needs a 2D imager such as a CCD camera, not a scanning laser 212.
Versions A–H. Sizes and capacities, from the Zint manual and Seagull's guide; codeword counts are from Zint's tables, which cite Table 14 of the AIM specification 135:
| Version | Size (H × W modules) | Numeric | Alphanumeric | Bytes (Full ASCII) | Data codewords | EC codewords |
|---|---|---|---|---|---|---|
| A | 16 × 18 | 22 | 13 | 10 | 10 | 10 |
| B | 22 × 22 | 44 | 27 | 19 | 19 | 16 |
| C | 28 × 32 | 104 | 64 | 44 | 44 | 26 |
| D | 40 × 42 | 217 | 135 | 91 | 91 | 44 |
| E | 52 × 54 | 435 | 271 | 182 | 182 | 70 |
| F | 70 × 76 | 886 | 553 | 370 | 370 | 140 |
| G | 104 × 98 | 1,755 | 1,096 | 732 | 732 | 280 |
| H | 148 × 134 | 3,550 | 2,218 | 1,480 | 1,480 | 560 |
Versions A to H need no quiet zone on any side 1. Error correction therefore takes half the codewords in version A and about 27% in version H (computed from 5). In versions F, G and H the codewords are split into 2, 4 and 8 Reed–Solomon blocks of about 185 data and 70 check codewords each 5.
Versions S and T. Seagull's guide says version S was designed for high-speed printing on an eight-nozzle inkjet printer and version T for a 16-nozzle one; each comes in three sizes and needs a quiet zone of at least 1X on all sides 1:
| Version | Rows (Zint, BWIPP) | Width in modules (Zint, BWIPP) | Capacity |
|---|---|---|---|
| S-10 / S-20 / S-30 | 8 | 11 / 21 / 31 | 6 / 12 / 18 digits only |
| T-16 / T-32 / T-48 | 16 | 17 / 33 / 49 | 10 / 24 / 38 data codewords (22 / 56 / 90 digits, 13 / 34 / 55 alphanumeric) |
Sources: 147; widths and heights also by local check with bwip-js 4.11.0. Seagull gives larger maximum sizes (S 13/23/33 × 9, T 19/35/51 × 17), which may include a border; the source does not say 1. Version S does not encode characters: Zint converts the whole number, plus one, to binary and stores it in 5-bit codewords protected by Reed–Solomon over GF(32) 4. Version T uses 10, 16 or 22 check codewords 4.
Error correction. Reed–Solomon throughout, with a fixed amount per version that the user cannot choose 12. Zint computes A–H and T over GF(256) with field polynomial 0x12D, and S over GF(32) with 0x25 4.
Character set and encodation. Seagull lists all 256 byte values, a pad/message-separator character and 8-bit binary data 1. Rosistem adds function characters and escape sequences for international code pages 2. Readers interpret data as ISO/IEC 8859-1 (Latin-1) by default, and Extended Channel Interpretation (ECI) selects other code pages 73. In the ASCII mode a character's codeword is its ASCII value plus one 12. Zint and OkapiBarcode implement six encodation modes: ASCII, C40, Decimal, Text, EDI and Byte. The Zint code follows the specification's Annex D mode-switching rules, uses codeword 129 as the pad and 255 to unlatch back to ASCII 46. The Zint manual says Code One encodes data "in a way similar to Data Matrix" 3.
Options. GS1 data is supported with FNC1 37. Structured Append links up to 128 symbols, but with no sequence identifier, and not in version S or with GS1 data 3. BWIPP encodes up to 15 symbols in "Group mode" and more in "Extended Group mode" 7. BWIPP also offers FNC3 reader programming and FNC1 in second position 7.
Use cases
Public evidence of real deployments is thin.
- Thermal label printers. Seagull's guide says Code One "is used only with some Intermec printers" 1. The Intermec 4400 label printer's manual documents it as bar code
c13with three modifiers: the version (0 for automatic selection from A to H, or A–H, S10–S30, T16–T48), and position and total for a group of 1 to 15 linked symbols 1516. Its table gives Full ASCII, alphanumeric and numeric limits per version, 10, 13 and 22 for version A 16. - Healthcare. Rosistem lists medicine labels 2.
- Recycling. Rosistem lists encoding a container's contents so it can be sorted 2.
- Large files and small items. Rosistem also names large data files and small-item marking 2.
No named user, volume figure or industry guideline that mandates Code One was found.
Implementations
Encoders.
| Library | Language | Stars | Last active | Code One support |
|---|---|---|---|---|
| zint/zint | C | 828 | Oct 2026 | BARCODE_CODEONE (141); --vers 1–8 = A–H, 9 = S, 10 = T; ECI, GS1, Structured Append 34 |
| bwipp/postscriptbarcode | PostScript | 504 | Oct 2026 | codeone since February 2011; version=A…H, T-16/32/48, S-10/20/30 78 |
| metafloor/bwip-js | JavaScript | 2,431 | Aug 2026 | codeone, translated from BWIPP 9 |
| woo-j/OkapiBarcode | Java | 399 | Oct 2026 | CodeOne class, versions A–H, S and T 6 |
Star counts and activity were read from the GitHub API on 9 November 2026. BarTender (Seagull Scientific) supports Code One in commercial label software, but Seagull says only with some Intermec printers 1.
BWIPP's change log shows recent work on the encoder: ECI support in October 2020; Structured Append, FNC1 in second position and refusing ECIs with GS1 data in October 2026; automatic choice of the smallest S or T symbol (version=S / version=T) on 21 October 2026; and the readerinit option on 26 October 2026 8.
Decoders. No open-source decoder was found. The supported-format lists of ZXing and zxing-cpp do not include Code One 1718, nor does the format list of the zxing-wasm build that Barcoder's engine uses (local check). Zint is a barcode generator and BWIPP a barcode writer 39. The Intermec patents describe reader algorithms, not available code 111213.
About the Try-it encoder. The panel renders bwip-js codeone with data Code One:
- This is BWIPP's own first example ("A standard symbol, automatically sized") 7.
- It is 8 Latin-1 characters, within every version's capacity. bwip-js 4.11.0 picks version A (18 × 16 modules) (local check).
- Version A's limits match the tables: 13 letters and 22 digits encode in version A, while a 14th letter or 23rd digit is refused with "Maximum length exceeded" (local check) 3.
- bwip-js 4.11.0 wraps BWIPP 2026-05-28 9. It rejects the plain
version=Tandversion=Sadded to BWIPP in October 2026 ("version must be A to H, T-16, T-32, T-48, S-10, S-20 or S-30") (local check) 8. - The sample is a plain text string; scanning it opens nothing and identifies nobody.
Comparison
| Code One | Data Matrix | QR Code | |
|---|---|---|---|
| Finder | central horizontal pattern + vertical reference bars | — | — |
| Sizes | A–H, 16 × 18 to 148 × 134; S and T 8 or 16 rows | 10 × 10 to 144 × 144 plus rectangles | — |
| Maximum | 3,550 digits / 2,218 alphanumeric | — | — |
| Standard | AIM USS (1994) | ISO/IEC 16022:2024 | ISO/IEC 18004:2024 |
| Open decoders | none found | ZXing, zxing-cpp | ZXing, zxing-cpp |
Zint says Code One encodes data "in a way similar to Data Matrix" 3. Data Matrix is older. Zint dates it to 1989, by Acuity CiMatrix, so Code One's "first" claim is about being in the public domain, not about being the first matrix code 13. In practice, the deciding difference is reading. Data Matrix and QR Code have ISO standards and are read by the common open-source libraries, while Code One has neither 31718. Code One's S and T versions remain unusual: they fit a whole symbol into 8 or 16 rows for inkjet print heads 14.
Fun facts
- Version S stores a number, not digits. It encodes the value of the input plus one as a binary number in 5-bit codewords, so 18 digits fit in a symbol 8 modules high 4.
- The 15-symbol group. The Intermec 4400 limits a group of linked symbols to 15, the same as BWIPP's "Group mode" cap for Structured Append. BWIPP needs "Extended Group mode" for anything longer, up to 128 716.
Status
Niche and legacy, but still generated. The 1994 AIM specification is the only edition found 314, and Seagull describes the code as used only with some Intermec printers 1. Zint's July 2026 manual and BWIPP's October 2026 releases continue to develop the encoders 38. No current open-source reader was found 1718. No successor has been announced.
Sources
Deployments
No country reports mention this standard by name.
Regions / aggregations not mapped to a single country
- Universal