Automatic check digit
Enter 12 digits and the 13th is calculated with the GS1 modulo-10 method.
The CardDeck EAN-13 barcode generator turns your GS1 product number into a retail barcode, with the check digit calculated for you. Enter 12 digits, check the preview and download a print-ready SVG or PNG for packaging and labels.
Free plan · No credit card required
Generated in your browser · nothing you type is sent anywhere · SVG and PNG downloads
An EAN-13 barcode is the 13-digit retail barcode used at checkouts worldwide, managed by GS1. It encodes a GTIN-13: a GS1 prefix, your company prefix, an item reference and a final check digit. CardDeck generates the barcode from the 12 digits you enter and calculates the check digit automatically. Retail use requires GS1-issued numbers.
Use a GTIN-13 assigned from your GS1 Company Prefix, or an individual number from GS1.
Type the first 12 digits. If you enter all 13, CardDeck verifies the check digit.
Confirm the number printed under the bars matches your product record.
Download SVG for packaging artwork, print a proof at size and scan it.
Enter 12 digits and the 13th is calculated with the GS1 modulo-10 method.
Enter all 13 digits and a wrong check digit is flagged.
Letters, spaces and dashes are caught before export.
SVG for packaging artwork, so bars stay sharp at any magnification.
A whole product range from one spreadsheet of GTINs.
Static barcodes are unlimited on every plan.
| Aspect | Without CardDeck | With CardDeck |
|---|---|---|
| Digits | UPC-A: 12 | EAN-13: 13 |
| Main region | UPC-A: US and Canada | EAN-13: international |
| Issued by | UPC-A: GS1 US | EAN-13: any GS1 member organization |
| Check digit | UPC-A: modulo 10, weights start at 3 | EAN-13: modulo 10, weights start at 1 |
| Relationship | UPC-A: a 12-digit GTIN | EAN-13: a UPC-A with a leading 0 is the same number |
An EAN-13 barcode is a 13-digit retail barcode defined by GS1, the not-for-profit organization that manages product identification standards. It is scanned at checkouts and in warehouses worldwide, and the number it holds is a GTIN-13 (Global Trade Item Number).
EAN originally stood for European Article Number. Today the format is used internationally, and scanners in the US and Canada read EAN-13 as well as the 12-digit UPC-A.
The barcode is 95 modules wide: a start guard, six left-hand digits, a center guard, six right-hand digits and an end guard. The first digit is not drawn as bars; it is encoded by the pattern of the six left-hand digits.
Yes, for retail. Any EAN-13 that goes on a product sold through retailers or major marketplaces should come from GS1. CardDeck draws the barcode from your number; it does not issue numbers.
Some websites sell cheap EAN or UPC numbers that were originally licensed to another company. Retailers and marketplaces can check numbers against GS1's records, and a mismatch can get listings rejected. If your products are going into retail, buy directly from GS1.
For items that never pass through a retail checkout, such as internal stock, assets, staff IDs or event tickets, use Code 128 instead, with any values you like.
The EAN-13 check digit uses GS1's modulo-10 method: weight the first 12 digits alternately by 1 and 3 from the left, add the results and find the number that brings the total up to the next multiple of 10.
If the total is already a multiple of 10, the check digit is 0.
The check digit lets a scanner catch most single-digit misreads and swapped neighboring digits. If the recalculated digit does not match, the scanner rejects the read.
At 100% magnification, an EAN-13 barcode is about 37.29 mm wide and 25.93 mm tall including its quiet zones, with an X-dimension of 0.33 mm. GS1 allows magnifications from 80% to 200% for general retail use.
Your printer or packaging supplier may recommend a minimum magnification for the printing process, because some processes spread ink and thicken bars.
Leave at least 11 times the X-dimension clear on the left and 7 times on the right. At 100%, that is about 3.6 mm and 2.3 mm. Many printed barcodes fail because a box edge, a border or text runs into this space.
Do not cut the bar height to fit a small pack. GS1 discourages truncation, because shorter bars are harder to scan at a checkout, where products are passed over the scanner at many angles.
Choose EAN-13, enter your 12-digit GTIN, check the preview and download an SVG for your packaging artwork. For a whole range, generate them from a spreadsheet.
US and Canadian retailers' scanners read EAN-13. If a buyer specifically asks for UPC-A, see the UPC-A barcode generator. A UPC-A number is the same as an EAN-13 that starts with 0.
Can’t find an answer? Visit the Help Center.
Not for retail. Retailers and marketplaces expect GS1-issued numbers. For internal use, use Code 128 instead.
No. The first digits show which GS1 member organization issued the number, not where the product was made.
No. Enter 12 digits and CardDeck calculates it. If you enter 13, CardDeck verifies the check digit.
GS1 allows 80% magnification for general retail, about 29.8 × 20.7 mm. Your printer may recommend a larger minimum.
Yes. Point-of-sale scanners in the US and Canada read EAN-13, though some buyers still specify UPC-A.
EAN-13 is the barcode; the GTIN-13 is the number it carries. One GTIN identifies one product variant.
Yes. Static barcodes, including EAN-13, are free and unlimited on every plan.
Free plan · No credit card required