Free EAN-13 Barcode Generator
EAN-13 is the retail barcode used worldwide. Enter 12 digits and BarCodra computes the correct check digit, or paste all 13 and we verify it.
12 digits — the check digit is calculated for you.
Enter data to preview your barcode
EAN-13 check-digit assistant
Enter 12 digits to see the check digit worked out, or all 13 to verify one. For UPC-A, EAN-8, GTIN-14 and SSCC use the full check digit calculator.
Leave off the last digit to calculate it, or enter the complete number to check it. Spaces and hyphens are ignored.
Try an example
How the check digit is calculated
| Digit | 5 | 9 | 0 | 1 | 2 | 3 | 4 | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| × Weight | 1 | 3 | 1 | 3 | 1 | 3 | 1 | 3 | 1 | 3 | 1 | 3 |
| = Product | 5 | 27 | 0 | 3 | 2 | 9 | 4 | 3 | 2 | 9 | 4 | 15 |
- Weights alternate 3, 1, 3, 1… starting from the rightmost digit before the check digit.
- Weighted sum: 5 + 27 + 0 + 3 + 2 + 9 + 4 + 3 + 2 + 9 + 4 + 15 = 83
- 83 mod 10 = 3; check digit = (10 − 3) mod 10 = 7
UPC-A or EAN-13?
Both encode a GTIN. A UPC-A has 12 digits and is the norm in the US and Canada; an EAN-13 has 13 digits and is used everywhere else. Every UPC-A is also a valid EAN-13 with a leading 0: 036000291452 = 0036000291452.
Scanners worldwide read both, so a product does not need two barcodes. Use the format your retailer or marketplace asks for — and never drop or add digits by hand: the check digit is the same, but a missing leading zero makes a different number.
Need the North-American format? Open the UPC-A generator.
Print-size helper
- Width (incl. quiet zones)
- 37.29 mm
- Height (incl. digits)
- 25.93 mm
- Bar height
- 22.85 mm
- Module (X-dimension)
- 0.33 mm
100% is 37.29 × 25.93 mm. Retail point-of-sale scanning allows 80%–200%; below 80% scanning becomes unreliable, and cutting the bar height (truncation) is discouraged. Files from BarCodra have no bar width reduction (BWR) applied — if your printer specifies one for their press, they apply it in prepress.
EAN-13 Barcode: Key Facts
- Encodes a 13-digit GTIN used for retail product identification
- The final digit is calculated using a Modulo-10 check digit
- Widely supported by retail point-of-sale scanning systems
What Is an EAN-13 Barcode?
EAN-13 is a 13-digit retail barcode format used to identify products at checkout counters and throughout retail supply chains.
It encodes a Global Trade Item Number (GTIN-13), which serves as a unique product identifier within the GS1 system.
EAN-13 barcodes appear on many everyday products, including food packaging, cosmetics, household goods, electronics accessories and other consumer items.
Although EAN-13 is especially common outside North America, it is recognized internationally.
An EAN-13 number consists of 12 data digits followed by one calculated check digit. The check digit helps detect errors when the number is entered or scanned.
BarCodra's free EAN-13 barcode generator creates a scannable barcode image from an existing product number. It can calculate the check digit from the first 12 digits or verify a complete 13-digit number.
How to Generate an EAN-13 Barcode Online
Follow these steps to create an EAN-13 barcode:
Enter the first 12 digits of your product's GTIN-13 into the generator above.
BarCodra calculates the final check digit automatically.
Alternatively, enter the complete 13-digit number to check whether its final digit is mathematically valid.
Review the generated barcode and the number displayed with it.
Download the barcode as PNG, SVG or PDF.
Print a sample and test it before applying the barcode to product packaging. Example EAN-13 number: 4006381333931
For this example, the first 12 digits are 400638133393, and the final check digit is 1.
The check digit is calculated using a weighted Modulo-10 algorithm. A correct check digit confirms that the number is mathematically consistent; it does not establish product ownership or GS1 registration.
EAN-13 Barcode Structure and Check Digit Explained
An EAN-13 number contains 13 numerical digits.
The GS1 Company Prefix and item reference identify the assigned trade item. The length of the company prefix varies, so the number cannot always be divided into fixed-length company and product sections.
The final digit is a check digit calculated from the preceding 12 digits.
To calculate it, the digits are multiplied by alternating weights of 1 and 3, beginning from the rightmost data digit with a weight of 3. The weighted results are added together.
The check digit is the amount needed to reach the next multiple of 10.
This check helps identify common data-entry errors but cannot confirm whether a GTIN is assigned to a particular company or product.
If you already have a complete barcode number and want to verify its format, use our barcode validator and check digit checker.
EAN-13 vs UPC-A: Which Barcode Do You Need?
EAN-13 and UPC-A are both widely recognized retail barcode formats.
EAN-13 encodes a 13-digit GTIN and is especially common in retail markets outside North America.
UPC-A encodes a 12-digit GTIN and is particularly common in the United States and Canada.
Both formats use check digits and are designed for retail point-of-sale scanning.
If you already have an appropriately assigned GTIN-13, EAN-13 is the relevant barcode format. If you have a GTIN-12 that needs to be displayed as a UPC-A symbol, use our free UPC-A barcode generator.
For a more detailed comparison, read UPC vs EAN: Which Barcode Do You Need?.
Choose the format accepted by your retailer or marketplace rather than assuming that one barcode type is universally required in a particular country.
Can You Use a Free EAN-13 Barcode on Products?
When preparing the barcode for packaging:
Use the correctly assigned product identifier.
Verify all 13 digits before printing.
Maintain sufficienYou can use a free barcode generator to create the graphical barcode for an identifier that has already been properly assigned to your product.
However, generating an EAN-13 barcode image does not provide a new GS1-issued GTIN.
If a retailer or marketplace requires a GS1-issued product identifier, obtain the appropriate GTIN through GS1 t quiet zones around the barcode.
Use suitable contrast and printing resolution.
Preserve barcode proportions when resizing artwork.
Check the retailer's barcode dimensions and placement requirements.
Test the final printed barcode with a compatible scanner.
Where packaging space permits, do not reduce a barcode below the applicable printing specifications simply to make it fit.
If you are planning a complete product-label workflow, our guide to printing barcode labels explains common print-quality mistakes.
Remember: A barcode image, a mathematically valid GTIN and an appropriately assigned product identifier are three different things.
Frequently asked questions
Can I generate an EAN-13 barcode for free?
Yes. BarCodra lets you generate an EAN-13 barcode image online using an existing product number. You can download the generated barcode without purchasing barcode-generation software.
Can I create an EAN-13 barcode using only 12 digits?
Yes. Enter the first 12 digits and BarCodra calculates the thirteenth digit using the EAN-13 check digit algorithm.
Is an EAN-13 barcode the same as a UPC barcode?
They are related retail barcode formats, but they have different lengths. EAN-13 encodes 13 digits, while UPC-A encodes 12 digits. Both are recognized internationally.
Does generating an EAN-13 barcode register my product?
No. A barcode generator creates the scannable symbol for your number. It does not assign a GTIN, register the product with GS1 or establish ownership of the identifier.
Why does my EAN-13 barcode fail validation?
A failed check may mean the number has an incorrect length, contains non-numeric characters or has an invalid final check digit. Recheck the original number before changing it.
Can I print an EAN-13 barcode on product packaging?
Yes, provided the identifier is appropriately assigned and the printed symbol meets the required quality, size and placement specifications for its intended retail application.
EAN-13 data is validated before rendering. Generating an image encodes a number you already own — it does not license or register identifiers with GS1 or any ISBN agency.