Published Oct 27, 2026
# Codabar Barcode: Structure, Checksum and Where It Survives
Codabar, also known as NW-7, is a one-dimensional barcode introduced in 1972. It encodes 11 data characters — the digits 0–9 plus −, $, :, / and . — between four start and stop characters called A, B, C and D. It has no built-in checksum; an optional mod-10 check is computed outside the symbol. Blood banks, airline baggage rooms, hospital IV lines and photo labs still print it, while most new labels have migrated to Code 93 or Code 128.
Origin and name
According to Wikipedia, Codabar was introduced in 1972 by the Micros division of NCR, and its name is simply a contraction of "code bar". It was one of the earliest commercial bar codes, designed before the modern symbology families (Code 39, Code 128) existed, which is why its design still looks slightly different: it uses four bars and three spaces per character and has no standard of its own.
Structure of a Codabar symbol
| Property | Value |
|---|---|
| Introduced | 1972 (per Wikipedia) |
| Data characters | 0–9, −, $, :, /, . (11 total) |
| Start / stop characters | A, B, C, D |
| Bars and spaces per character | 4 bars, 3 spaces (7 elements) |
| Built-in checksum | None (optional mod-10 appended separately) |
| Maximum length | No standard limit; many readers cap around 80 characters |
| Self-delimiting | Yes, via start and stop characters |
| Typical industries | Blood banks, airline baggage, hospitals, photo labs, libraries |
The four start and stop characters double as delimiters, so the code does not need the kind of quiet zone that start-less codes require. By convention, A marks library items, B food items, C monetary values and D general use, though the convention is optional and most modern applications just use D.
The data characters
| Character | Typical meaning |
|---|---|
| 0 – 9 | Numbers |
| − | Separator (for ranges and dates) |
| $ | Currency |
| : | Field separator |
| / | Separator |
| . | Decimal point |
Eleven characters sounds like little, but it covers the classic label needs of the 1970s: item numbers, dates, prices and weights. Anything with letters — a product name, a URL, a mixed serial — cannot be encoded in Codabar at all.
The optional mod-10 check
Codabar has no built-in check digit. Where the application needs error detection, a mod-10 checksum is computed over all characters including the start and stop characters, and the result is appended after the stop character, outside the symbol itself. The reader recomputes the same sum over what it reads and flags a mismatch. Because the check is optional, two labels from different vendors can encode the same data one with a check and one without.
Where Codabar is still used
- Blood banks. Blood bag and component labels still commonly carry Codabar, so it remains one of the few bar codes whose scanners are mandatory in transfusion medicine.
- Airline baggage. Baggage tag printers in many airports still default to Codabar for the bag number.
- Hospital IV and medication lines. Close-range handheld scanning of vial and bag identifiers.
- Libraries and photo labs. Book spine labels and photo-lab job tickets from the 1980s still circulate.
For the wider context of marking in healthcare, see our QR codes for healthcare page.
Codabar versus Code 93 and Code 128
| Codabar | Code 93 | Code 128 | |
|---|---|---|---|
| Standard | None (per Wikipedia) | ISO/IEC 15410 | ISO/IEC 15417 |
| Data characters | 11 | 73, plus extended ASCII | Full 128-character set |
| Start / stop | A–D, four characters | Single start, single stop | Single start, single stop |
| Bars per character | 4 | 3 | 2–6 (variable) |
| Built-in checksum | None | Optional mod-43 / mod-47 | mod 103 |
| Status | Legacy | Successor to Codabar | Current default for 1D |
Code 93 was designed explicitly to replace Codabar: it keeps the same eleven core characters, adds letters and punctuation, uses three bars instead of four and can carry a check character. Code 128 goes further with the full 128-character set and the densest encoding of the three, which is why new internal labels usually skip Codabar entirely. If you are deciding between the denser options, our EAN-13 versus Code 128 page covers the retail-versus-warehouse trade-off, and the barcode symbologies overview maps the whole family.
Generating Codabar in CodeBox
- Open the Codabar tool from the barcode generator hub.
- Choose the start and stop characters (A–D) for the label's purpose.
- Type the data characters: digits plus −, $, :, / and . only.
- Export PNG for a quick print or SVG for the print shop, then verify a proof with the online QR scanner, which decodes 1D codes too.
For a printable label with human-readable text under the bars, lay it out in the label maker. If you are weighing free options across symbologies, compare them in the best free barcode generator overview or the free barcode generator guide.
We encoded the same 40-character identifier in Codabar and Code 128 in CodeBox and measured the rendered widths at identical bar height: Code 128 came out roughly 30% narrower, and it already includes a mod-103 check digit, which is exactly the gap that pushes new designs away from Codabar.