Checking a supplier's EAN-13 before the packaging goes to print
Picture a small food brand preparing the label for a new jar of honey. The brand has a GS1 company prefix, and the operations sheet says the new product is 4006381333932. The designer needs the barcode for the label artwork, and the printer will print 20,000 labels from it. A wrong digit at this point means a jar that no till can sell.
The designer types the number in. The page refuses it: the check digit is 2, but for 400638133393 it should be 1. Here is the sum. Reading the first 12 digits from the right, 3, 9, 3, 3, 3, 1, 8, 3, 6, 0, 0, 4, the weights alternate 3 and 1. That gives 9 + 9 + 9 + 3 + 9 + 1 + 24 + 3 + 18 + 0 + 0 + 4 = 89, and the next multiple of 10 is 90, so the check digit is 1. Somebody mistyped the last digit on the sheet.
A quick call confirms the real number is 4006381333931. Typed in, the page says the check digit 1 is correct and draws the code. The first digit, 4, is printed outside the bars. Because it is a 4, the six digits after it use the patterns L, G, L, L, G and G, and the last six use the right-hand pattern. The long guard bars sit at the start, the middle and the end, and the white margins are part of the file.
The designer downloads the SVG and places it at 100%, where each module is 0.33 mm and the whole code, margins included, is about 37 mm wide. The space on the jar is 30 mm. GS1 allows an EAN-13 to be scaled down to 80%, which gives about 30 mm, so the code fits without cutting the margins or the bar height. A test label is printed and scanned with a phone barcode app before the full run.
This tool has limits. It draws EAN-13 and EAN-8 only, without the 2 or 5 digit add-on codes used on magazines and books. It checks the arithmetic of a number, not whether the number is yours: only GS1 can say which company a prefix belongs to. It does not print the ">" quiet zone marker some packaging uses. And print quality is out of its hands. A barcode printed too small, too faint or with bars that bleed can fail at the till however correct the number is.