How an EAN-13 Number Is Built
The number starts with a GS1 prefix, continues with the company’s digits and the item reference, and ends with a check digit. The prefix shows which GS1 organization issued the number. It doesn’t show where the product was made.
How to Use the EAN-13 Barcode Generator
Type 12 digits, or 13 to test the last one. Download SVG or PNG.
How the First Digit Is Hidden
The bars show 12 digit patterns, not 13. The first digit is carried by the mix of two pattern sets, A and B, on the left half.
| First digit | Left half pattern sets |
|---|---|
| 0 | AAAAAA |
| 1 | AABABB |
| 2 | AABBAB |
| 3 | AABBBA |
| 4 | ABAABB |
| 5 | ABBAAB |
| 6 | ABBBAA |
| 7 | ABABAB |
| 8 | ABABBA |
| 9 | ABBABA |
EAN-13 and UPC-A
A UPC-A is the same set of bars as an EAN-13 that starts with 0. That is why you can write a UPC as 13 digits by adding a zero in front. Read more in UPC vs EAN, or make the 12-digit form with the UPC tool.
Size and Printing
At 100% size, the symbol is 113 modules of 0.330 mm including margins, or 37.29 mm, with 22.85 mm bars. Print black on white, keep both margins and scan a test copy.
For books, use the ISBN page. Other formats are in the barcode maker.
Check Digit Example
For the 12 digits 629104150021, the weighted total is 57. The next multiple of ten is 60, so the check digit is 3 and the full number is 6291041500213. This is the worked example GS1 publishes.
Parts of the Symbol
| Part | Modules |
|---|---|
| Left margin | 11 |
| Start guard | 3 |
| Six left-half digits | 42 |
| Center guard | 5 |
| Six right-half digits | 42 |
| End guard | 3 |
| Right margin | 7 |
The total is 113 modules. The left margin is wider than the right one, partly because the first printed digit sits there.
Before You Order Packaging
- Confirm the number is licensed to your brand.
- Assign a separate number to each variant.
- Copy all 13 digits from your records, then test the check digit.
- Place the symbol on a flat area with both margins clear.
- Print a proof at final size and scan it.
Ask each retail customer whether they have placement or size rules of their own. Their requirements come first for goods they sell.
EAN-13 FAQs
Do I need EAN-13 in the United States?
Usually not. US retail uses UPC-A, though modern scanners read both.
Is a UPC an EAN with a zero?
In bar terms, yes. A leading zero gives the 13-digit form.
How is the check digit found?
With weights of 3 and 1 counted from the right, as for UPC.
Does the prefix show the country of origin?
No. It shows which GS1 organization issued the number.
Where do I get a number?
From the GS1 organization for your country.