Where the numbers come from
To sell through retailers and marketplaces you need numbers licensed from GS1, the standards body that hands out company prefixes. A made-up number can belong to someone else's product. Our tools check the digits; they don't issue numbers.
How the check digit works
The 13th digit is calculated from the first twelve: multiply them alternately by 1 and 3, add everything up, and the check digit is whatever brings the total to the next multiple of 10. For 590123412345 the total is 83, so the check digit is 7 and the full number is 5901234123457.
It catches most typos — a wrong digit or two swapped neighbours. Enter 12 digits in our generator and it adds the check digit; enter 13 and it verifies it.
Print size
At 100% (the nominal size) an EAN-13 symbol is about 37.29 × 25.93 mm including its margins, with a narrow bar of 0.33 mm. You may scale it between 80% and 200%. Two things to avoid:
- Cutting the bars shorter to save space — checkout scanners need the height.
- Crowding the margins: keep at least 11 modules clear on the left and 7 on the right.
Colours that scan
Use dark bars (black, dark blue or dark green) on a white or light background. Red, orange and yellow bars are invisible to the red-laser scanners at many checkouts. On transparent or metallic packaging, print a white box under the barcode.
EAN-13 and UPC-A
UPC-A, common in the US and Canada, has 12 digits. A UPC-A number is the same as an EAN-13 number with a leading zero, and modern scanners read both.
Questions people ask
Can I make up my own EAN-13 numbers?
Only for internal use, such as items that never leave your warehouse. Anything sold through a retailer or marketplace needs a GS1-licensed number.
Which file should I send to my packaging printer?
The SVG, placed at 100% scale. It keeps the exact millimetre size; don't use “fit to page”.
Why does a scanner read my UPC-A as 13 digits?
Many scanners report UPC-A as EAN-13 with a leading 0. It is the same number.
Put it into practice
Free, no account needed for static codes.