EAN-13 Barcode Generator
Create EAN-13 barcodes with an automatic check digit; SVG, PNG and PDF.
About this tool
Enter the first 12 digits and the tool adds the 13th (check) digit and draws the EAN-13 barcode with the number printed under the bars. Download it as vector SVG or PNG, or print to PDF. It is free and runs in your browser.
How to use it
- 1
Type or paste your text or numbers. Use one line per barcode for bulk.
- 2
Choose the barcode type. The barcode updates instantly; adjust bar width, height and colours if needed.
- 3
Download SVG or PNG, or print / save as PDF. Test-scan a printout before you use it.
Main features
- Automatic check digit. If you enter 13 digits it verifies them and shows the right digit when yours is wrong.
- Vector SVG for Illustrator, Inkscape and print shops, plus high-resolution PNG.
- Digits shown under the bars, with adjustable bar width, height and colours.
Practical example
Enter 400638133393 and the check digit 1 is added, giving 4006381333931. Enter 4006381333932 and the tool reports the wrong check digit and shows the correct one.
How an EAN-13 barcode is built
The 13 digits are a GS1 prefix (which identifies the issuing organisation), the company and item reference, and the check digit. The drawing has start, middle and end guard bars and encodes 12 digits as bars; the first digit is carried by the pattern used for the left half.
Numbers starting 20 to 29 are reserved for internal or in-store use, which makes them suitable for testing and for private labels that never leave your own shop.
Frequently asked questions
What is an EAN-13 barcode?
EAN-13 is the 13-digit retail barcode used on products worldwide: a prefix, a company and item number, and a final check digit. In Japan it is also called a JAN code.
How is the EAN-13 check digit calculated?
Multiply the first 12 digits alternately by 1 and 3 (starting with 1), add the results, and subtract the total from the next multiple of 10. The difference is the check digit. The tool does this for you.
Can I use this barcode to sell products in stores?
Retailers expect numbers registered with GS1, the official issuer. This tool draws the barcode correctly but cannot register a number for you. Do not invent numbers for products you plan to sell.
Can I get SVG, vector, PDF or EPS, and use Illustrator?
SVG and EPS are vector formats. Download either one and open it in Adobe Illustrator, Inkscape or Affinity. You can also print to PDF directly. PNG is exported at high resolution.
What about EAN-14 and EAN-8?
Both are in the type list. EAN-14 (GTIN-14) is drawn as ITF-14, the barcode used on cartons: enter 13 digits and the check digit is added for you. EAN-8 is for very small packs.
What size should an EAN-13 barcode be?
The nominal size is about 37 mm wide by 26 mm high at 100%, and it can be scaled between roughly 80% and 200%. Always keep the white margins and test-scan the printout.