Standards/code-49
Code 49
Overview
Code 49 (also USS-49, ANSI/AIM BC6) is a continuous, variable-length stacked barcode: a symbol is 2 to 8 rows of linear barcode, each row 70 modules wide, stacked directly on top of one another and separated by horizontal bars 124. It encodes the full 128-character ASCII set, up to 49 alphanumeric characters or 81 digits per symbol 14. Each row carries its own modulo-49 check character, and the symbol carries two or three modulo-2401 check characters 110.
David Allais designed it at Intermec, which exhibited a prototype in 1987 and patented the structure in 1988 56. Seagull Scientific calls it the first stacked barcode symbology, and Allais wrote that it set the stage for PDF417 15. The specification is AIM's Uniform Symbology Specification – Code 49 (ANSI/AIM BC6) 34.
History
Origin. David Allais, Intermec's former chief executive, wrote in his 2006 memoir that in 1987 he "began to think about the next evolution in bar code symbology": linear codes handled moderate amounts of data on most objects, but "small objects and larger data requirements presented a challenge". When he became Intermec's chief scientist, "and not CEO", he had time to work on the problem. "My solution was Code 49, a prototype of which was exhibited by Intermec at Scan Tech 1987" 5. A company history from Gale records that Intermec named Phillip Arneson chairman and CEO in August 1987 and made Allais chief scientist. It quotes Intermec describing Code 49 as "the first 2D stacked bar code symbology, useful for extremely small-space applications" 7. Allais had spent 1968 to 1988 in executive roles at Intermec, 14 years of them as CEO. Wikipedia credits him with four earlier symbologies: Interleaved 2 of 5 (ITF, 1972), Code 39 (1974, with Ray Stevens), Code 11 (1977) and Code 93 (1982) 8.
Patent. Intermec filed US patent 4,794,239, Multitrack bar code and associated decoding method, with Allais as inventor, on 13 Oct 1987. It was granted on 27 Dec 1988 and has since expired 6. The patent's background explains the motive. An 18-character Code 93 symbol is about 1.5 inches long at the usual 0.0075-inch module, and still 0.6 inch at 0.003 inch. That is too long for surface-mount electronic parts "on the order of one-quarter inch on a side" 6. The patent weighs OCR, two-dimensional marks such as Veritec's VERICODE, and "tiered" bar code such as the AIAG shipping label of four or more stacked symbols. It proposes instead a new symbology structure "compatible with prevailing standard bar codes" 6.
"First stacked code". Seagull calls Code 49 the first stacked barcode symbology 1. Zint more cautiously calls it "one of the earliest stacked symbologies" 4. A Stimulsoft manual dates the "portable database" idea to the 1984 AIAG standard with four stacked Code 39 symbols, and calls Code 49, "announced" by Intermec in 1988, the first truly two-dimensional code 9. The difference is one of definition. The AIAG label stacked independent symbols, while Code 49 links its rows into one symbol with shared check characters 610.
Standardisation. AIM published the specification as a Uniform Symbology Specification. NSAI lists AIM BC6:1995(R2000) Uniform Symbology Specification – Code 49 as the current edition 3. Zint and OkapiBarcode cite it as ANSI/AIM BC6-2000, and Zint's tables are "taken from ANSI/AIM-BC6-2000, 4th April 2000" 41019. Seagull and Rosistem's barcode.ro both say the code is in the public domain 114. The specification itself is sold, not free, and no public copy was found. The technical details below come from the patent, from vendor references, and from the open-source encoders, which reproduce the specification's tables.
Technical specification
| Parameter | Value |
|---|---|
| Type | Continuous, variable-length, stacked (multi-row) 12 |
| Rows | 2–8 124 |
| Row width | 70 modules: start (1X bar, 1X space), 4 symbol characters of 16 modules, stop (4X bar) 1610 |
| Elements per row | 18 bars, 17 spaces 16 |
| Symbol character | a (16,4) word of 4 bars and 4 spaces; values 0–2400 in an odd- and an even-parity form 6 |
| Code characters | 49 values: 0–9, A–Z, - . space $ / + %, Shift 1, Shift 2, FNC1–FNC3, Numeric Shift 1011 |
| Data | all 128 ASCII characters; readers interpret them as ISO/IEC 646 IRV (US-ASCII) 112 |
| Capacity | 49 alphanumeric characters or 81 digits 410 |
| Checks | 1 row check per row (mod 49); 2 symbol checks (mod 2401), 3 in symbols of 7–8 rows 110 |
| Quiet zones | ≥10X leading, ≥1X trailing 1 |
| Row height | ≥8X 110 |
| Symbology identifier | ]T plus a modifier (ISO/IEC 15424 code letter T) 13 |
Code characters and words. The symbol encodes a stream of code characters taken from a 49-value set. An ASCII character outside the basic 43 (digits, capitals, space and -.$/+%) becomes a pair: Shift 1 or Shift 2 followed by a basic character, as set out in the specification's Table 7 ASCII chart 1011. Pairs of code characters form words with the value 49 × first + second, from 0 to 2400 610. Each word is printed as a (16,4) pattern, 4 bars and 4 spaces over 16 modules. Of the 6,435 possible patterns the code uses 4,802: 2,401 with an even number of dark modules and 2,401 with an odd number 6.
Rows. Each row holds 8 code characters, which make 4 words. In every row but the last, the first 7 are data and the 8th is a row check, the sum of the 7 modulo 49 10. Seagull's summary, "four symbol characters that encode eight ASCII characters, the last of which is a row check character", counts code characters, not ASCII characters: a shifted character takes two 110. The rows carry no row number. Instead, each row has its own pattern of odd- and even-parity words, from O-E-E-O for row 1 to all even for row 8, and the last row is always all even. The patent states that this "allows each of the eight rows to be uniquely encoded by the even/odd parity of its constituent words" 610.
Last row and modes. The last row carries the symbol checks. Its 7th code character is 7 × (rows − 2) + mode, which records both the row count and the starting mode 10. Then come check X and check Y. Symbols of 7 or 8 rows add check Z in the last row's first two positions; otherwise those two hold data 10. Each symbol check is a weighted sum of the word values modulo 2401 (49²), using the weights of the specification's Table 5 10. BWIPP implements six starting modes 1112:
| Mode | Meaning |
|---|---|
| 0 | alphanumeric |
| 1 | alphanumeric continuation ("append") |
| 2 | numeric |
| 3 | group alphanumeric: Structured Append across up to 9 symbols |
| 4 | alphanumeric, starting with Shift 1 |
| 5 | alphanumeric, starting with Shift 2 |
Numeric compaction. A run of 5 or more digits follows a Numeric Shift and is packed 5 digits into 3 code characters, read as a base-48 number. Rules cover runs of 1, 3 or 4 remaining digits 10. That is how a symbol reaches 81 digits, against 49 alphanumeric characters 4. The 1988 patent describes an earlier version that switched to numeric mode only for runs of at least eight digits 6.
Separators and size. A horizontal separator bar runs between rows, and the bars at the top and bottom extend across the quiet zones 1. Zint always draws these boundary bars and adds the compliant quiet zones by default 4. BWIPP's rowheight option runs from 8 to 50 modules (default 8) and sepheight from 1 to 5 (default 1) 12. barcode.ro gives a minimum module of 7.5 mils (0.0075 inch) for a symbol read by an unknown reader. At that module, an 8-row symbol is 0.5475 inch high, for a theoretical maximum of 170 alphanumeric characters per square inch 14.
Use cases
- Small electronic parts. The patent was written for marking small objects such as surface-mount devices and printed circuit boards 6. barcode.ro estimates that a 15-digit circuit-board serial number in Code 49 is only 0.1 by 0.3 inch 14.
- Health care. AIM USA and HIBCC sponsored an Ohio University data-integrity test of Code 49 and Code 16K. The symbols were mounted on wristbands, pill bottles, flat packages and test tubes, standing for common health-care surfaces 15. barcode.ro sizes a health-industry symbol, with a flag character, a 10-digit NDC, a 5-digit expiry date and a 10-character lot code, at 0.3 by 0.53 inch 14.
- Scanning equipment. barcode.ro says Code 49 can be read with modified moving-beam laser scanners or CCD scanners, and that Intermec made a CCD scanner that decoded it alongside linear codes 14. IDAutomation's SC7 USB 2D scanner (2010 manual) reads Code 49 by default, with message lengths from 1 to 81 23.
No fetched source names a specific organisation that labelled products with Code 49. Allais himself wrote that "the practical uses of Code 49 would be limited" 5.
Implementations
Encoders.
- Zint (C) supports
BARCODE_CODE49(symbology 24). It takes full 7-bit ASCII up to 49 characters or 81 digits, accepts GS1 data, and sets a minimum row count with--rows(2–8) 4. Itscode49.crejects input over 81 characters, extended ASCII, and data needing more than 49 code characters. Its tests reproduce the specification's Table 1 capacities and its "EXAMPLE 2" symbol 10. - BWIPP (PostScript) added
code49on 13 Feb 2011 17. Options arerows,rowheight,sepheight,append(mode 1),samorsampos/samtotal(mode 3 Structured Append),parse, andparsefncfor FNC1–FNC3 and FNC1 in second position 12. Its October 2026 releases added FNC1 in second position and thesampos/samtotaloptions. They also fixed numeric runs of one more than a multiple of five digits that follow other data 17. - bwip-js (JavaScript), the BWIPP port that Barcoder's playground uses, lists
code49as "Code 49" 18. The playground's default textBARCODERis 8 basic characters. It renders as 2 rows, 7 letters in row 1 and the lastRin row 2 beside the checks, and the bwip-js output matches Zint's algorithm module for module 10. - OkapiBarcode (Java) has a
Code49class that "implements Code 49 according to ANSI/AIM-BC6-2000", with the same 49-character and 81-digit limits 19. - Commercial: Seagull's BarTender and Neodynamic's SDKs document Code 49 12.
Decoders. No open-source decoder was found. Code 49 is missing from the format lists of zxing-cpp, ZXing and ZBar 202122. For its data-integrity test, AIM developed "special, non-proprietary decode algorithms" and sells the Code 49 one as item Z-45 16. Hardware readers include Intermec's CCD scanner and the IDAutomation SC7 1423.
Comparison
| Code 49 | Code 16K | |
|---|---|---|
| Origin | David Allais, Intermec, 1987 56 | Ted Williams, Laserlight Systems, 1988 or 1989 42425 |
| Basis | own (16,4) words, related to UPC and Code 39 16 | Code 128 patterns 4 |
| Rows | 2–8 4 | 2–16 4 |
| Capacity | 49 characters or 81 digits 4 | 77 characters or 154 digits 4 |
| Symbol checks | 2–3, mod 2401 10 | 2, mod 107 4 |
| Specification | ANSI/AIM BC6 3 | AIM BC7, EN 12323 424 |
Zint says Code 49 "influenced the design of Code 16K a year later" 4. barcode.ro presents Code 16K as an easier-to-print-and-decode alternative to Code 49, "whose structure requires a large amount of memory for encoding and decoding tables and algorithms" 25. The patent bears that out: a full chart of Code 49 words has 4,802 entries, and patterns are found by table lookup 6. Code 16K offers twice the rows and a higher ceiling.
Against a linear code, Code 49 trades length for height. The patent's case is a symbol short enough for a quarter-inch part, where a single row of Code 93 would be 0.6 to 1.5 inches long 6. Against the later PDF417, Allais wrote that PDF417 "extended the stacked concept to the next level of density" and won "wide acceptance" 5.
Fun facts
- In the AIM-sponsored Ohio University test, 69,163,997 data characters were decoded in total. The 23 errors were 21 in UPC-A, 1 in Code 39 and 1 in Code 128, and none in Code 49 or Code 16K. The study put Code 49's worst case at 1 error in 5.3 million characters 15. AIM calls it the "first-ever study of multi row bar code symbologies" 16.
- Allais left Intermec and on 28 Apr 1989 founded Applied Tactical Systems of Washington, later renamed PathGuide Technologies 5.
Status
Legacy. NSAI lists AIM BC6:1995(R2000) as the current edition 3. Zint, BWIPP, bwip-js and OkapiBarcode still encode the symbology, and BWIPP changed its Code 49 encoder twice in October 2026 4171819. No mainstream open-source reader decodes it 202122. Its inventor called its practical uses limited, and he saw PDF417 as the stacked code that went on to wide acceptance 5. No source names a formal successor.
Sources
Deployments
No country reports mention this standard by name.
Regions / aggregations not mapped to a single country
- Universal