Skip to content

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).

Units
mm
mm

100% of the standard 0.33 mm. Retail scanners accept 80–200%.

Human-readable text
Rotation

Put a tree, a shape or your own picture inside the bars.

SVG and PDF are vectors: sharp at any size, best for print.

This draws the barcode for a number you already have. It doesn't register a product number: retail UPC, EAN and GTIN numbers come from GS1.

Made in your browser. Nothing is uploaded.

More Barcode Tools

All tools

How to use the EAN-13 barcode generator

Three steps, all in your browser.

  1. 1

    Enter your data

    Type or paste the number or text to encode. Errors are explained.

  2. 2

    Adjust the barcode

    Change the options if you need to. The preview updates as you type.

  3. 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

Each digit multiplied by its weight
Digit200123456789
× Weight131313131313
= Product200329415621827

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.

Frequently asked questions

No. The first two or three digits are the GS1 Prefix, which shows which national GS1 organization issued the company's number. A company licensed by GS1 Germany (400-440) can make its products anywhere. Look up any prefix on our GS1 prefix list.

Yes. US retail scanners have read EAN-13 since 2005 (the Sunrise 2005 change), so an EAN-13 from any GS1 organization works in US stores. Some retailers still prefer UPC-A for their own systems, so check their supplier requirements.

Multiply the first 12 digits alternately by 1 and 3, starting with 1 on the left, add the results, and take the amount needed to reach the next multiple of 10. For 200123456789 the sum is 97, so the check digit is 3.

Type your 12 or 13-digit EAN into the generator above and the barcode is drawn straight away; download it as SVG, PNG or PDF. For products sold in shops, the number should come from your GS1 organization, which licenses a company prefix to you.

Yes. GTIN-13 is the number and EAN-13 is the barcode that carries it. Written with a leading zero it's also a GTIN-14, and an EAN-13 that starts with 0 is the same number as a 12-digit UPC-A.

No. Barcodes are drawn in your browser, and camera frames, pictures and CSV files are processed on your device. Nothing is stored and nothing is sent to our server, and it's all gone when you close or reload the page.

No. A barcode is a picture of a number. Retail product numbers (GTINs such as UPC and EAN) are licensed from GS1, which links them to your company; making a barcode image here doesn't assign or register a number. Retailers and marketplaces may check numbers against GS1's records.

Yes. Every tool is free with no sign-up and no limits on use, including commercial use of the barcodes you make. Clearly labeled ads keep it that way.

Yes. The tools work in any modern browser on phones, tablets and computers, and the scanner uses your phone's camera.