HOME
| ARTICLES

Author: Yeremyah

No Hidden Sixes1,2

Summary

Promoted on the Internet and elsewhere is the erroneous claim that every barcode in the Universal Product Code (UPC-A) has the number 666 embedded in it. A look at how the numbers in the UPC barcode are constructed will show why this claim is wrong.

How the error may have occurred 

Someone glancing casually and a bit carelessly at a UPC barcode containing the number six will note that there are two thin vertical bars almost directly above the number six. Here, for example, is the barcode from a box of After Eight dinner mints. Note the two thin bars above the six in the 48600:


The casual glancer may therefore assume that the number six is represented by two thin vertical bars. Noticing that there are two thin vertical bars at each end of the barcode might then convince the glancer that these must be sixes also. The glancer then may finally note that in the confusing middle of the barcode there are also (at least) two thin vertical bars. Hence the hasty conclusion: the barcode pattern contains a six on each end and a six in the middle.(In this particular example, the little check digit six on the far right may also be confusing. But read on for clarification.)

Reading between the lines

By looking more carefully at a barcode, you can see that not only are the bars of different widths, but the spaces between the bars vary also. This is the key: each number in the barcode is represented not by two lines, but by four elements, which include two lines and two spaces.

Inverse Patterns

Further, if you look even more closely, you will see that for a given number (such as a six), what is a line on the right side of the barcode is a space on the left side and what is a space on the right side of the barcode is a line on the left side. (The different representations allow the barcode scanner to differentiate between the manufacturer's number and the item number even if the barcode is scanned upside down or sideways.) Here, for example, is the barcode from a Master Locks combination padlock:

Note that on the right there might appear to be two thin bars just above the six, but on the left, the pattern above the six looks like a thin bar and a very wide bar. What is actually there, however, are the four elements of the number six, represented on the right side of the barcode by a thin line, a thin space, a thin line, and a very wide space, and on the left side by a thin space, a thin bar, a thin space, and a very wide bar.

To make this even plainer, here is a barcode containing all sixes:

Note that the sixes on the right are all made up of a thin line, a thin space, a thin line, and a very wide space, and those on the left are made up of a thin space, a thin bar, a thin space, and a very wide bar.

Guarding the edge

The lines at each end of the barcode are guard bars, consisting of a thin line, a thin space, and a thin line. Since there are only three elements instead of four, no number of any kind is represented. (No very wide space or very wide bar is there to complete the number six, for example.)

And the middle

In between the first five numbers (which represent the manufacturer's identifying number--who made the product) and the last five numbers (which represent the specific product code--such as a blue, medium ball-point pen) is another set of guard bars, consisting of a thin space, a thin line, a thin space, a thin line, and a thin space. Here, even though there are five elements (two bars and three spaces), they do not represent a number because none of the numbers are made up of all thin elements (see below).

Breaking the code

Since the lines and spaces appear in four different widths, we could use the words thin, medium, wide, and very wide to represent them. We can also use numbers, though, with 1 representing thin, 2 representing medium, 3 representing wide, and 4 representing very wide. That plan allows us to represent each number this way:

Putting it all together

Let's return to the padlock barcode, enlarged and detailed here. Note that the barcode contains two sixes, one on each side of the middle guard bars. As mentioned above, you can see the difference in representation of the same 1-1-1-4 code for a left-hand six, where the very wide segment is a bar instead of a space, and the right hand six, where the very wide segment is a space rather than a bar. Yet you are looking at the same number.


Note also that every bar and every space in the barcode is accounted for, and that there are no extra sixes anywhere to be found. (The first number, on the left next to the barcode, is the barcode type, such as a regular item, a coupon, etc., and the last number, on the right after the barcode, is a check digit, calculated from the barcode numbers and helping to insure accuracy of scanning. In both cases the numbers themselves are encoded inside the guard bars, making the barcode twelve digits overall.)



1.  This article by Robert Harris, Vanguard University of Southern California. Reprinted with permission. For further reading: How UPC Barcodes Work Barcode Server Uniform Code Council ID Numbers and Bar Codes What Are Barcodes? Bar Codes (See how the lines and spaces represent seven-digit binary coded numbers.)

2. Russ Adams, Adams Communication http://www.adams1.com/pub/russadam/barcode1.html - "Is there a hidden 666 in bar code? - No! I get this question asked at least once a week. What people really mean is "does UPC found on grocery products have a hidden 666 (mentioned in Revelation 13:16 in the New Testament)?" People have thought that the three guard bars used to specify the start, middle and end of a UPC bar code looked like the bar code sequence for a "6" found in the UPC symbol table. You can find a copy of the symbol table on the UPC/EAN page. These guard bars are not "6" and carry no information. Even if you don't believe that guard bars carry no information and insist on applying the code table, you have to determine whether the digit is on the left side or the right side of the symbol. That's because the sequence of bars and spaces are different depending on whether the digit is on the left of the symbol or the right of the symbol. The LEFT guard bar would have to be smallest space, smallest bar, smallest space, WIDEST BAR in order to be a "6". The guard bar on the left is actually space of undetermined wide (left side digit must always start with a space element), smallest bar, smallest space, smallest bar. That sequence of bars and spaces is undefined and is not a "6" even using the table. The middle guard bar is not on the left or the right ('cause it is used to divide the symbol), so it is undefined by the table."