EAN-13 Barcode Generator
EAN-13 is the barcode on almost every retail product sold outside the United States and Canada. Generate one below, or read on for what the 13 digits mean and how big to print it.
Enter a value to see the barcode.
What the 13 digits mean
An EAN-13 encodes a 13-digit GTIN (Global Trade Item Number). Reading left to right: the first digits are the GS1 prefix allocated to your company (the first 2–3 digits of the prefix identify the GS1 member country — for example 590 is Poland, 690–699 is China, 00–13 is the US and Canada — but the prefix does not by itself prove where a product was made); then your item reference, which you assign; then the check digit, calculated from the other twelve digits. The check digit is not a serial number and does not make a made-up number genuine — it only catches typing and scanning errors.
How the check digit is calculated
Number the twelve digits from the right, multiply them alternately by 3 and 1 (starting with 3 on the
rightmost digit), add the results, and take the amount needed to reach the next multiple of 10. For
590123412345 the weighted sum is 83, so the check digit is 7 and the full number is
5901234123457. The check digit calculator shows
every step for any number.
How big should an EAN-13 be when printed?
At its nominal size (100% magnification) an EAN-13 is 37.29 mm wide and 25.93 mm high, digits included, with bars 22.85 mm high and a narrowest bar (the “X-dimension”) of 0.33 mm. GS1 allows retail EAN-13 symbols from 80% to 200% of nominal: 29.83 mm wide at 80%, 74.58 mm at 200%. Never print below 80%, never shorten the bars, and keep the quiet zones clear — 11 modules (3.63 mm at 100%) on the left and 7 modules (2.31 mm) on the right. Full tables are in the barcode label sizes & printing guide.
EAN-13 vs UPC-A
They carry the same kind of number and the same check-digit maths. UPC-A (12 digits) is the retail standard in the US and Canada; EAN-13 (13 digits) is the standard almost everywhere else. A 12-digit UPC-A number can be written as a 13-digit EAN-13 by adding a leading 0. Most modern tills read both, but a retailer that asks for a UPC-A wants the 12-digit form — generate it on the UPC-A generator.
Related
- UPC-A barcode generator
- EAN-8 barcode generator
- ISBN barcode generator (EAN-13 for books)
- Barcode check digit calculator
- Barcode label sizes & printing guide
Frequently asked questions
How many digits is an EAN-13?
13 digits: a GS1 prefix, an item reference and one check digit. Type 12 digits here and the check digit is added for you.
Can I make up an EAN-13 number for my product?
You can draw the bars, but a made-up number will not be in any retailer's database and may already belong to another product. Retail numbers are allocated by GS1 — see how to get a barcode for Amazon and retail.
What size should I print an EAN-13?
Nominal size is 37.29 × 25.93 mm. GS1 allows 80–200% of that for retail. Print from the SVG download so the bars stay sharp at any size.
Does the first digit tell me the country of origin?
No — the first digits are the GS1 member organisation that issued the company prefix, which is often but not always the country where the company is based. It is not a reliable country-of-origin mark.