EAN-13 Barcode Generator
Make the 13-digit retail barcode used around the world.
12 digits (we add the check digit) or 13 digits.
2 digits (e.g. a magazine issue) or 5 digits (e.g. a suggested price).
100% of the standard 0.33 mm. Retail scanners accept 80–200%.
Put a tree, a shape or your own picture inside the bars.
SVG and PDF are vectors: sharp at any size, best for print.
Made in your browser. Nothing is uploaded.
More Barcode Tools
All tools- Barcode generatorMake UPC, EAN, Code 128 and 2D barcodes
- UPC barcode generatorUPC-A barcodes for US and Canadian retail
- EAN-8 barcode generatorShort EAN-8 barcodes for small packs
- ISBN barcode generatorBookland EAN barcodes for book covers
- Code 128 generatorCode 128 for letters, numbers and symbols
- Barcode scannerScan barcodes with your camera
- GTIN validatorCheck a GTIN and see its GS1 prefix
- Design barcode generatorBarcodes with art in the bars, scan-checked
- Check digit calculatorGS1 check digits for UPC, EAN and GTIN
How to use the EAN-13 barcode generator
Three steps, all in your browser.
- 1
Enter your data
Type or paste the number or text to encode. Errors are explained.
- 2
Adjust the barcode
Change the options if you need to. The preview updates as you type.
- 3
Download
Save the result and print it. Test a printed sample before a big run.
EAN-13 Barcode Generator: what to know
An EAN-13 is the 13-digit retail barcode used in most of the world: a GS1 Prefix and company number, an item reference and a check digit. The check digit comes from the first 12 digits: multiply them alternately by 1 and 3 from the left, add the results, and take the amount needed to reach the next multiple of 10.
EAN-13 is the retail barcode used in most of the world: 13 digits made of a GS1 Prefix and company number, an item reference and a check digit. It's the same family as UPC-A, and since 2005 scanners in the US and Canada read it too, so an EAN-13 from any GS1 organization works in shops worldwide.
Enter 12 digits and the generator adds the check digit, or enter all 13 and it verifies the last one. The first digit is printed outside the bars on the left; it's encoded by the pattern of the left-hand digits rather than by bars of its own, which is how EAN-13 fits 13 digits into the same width as a 12-digit UPC-A.
The first two or three digits are often called a country code, but they only show which national GS1 organization issued the company's prefix. A product with a 500 prefix was registered with GS1 UK but could be made anywhere. Look up any prefix in our GS1 prefix list, or paste a whole number into the GTIN validator.
Worked example: the check digit of 200123456789
| Digit | 2 | 0 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| × Weight | 1 | 3 | 1 | 3 | 1 | 3 | 1 | 3 | 1 | 3 | 1 | 3 |
| = Product | 2 | 0 | 0 | 3 | 2 | 9 | 4 | 15 | 6 | 21 | 8 | 27 |
Add the products: 2 + 0 + 0 + 3 + 2 + 9 + 4 + 15 + 6 + 21 + 8 + 27 = 97. Round 97 up to 100: 100 − 97 = 3, so the check digit is 3 and the full number is 2001234567893.
Prefix 200 is in GS1's restricted circulation range (200-299), used for in-store numbers, so this sample isn't any company's product. Check any number with the GTIN validator.
Popular uses
- Product packaging for shops in Europe, Asia, Africa and Oceania
- Products sold internationally from one barcode
- Marketplace and wholesale listings that ask for an EAN
- Shelf and stock labels in EAN-based retail systems
Tips for the best result
- At 100% magnification an EAN-13 is 37.29 mm wide including its quiet zones; GS1 allows 80% to 200%.
- Leave 11 bar-widths of clear space on the left and 7 on the right; the standard quiet zone setting includes them in the file.
- If your number starts with 0, it's also a valid UPC-A; convert it with the UPC to EAN converter.
Read how JustYourBarcode works and our privacy details. Numbers, pictures, CSV files and camera frames are processed in your browser and are never sent to our server. A barcode doesn't register a product number: retail UPC and EAN numbers come from GS1.