Adding the check digit to a UPC for a new product label
Picture a small hot sauce maker in Texas that has licensed a GS1 US company prefix. Its sheet of product numbers lists the new bottle as 03600029145, which is only 11 digits. That is common: many sheets list the numbers without the check digit and leave it to whoever makes the barcode. The label printer needs the full barcode by Friday.
The maker types the 11 digits in, and the page adds the check digit and shows the full number, 036000291452. Here is how. Reading the 11 digits from the right, 5, 4, 1, 9, 2, 0, 0, 0, 6, 3, 0, the weights alternate 3 and 1: 15 + 4 + 3 + 9 + 6 + 0 + 0 + 0 + 18 + 3 + 0 = 58. The next multiple of 10 is 60, so the check digit is 2. If someone had typed 036000291453, the page would refuse it and say the check digit should be 2.
The barcode shows the first digit, 0, small and to the left, and the check digit, 2, small and to the right. The ten digits between them sit under the bars in two groups of five, 36000 and 29145. The bars for the first and last digits run long, down past the other bars, together with the guard bars at the start, middle and end. That is the standard UPC-A look, and the one a retailer's artwork checklist expects.
The maker downloads the SVG and places it on the label at 100%. Each module is 0.33 mm, so the code is about 31 mm of bars and 37 mm with the 9-module margins on each side. Before the full print run, they scan the on-screen barcode with a phone barcode app, which reads 036000291452, matching the sheet. A Canadian retailer later asks for the EAN-13 form, and that is 0036000291452: the same bars with a 0 in front.
This tool has limits. It makes UPC-A only, not the short UPC-E or the 2 and 5 digit add-ons used on magazines. It checks the arithmetic of a number, not who owns it: only GS1 can tell you whether a prefix is yours. It does not shrink or stretch the code to a print size; that is done in your design software, within the 80% to 200% range retailers allow. And a barcode printed too small, too faint or on a curved bottle can still fail at the till however correct its number is.