CodeBox Hub
FREE

Codabar Barcode: Structure, Checksum and Where It Survives

A 1972 1D barcode with A–D start/stop characters, 11 data characters, no built-in checksum — still used on blood bags, airline baggage and photo-lab labels.

# 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

PropertyValue
Introduced1972 (per Wikipedia)
Data characters0–9, −, $, :, /, . (11 total)
Start / stop charactersA, B, C, D
Bars and spaces per character4 bars, 3 spaces (7 elements)
Built-in checksumNone (optional mod-10 appended separately)
Maximum lengthNo standard limit; many readers cap around 80 characters
Self-delimitingYes, via start and stop characters
Typical industriesBlood 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

CharacterTypical meaning
0 – 9Numbers
−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

CodabarCode 93Code 128
StandardNone (per Wikipedia)ISO/IEC 15410ISO/IEC 15417
Data characters1173, plus extended ASCIIFull 128-character set
Start / stopA–D, four charactersSingle start, single stopSingle start, single stop
Bars per character432–6 (variable)
Built-in checksumNoneOptional mod-43 / mod-47mod 103
StatusLegacySuccessor to CodabarCurrent 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

  1. Open the Codabar tool from the barcode generator hub.
  2. Choose the start and stop characters (A–D) for the label's purpose.
  3. Type the data characters: digits plus −, $, :, / and . only.
  4. 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.

FAQ

What is a Codabar barcode?

Codabar is a one-dimensional barcode from 1972 that encodes 11 data characters between A, B, C or D start and stop characters, with no built-in checksum.

Who still uses Codabar today?

Blood banks, airline baggage rooms, hospital IV lines, libraries and photo labs, most of them because of legacy scanners and label formats.

Does Codabar have a checksum?

Not built in; an optional mod-10 check is computed over all characters including start and stop and appended after the stop character.

What are the A, B, C, D characters for?

They are the start and stop characters; by convention A marks library items, B food, C money and D general use.

Can Codabar encode letters?

No, its data set is 0–9 plus −, $, :, / and . only, so any letters require Code 93, Code 128 or another symbology.

What replaced Codabar?

Code 93 (ISO/IEC 15410) was designed as its direct successor with letters, punctuation and an optional check character; Code 128 replaced it for dense, full-character-set labels.

How long can a Codabar be?

There is no standard maximum length, but many readers cap decoding around 80 characters, which is the practical limit for new labels.

How do I generate a Codabar for free?

Use the Codabar tool in CodeBox's barcode generator: pick start and stop characters, enter the data and export PNG or SVG without an account.

Keep reading

Contact us