EAN-13 Barcode Generator
This free EAN-13 barcode generator creates retail-ready product barcodes with the check digit computed automatically. EAN-13 is the standard product barcode used at retail checkout in most of the world - every grocery store, pharmacy and electronics shop scans it daily. Enter your 12 digits above, download the result as a high-resolution PNG or a vector SVG, and the code scans exactly like any commercially printed barcode. Generation runs locally in your browser: no signup, no watermark, no upload.
The 13 digits of an EAN-13 code
| Position | Meaning | Example (5901234123457) |
|---|---|---|
| Digits 1-3 | GS1 country / system prefix | 590 (Poland) |
| Next 4-7 digits | Company prefix, assigned by GS1 | 1234123 |
| Following digits | Item reference, assigned by the brand owner | 457 |
| Digit 13 | Check digit, computed from the first 12 | 7 (verified automatically here) |
A real EAN-13 barcode generated by this site: 5901234123457
How the check digit works
The 13th digit exists so scanners can catch typos. It is calculated from the first 12 digits: each digit is weighted alternately by 3 and 1, the results are summed, and the check digit is the amount needed to bring the total up to the next multiple of 10. Enter only 12 digits here and this tool appends the correct check digit; if you paste all 13 and the last one is wrong, the generator replaces it with the correct value so the code is always scanner-valid.
Using EAN-13 barcodes on real products
- The artwork is free here - generating the barcode image costs nothing and there is no limit.
- The number must be licensed - to sell through retail checkout, your digits 1-12 must come from a GS1 company prefix you have licensed. This tool does not register numbers with GS1.
- Already have a prefix? Generate artwork for your item references here and send the SVG to your printer - vector output scales to any label size without blur.
- Print size matters - keep the barcode at least about 30 mm wide with a quiet zone of ~3-5 mm on each side for reliable scanning.
EAN-13 FAQ
How many digits does EAN-13 need?
13 in total: a 2-3 digit country prefix, a company prefix, an item reference, and one check digit. Enter 12 digits here and the check digit is computed and added automatically.
Can I use a generated EAN-13 on products I sell?
Only if the number is part of a GS1-licensed company prefix. The barcode artwork can be generated here, but the number itself must be registered with GS1 for retail checkout.
What is the difference between EAN-13 and UPC-A?
Both encode 13 digits under the hood. UPC-A used in North America shows 12 digits - it is an EAN-13 with a leading 0.
Why does my EAN-13 barcode show a different last digit?
If you entered 13 digits with an incorrect check digit, the generator replaces the last digit with the mathematically correct one so scanners accept the code.
Need another format? Back to the online barcode generator with all 13 symbologies, or use the Code 128 generator for shipping labels.