Resource Centre > Barcode Guide
What is a barcode?
Easy question. Sleep-inducing answer!
Below is one of the better answers that cover most details you may need.
What are barcodes?
Barcodes, of course, are those ever-familiar "bars" and "numbers" on virtually everything. In 1973, "Mr. Barcode" (or is it Mrs. Barcode?) quietly strolled into our world. In just over 25 years, Mr. Barcode has literally taken over the world. Now there's a barcode for virtually everything. There's short barcodes, and tall barcodes. There's skinny barcodes and fat barcodes. There's postal barcodes and international barcodes. There's 2-D barcodes. And there's even barcodes for the humble "bumble-bee". From letters, to cokes, from fishes to smokes - it's "clothed" with friendly "Mr. Barcode".
As someone truthfully said, "If it exists, barcode it".
The primary barcode used in the United States is the UPC (Universal Product Code) barcode. The UPC is also the "original" barcode. The UPC was designed for the grocery industry. Because of the large number of items normally "checked-out" at the grocery store, a method was needed to speed up and eliminate "human" cashier errors. In 1973, the UPC barcode was born.
To the average person, the barcode looks confusing and complex, but to a "bar-coded" friendly computer, it's actually very simple.
How does a computer-scanner reads a barcode?
A single barcode number is actually seven units. A unit is either black or white. A unit that is black would display as a "bar". A unit that is white would display as a "space". Another way of writing a barcode unit is "1" for a single unit "black bar" and "0" for a single unit "white space". For instance, the number "1" is composed of the seven units, "0011001" or "space-space-bar-bar-space-space-bar". Remember, a single barcode number requires seven units.
Also, on a UPC barcode the same numbers on the left-hand side (the Manufacturer Code) is coded different than the numbers on the right-hand side (Product Code). The left side numbers are actually the "inverted" or "mirrored" codes of the right side numbers, for instance what is a "bar" on the right-side, is a "space" on the left-side. The right-side codes are called "even parity" codes because there is an even number of "black bar" units. For instance the right-side "6" is "101000" - 2 even-numbered "black bar" units. The left-side is called "odd-parity" because there is an odd number of "black bar" units. For instance, the left-side "6" is "0101111" - 5 odd-numbered "black bar" units. Having different coded numbers for each side allows the barcode to be scanned in either direction.
The following tables are the left and right side codes matching the corresponding numbers, separated into the seven single units.
Left side (odd parity) codes:
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
|---|---|---|---|---|---|---|---|---|---|
| 0001101 | 0011001 | 0010011 | 0111101 | 0100011 | 0110001 | 0101111 | 0111011 | 0110111 | 0001011 |
Right side (even parity) codes:
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
|---|---|---|---|---|---|---|---|---|---|
| 1110011 | 1100110 | 1101100 | 1000010 | 1011100 | 1001110 | 1010000 | 1000100 | 1001000 | 1110100 |
Notice a few things about the codes:
- As previously mentioned, the left and right numbers are "inverted" or "mirrored".
- Every barcode number is equal to "four" different marks. A "mark" can be either "black" (bar) or "white" (space). The "marks" vary in width, but there is always four different marks, 2 "bar marks" and 2 "space marks". For instance, the left code number "one" is "3 spaces (mark 1), 2 bars (mark 2), 1 space (mark 3), 1 bar (mark 4)".
- The left side codes always begins with a "space" or "0" and ends with a "bar" or "1". The right is just the opposite, it begins with a "bar" or "1" and ends with a "space" or "0".
Note: The computer does not read the numbers underneath the barcode. These Human Readable (HR) numbers are printed so a "human" can easily read the barcode, if necessary.
Number System Character: This number is a UPC system number that characterizes specific types of barcodes. In a UPC barcode it is normally on the left of the barcode. The actual "barcode" (the "bars" and "spaces") is the first "barcode" after the first "guard bar". The Number System Character is the blue box on the "Anatomy of a Barcode".
Codes of the Number System Character:
0 - Standard UPC number
1 - Reserved
2 - Random weight items like fruits, vegetables, and meats, etc.
3 - Pharmaceuticals
4 - In-store code for retailers
5 - Coupons
6 - Standard UPC number
7 - Standard UPC number
8 - Reserved
9 - Reserved
3 Guard Bars: There are "3 guard bars". They are located at the beginning, middle and end. The beginning and ending guard bars are encoded as a "bar-space-bar" or 101. The middle guard bar is encoded as "space-bar-space-bar-space" or 01010. The guard bars "tell" the computer-scanner when the manufacturer and product code begin and end. For example, when the computer-scanner reads the first "101" or guard bar, the computer knows the next series of numbers is either the manufacturer or product code. And when the computer reads the "01010" or middle guard bar, the computer knows another number is coming. The 3 guard bars are also the supposedly "666" hidden in the barcode (we'll look at this in detail later). The 3 guard bars are highlighted with a green box on the "Anatomy of a Barcode".
Also, the first guard bar scanned is used by the computer to calculate the "width" of one unit.
Manufacturer Code: This is a five digit number specifically assigned to the manufacturer of the product. The manufacturer codes are maintained and assigned by the Uniform Code Council (UCC). Every product the manufacturer makes, carries the same manufacturer code. For example, the manufacturer code for Kellogg's is 38000. Every product Kellogg makes carries 38000 as the manufacturer code in the bar code. The manufacturer code is yellow on the "Anatomy of a Barcode".
Product Code: The product code is a five digit number that the manufacturer assigns for a particular product. Every different product and every different packaging or size, gets a unique product code. For instance, a 16oz bottle of coke gets a different product code than a 24 oz bottle of coke. For example: Kellogg's 13.5 oz Rice Krispies barcode is 38000 90530 — the 38000 is the manufacturer code for Kellogg and the 90530 is the product code for 13.5oz Rice Krispies. Kellogg's 16oz Mini-Wheats is 38000 02720 — the 38000 is the manufacturer code for Kellogg (the manufacturer never changes for Kellogg products) and the 02720 is the product code for 16oz Mini-Wheats. A manufacturer can have 99,999 unique product codes. The product code is orange on the "Anatomy of a Barcode".
Check digit: Also called the "self-check" digit. The check digit is on the outside right of the bar code. The check digit is an "old-programmer's trick" to validate the other digits (number system character, manufacturer code, and product code) were read correctly. The check digit is red on the "Anatomy of a Barcode".
How the computer calulates the check digit:
- Add all the odd digits. In our "Anatomy of a Barcode" we would add 0 (yes, you include the number system character digit) + 2 + 4 + 6 + 8 + 0 = 20
- Multiply the sum of step 1 by 3. Our example would be 20 x 3 = 60.
- Add all the even numbers. In our "Anatomy of a Barcode" we would add 1 + 3 + 5 + 7 + 9 = 25. You do not include the 5 or the check digit because that's what you are calculating.
- Now add the result from step 2 and step 3. 60 + 25 = 85.
- The check digit is the number needed to add to step 4 to equal a multiple of 10. 85 + 5 = 90. 5 is the check digit in our example. Another way to calculate the check digit would be simply to divide the number from step 4 by 10. The remainder is the check digit. Example 85/10 = 8.5
You'll notice the price was NOT included in the barcode.
Where is the price?
The price is kept in the store's centralized computer database. The store's "item database" contains a record for every item the store sells. The item record is "keyed" by manufacturer code and product code (same numbers as on the barcode). The price is kept for each item in this database. When the item is scanned by the employee, a computer program reads the barcode. It then converts the "bars and spaces" into the manufacturer and product "digital number". Using the manufacturer and product "digital number", the program reads the store's "item database". It then retrieves the price from the "item database" for that item. When a price changes, all the store has to do is update it once in the stores centralized database.
As with all these things we can take no responsibility for the information supplied and it should be looked on as a guide.
This information was taken from an unknown source on the internet and we take no credit for it's authorship. We just felt it was easy to understand.
Product Categories