A new box of goods arrives with no barcode, and the till cannot sell what it cannot scan. Type the codes, one per line. The generator draws each barcode, adds the missing check digit and gives you SVG files or a sheet to print.
The generator runs in your browser. Nothing you type is sent anywhere.
| Type | What it holds | Use it for |
|---|---|---|
| EAN-13 | 13 digits; the last one is the check digit | Retail goods outside North America |
| UPC-A | 12 digits; the last one is the check digit | Retail goods in the USA and Canada |
| Code 128 | Letters, digits and signs, any length | Your own item codes, shelf and bin labels |
A UPC-A is an EAN-13 that starts with 0, so a till that reads EAN-13 reads UPC-A too. In the automatic mode, the generator looks at each code: 13 digits with a correct check digit print as EAN-13, 12 such digits as UPC-A, and everything else as Code 128.
A shop gets the number 400638133393 for a new product and needs the 13th digit. Each digit gets a weight: 1 in the odd places, 3 in the even places.
| Place | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Digit | 4 | 0 | 0 | 6 | 3 | 8 | 1 | 3 | 3 | 3 | 9 | 3 |
| Weight | 1 | 3 | 1 | 3 | 1 | 3 | 1 | 3 | 1 | 3 | 1 | 3 |
| Product | 4 | 0 | 0 | 18 | 3 | 24 | 1 | 9 | 3 | 9 | 9 | 9 |
The products add up to 89. The next multiple of 10 is 90, so the check digit is 1, and the full code is 4006381333931.
If a digit is typed wrong, the sum changes and the check digit no longer fits. That is why the scanner refuses a damaged label instead of selling the wrong product. Choose EAN-13 above and type the 12 digits: the generator adds the 1 for you.
Put the 12 digits as text in A2. Then the check digit is:
=MOD(10-MOD(SUMPRODUCT(--MID(A2,{1,3,5,7,9,11},1))+3*SUMPRODUCT(--MID(A2,{2,4,6,8,10,12},1)),10),10)
For a whole item list, put this in B2, fill it down, and join the two with =A2&B2. To give each
item a code first, use the SKU generator.
For goods that you sell in other shops, use the EAN-13 (or the UPC-A in North America) that your supplier or GS1 gave the product. For your own shelf labels, bins and items with letters in the code, use Code 128: it takes letters, digits and signs.
Not for goods that other shops sell: those numbers come from GS1, with your company prefix. For use inside your own shop, GS1 keeps the prefixes 20 to 29 for restricted circulation, so a code such as 2000000000015 does not clash with a product number.
Take the first 12 digits. Add the digits in the odd places, add three times the digits in the even places, and take the total. The check digit is what brings the total up to the next multiple of 10. The worked example below does it step by step.
In the automatic mode, a 12-digit number with a correct check digit is a UPC-A. If you want an EAN-13, choose EAN-13: the generator then adds the 13th digit.
Print it at the size of the SVG or larger, never squeezed. Keep the white space at both ends: the scanner needs it to find the start and the end of the code.
Yes, if it reads EAN-13, UPC-A and Code 128, as almost every scanner does. Print in black on white, test one label before you print a hundred.
In Golden Inventory Web, a label sheet prints for the items you select: a valid 13-digit code prints as EAN-13, a 12-digit code as UPC-A, and any other item code as Code 128. The point of sale scans the same codes.
Rather keep it on your own Windows PC? Golden Inventory System 5 does stock, purchase orders and a till for $99, paid once.