Barcode tools · GS1 retail
EAN-13 generator.
Enter 12 GS1 data digits. The thirteenth digit is calculated with the public modulo-10 rule before a scannable EAN-13 symbol is drawn.
EAN-13 data
Barcode
EAN-13 is a GS1 identifier, not just an image
The check digit catches transcription errors, but it does not assign a product or prove that a prefix belongs to your business. Obtain numbers through your local GS1 member organisation and confirm packaging/scanning requirements with the retailer.
Privacy: the calculation and barcode generation happen in your browser.
Worked example: 590123412345 becomes 5901234123457
Enter the first 12 digits 590123412345. The tool multiplies the digits in even positions (counting from the left) by 3 and leaves the odd positions as they are, adds everything, and picks the digit that rounds the total up to a multiple of 10.
| Step | Calculation | Result |
|---|---|---|
| Odd positions (1, 3, 5, 7, 9, 11) | 5 + 0 + 2 + 4 + 2 + 4 | 17 |
| Even positions (2, 4, 6, 8, 10, 12), times 3 | (9 + 1 + 3 + 1 + 3 + 5) × 3 = 22 × 3 | 66 |
| Total | 17 + 66 | 83 |
| Check digit | 90 − 83 = 7, so the thirteenth digit is 7 | 7 |
| Full EAN-13 | 590123412345 + 7 | 5901234123457 |
The example number 5901234123457 passes the GS1 check-digit arithmetic. It starts with 590, a prefix allocated to GS1 Poland, which is a reminder that the prefix says where a company number was issued, not where the product was made.
Next steps: UPC-A generator, EAN-8 generator, EAN/UPC check digit validator, or which barcode do I need.
Frequently asked questions
How is the EAN-13 check digit calculated?
Multiply the digits in even positions of the first 12 digits by 3, add the digits in odd positions, and take the number that rounds the total up to a multiple of 10. For 590123412345 the total is 83, so the check digit is 7.
Is a barcode made here a valid product number?
It is a valid symbol with a correct check digit, but it is only a picture of the digits you typed. A retail product needs a properly assigned GTIN, which may be licensed individually or allocated from a GS1 company prefix. Marketplaces and retailers can verify ownership.
What is the difference between EAN-13 and UPC-A?
UPC-A has 12 digits and is used mainly in North America. An EAN-13 that begins with 0 is a UPC-A with one leading zero added, and scanners treat the two the same way.
What size should I print an EAN-13?
GS1 specifies a target X-dimension of 0.330 mm for EAN-13, a symbol 37.29 mm wide including quiet zones, with allowed scaling from 80% to 200%. The barcode size calculator on this site works out widths for other magnifications.