EAN-13 Barcode Generator
Generate a free EAN-13 barcode online in seconds. This free EAN-13 barcode maker creates a 13-digit international retail code (GTIN-13), calculates the check digit automatically, and gives you a print-ready PNG or SVG — with no signup and everything processed privately in your browser.
EAN-13 Barcode Generator
Generate a print-ready EAN-13 barcode free — 13-digit international retail code (GTIN-13), correct check digit, PNG and SVG download. No signup, nothing uploaded.
Print tip: print at 100 percent scale, never use fit-to-page, and never crop the white quiet zones on either side — both break scanning. The first digits identify the GS1 country prefix, not where a product was made. For a product you plan to sell, use a GS1-registered number; a generated code is fine for testing, mock-ups and internal labels. Need the US format instead? Use our UPC-A generator.
100% private — the barcode is drawn in your browser with plain JavaScript. No library download, no upload, and it even works offline once the page has loaded.
How to use this EAN-13 barcode generator
- Enter 12 digits to calculate the check digit, or enter all 13 digits to verify an existing code.
- Pick a print size and bar height to suit your label or carton.
- Click Generate barcode and check the full number and check-digit calculation shown under the bars.
- Download the barcode as a PNG or SVG, print at 100 percent, and test a printed sample before use.
How to generate an EAN-13 barcode
To generate an EAN-13 barcode, type the first 12 digits of your product number into the box above and let this EAN-13 barcode maker work out the thirteenth digit for you. If you already have a complete code, enter all 13 digits instead and the tool will verify the check digit, warning you if it does not match. Pressing Random valid code creates a correctly formed test number in one click, which is handy for mock-ups and scanner testing. Before generating, pick a print size: Compact suits small shelf labels, Standard is the recommended everyday size, and Large works better for shipping cartons scanned from further away. Bar height can be set to Short, Standard or Tall to fit the space on your pack. Click Generate barcode and the tool draws the bars, shows the full 13-digit number underneath, and spells out the check-digit calculation so you can see exactly how the final digit was produced. Download the result as a PNG for everyday printing or as an SVG when you need crisp, scalable artwork for packaging design. Unlike most generators, this one runs on plain JavaScript with no library download, works offline once loaded, shows the check-digit math, and offers print-size presets plus PNG and SVG downloads, all processed privately in your browser. Always print at 100 percent, keep the white quiet zones on both sides clear, and scan a printed sample before a full production run.
What is an EAN-13 barcode and where it is used
An EAN-13 barcode is the 13-digit international retail barcode, also known as a GTIN-13, used on products sold in shops around the world. The first two or three digits form the GS1 country prefix, which identifies the GS1 member organisation that issued the number; for example, books use ISBN-13 codes starting 978 or 979, which are EAN-13 codes built on those prefixes. The following digits identify the manufacturer and the specific product, and the final digit is a check digit that guards against misreads at the till. You will see EAN-13 codes on groceries, books, clothing, electronics and almost anything sold through a European or international retailer, and they are scanned at checkouts, in warehouses and throughout the supply chain. Because the format is recognised worldwide, a single EAN-13 can serve many markets, although some North American retailers still ask for the 12-digit UPC-A format instead. If you need to check a printed code, try our EAN-13 barcode scanner, and if you sell mainly in the United States or Canada, our UPC-A barcode generator creates the shorter format for that market, which our UPC-A barcode scanner can then verify. A generated code is ideal for testing, mock-ups and internal labels, but before selling through major retailers you normally need a GS1-registered company prefix, which is what makes your product numbers unique in the global system. This GTIN-13 barcode generator also makes a printable EAN-13 barcode for market stalls, small shops and warehouse bins.
The EAN-13 check digit explained
The thirteenth digit of an EAN-13 code is a check digit, and its job is to catch typing and scanning errors before a barcode is printed on packaging. To calculate it, add the digits in odd positions and multiply that total by three, add the digits in even positions, add the two results together, and choose the digit that brings the total up to the next multiple of ten. This GTIN-13 barcode generator also makes a printable EAN-13 barcode, so you can see the check digit on a real symbol instead of calculating it by hand. It also explains the EAN-13 check digit in plain English, which is useful if you are learning the format, training staff or checking a code supplied by a manufacturer. The EAN-13 check digit does not prove that a number is registered or authorised for sale; it only proves that the digits are internally consistent, so always use a GS1-registered number for products you intend to sell. To check a code without generating it, use our GS1 check digit calculator, or validate a whole list of codes with our barcode validator.
EAN-13 vs UPC-A
The main difference between EAN-13 and UPC-A is length and market: EAN-13 has 13 digits and is the standard retail barcode internationally, while UPC-A has 12 digits and is the standard in the United States and Canada. Both identify a product and both end in a check digit, but the country or system prefix works differently, with EAN-13 starting with a GS1 country prefix and UPC-A starting with a company prefix within the North American system. A UPC-A code becomes a valid EAN-13 by adding a leading zero, and the check digit stays the same. Example: UPC-A 036000291452 becomes EAN-13 0036000291452, both end in 2. If your products will be sold in Europe, the Middle East, Africa, Asia or Australia, generate EAN barcode numbers in EAN-13, and if your products will be sold in the United States, generate a UPC-A barcode instead. See the full UPC vs EAN comparison for a detailed look at length, markets and prefixes.
Frequently asked questions
An EAN-13 code has 13 digits. The first 12 digits identify the product, and the thirteenth digit is a check digit calculated from the first 12 digits.
No, you can use this generator without GS1 registration to create and test codes, but you normally need a GS1-registered company prefix before selling products through major retailers, because the prefix is what makes your product numbers unique in the retail system.
Yes. Download the PNG or SVG, print at 100 percent scale with high contrast and clear quiet zones, and test a printed sample with a scanner before a full production run.
EAN-13 has 13 digits and is used internationally, while UPC-A has 12 digits and is the standard retail barcode in the United States and Canada. A UPC-A code becomes a valid EAN-13 by adding a leading zero, and the check digit stays the same. Example: UPC-A 036000291452 becomes EAN-13 0036000291452, both end in 2.