EAN-13 Barcode Generator
Generate retail product EAN-13 barcodes with automatic checksum calculation.
What an EAN-13 barcode is
EAN-13 is the 13-digit barcode printed on most retail products worldwide. The numbers identify the product, and the bars let a checkout scanner read them instantly. Enter the first 12 digits and the tool adds the 13th, the check digit, then draws the barcode.
How the 13 digits are organized
- Prefix (first 2 to 3 digits): assigned by GS1 to a country or numbering authority. It is not proof of where a product was made.
- Company and item numbers: identify the brand owner and the specific product.
- Check digit (last digit): a calculated number that lets scanners detect misreads.
How the check digit is calculated
Add the first 12 digits, multiplying every odd-position digit by 1 and every even-position digit by 3. The check digit is the number that brings the total up to the next multiple of 10.
Example: for 400638133393, the weighted sum is 89, so the check digit is 1 and the full code is 4006381333931. If you type in all 13 digits, the tool can verify that they match.
EAN-13 or UPC-A?
UPC-A is the 12-digit code used mainly in North America. An EAN-13 that begins with 0 is the same as the UPC-A with that zero added, and modern scanners accept both. If you sell in several regions, ask your retailer which they require.
Using EAN-13 legally for sale
To sell in stores or on most marketplaces, your numbers must be issued under a GS1 company prefix. Do not take numbers from existing products or invent valid-looking ones. For prototypes, shelf mock-ups and internal systems, a number starting with 2 is reserved for in-store and internal use, so it is safe for testing.
Size and printing guidance
- Nominal size: about 37.3 × 25.9 mm at 100%. Scaling between roughly 80% and 200% is generally allowed.
- Quiet zones: leave about 3.6 mm of clear space on the left and 2.3 mm on the right (the first digit and the closing digit sit in those margins).
- Colors: dark bars on a light background. Avoid red or light-colored bars.
- Print method: prefer vector output. If you print on thermal labels, test a sample before printing a roll.
- Placement: keep the barcode on a flat area, away from folds, seams and edges.
Frequently Asked Questions
How many digits do I enter?
Enter 12 digits and the tool adds the check digit. If you enter all 13, it checks that the last digit is correct.
Is an EAN-13 generated here valid for retail sale?
The barcode is technically valid, but retailers require that the number belongs to your business under a GS1 licence. For production products, use numbers issued to you.
What is the difference between EAN-13 and UPC-A?
UPC-A has 12 digits and is common in North America, while EAN-13 has 13 digits. A UPC-A is an EAN-13 with a leading zero, and most scanners read both.
What size should I print?
About 37.3 × 25.9 mm is the standard size at 100%. You can scale it between roughly 80% and 200% while keeping the proportions and the quiet zones.
Are there any usage limits, fees, or licensing restrictions?
None whatsoever. All barcode generation on myQRCodeKit is 100% free for commercial manufacturing, retail sales, warehousing, and inventory use.
