Codabar (NW-7)

Codabar was originally developed for use in retail price-labeling systems. However, after the National Retail Merchants Association (NRMA) selected another symbology as their standard in 1975, Codabar was promoted for use in a variety of non-retail applications such as libraries, shipping, and the medical industry. However, because Codabar is not as versatile or reliable as the other symbologies, the trend in barcode use since the 1980s has moved from Codabar and toward the other symbologies.

Codabar is sometimes referred to as USD 4, Code 27, or Monarch.

ClosedThe Character Set

The Codabar character set contains the following usable characters:

The four alphabetic characters are used only as start and stop characters, and are not used within the contents of the barcode message. Therefore, with the exception of the 6 special characters shown above, Codabar is a numbers-only symbology, like Interleaved 2-of-5.

ClosedThe Density

Even though Codabar is a numbers-only code just like Interleaved 2-of-5, Codabar cannot represent data nearly as densely as Interleaved 2-of-5. In fact, Codabar isn't much denser than Code 39, which has the significant advantage of being able to represent the Full ASCII character set. This is one of the reasons why Interleaved 2-of-5 is recommended instead of Codabar in applications where only numeric information must be barcoded.

ClosedThe Symbology Structure

Each Codabar character is represented by seven elements: four bars and three spaces. Of the seven elements, either two or three elements will be wide, and the rest will be narrow. The lack of a fixed number of wide elements can theoretically lower the data integrity of Codabar barcodes relative to the other symbologies.

A fourth space, an "intercharacter space," separates each barcode character from the next, but is not actually itself a part of a barcode character. The width of this space is not critical and it is often set to be identical to the width of a narrow space.

ClosedThe Start and Stop Characters

Unlike the other barcode symbologies, Codabar has a number of different start and stop characters. These characters are represented by any of the four lower case letters, "a", "b", "c", and "d". Any one of these four letters can be used as a start character, and any can be used as a stop character. The start and stop characters in any given barcode need not be the same. The lack of a single accepted pattern for the start and stop characters is another factor which can theoretically lower the data integrity of Codabar.

It is common for a barcode scanner to have an option specifying whether or not the start and stop characters are to be transmitted as part of the barcode.

ClosedLack of Check Digits

Codabar has no option for check digits. As has already been discussed, Codabar does not have a fixed number of wide spaces per character, nor does it have a set pattern for the start and stop characters. This can't help but make Codabar less secure than the other barcode symbologies. Since Codabar doesn't even have the option to add check digits, there are no means available for bringing the reliability of Codabar barcodes to the same level as the other symbologies. Most barcode manufacturers recommend the use of either Code 39 or Interleaved 2-of-5 in applications where Codabar is being considered.