Skip to content
koducathome

EAN-13 Barcode Generator

Create EAN, UPC, Code 128 and other 1D barcodes.

How to use this tool

Steps for using the Barcode Generator.

  1. Type the 12-digit product number (GTIN-13 without its check digit) and the check digit is calculated and added for you.
  2. Or type all 13 digits to verify a number you already have — a wrong check digit is reported, never silently corrected.
  3. Adjust the bar colour, bar width, height, quiet zone and text under Customize Appearance.
  4. Press Generate Barcode, then Download a PNG, SVG or PDF, Print it, or Copy the data. For many codes at once, upload a CSV under Batch Barcode Generation.

Example

12 digits: the check digit is added

Typed
590123412345
Result
Valid EAN-13 (12 digits). Check digit 7 will be added.
Encoded: 5901234123457

Common use cases

  • Retail product packaging sold through supermarkets and shops
  • Books and other items whose numbers start with a GS1 prefix
  • Marketplace listings that ask for an EAN
  • Checking that an EAN printed on a supplier's product is valid

How an EAN-13 barcode works

EAN-13 encodes a 13-digit GTIN — the number scanned at checkouts around the world. The first digits are the GS1 prefix of the organisation that issued the number (it shows where the number was issued, not where the product was made), followed by the company prefix, the item reference and a final check digit.

The check digit uses the GS1 mod-10 rule: starting from the right of the first 12 digits, multiply alternately by 3 and 1, add the results, and the check digit is what brings the total up to the next multiple of 10. For 590123412345 that is 7.

The 13 digits are drawn as 95 modules: guard bars at the start, middle and end, with six digits in each half. The first digit isn't drawn as bars — it is encoded in the pattern of the left half — which is why it is printed outside the symbol on the left.

A barcode that is valid in format is not the same as a registered product number: retail numbers (GTINs) come from your GS1 Member Organisation, which issues a company prefix to your business.

Limitations

  • The tool checks the format and check digit only — it cannot tell whether a number is registered to your company.
  • Add-on (2- or 5-digit) supplements used on magazines and books are not generated.

Frequently asked questions

How is the EAN-13 check digit calculated?

Weight the first 12 digits 1, 3, 1, 3… from the left (equivalently 3, 1, 3… from the right), add them up, and the check digit is the amount needed to reach the next multiple of 10. For 590123412345 that is 7, giving 5901234123457.

Does the first part of an EAN-13 show the country of origin?

No. The first two or three digits are the prefix of the GS1 Member Organisation that issued the number. A product made in one country can carry a number issued by another.

Can I make up my own EAN-13 numbers?

You can draw any valid number here, but shops and marketplaces expect numbers licensed to your company through GS1. Made-up numbers may clash with real products.

Can I use these EAN-13 barcodes on Amazon?

The barcode image is fine — what matters is the number. Amazon generally requires product IDs (GTINs such as EAN or UPC) licensed through GS1 and checks them against GS1's records; some brands can apply for a GTIN exemption instead. This page draws the barcode for a number you already have; it can't issue numbers.

What's the difference between EAN-13 and UPC-A?

UPC-A has 12 digits and is used mainly in the US and Canada; EAN-13 has 13 digits and is used worldwide. A UPC-A number is an EAN-13 with a leading 0, and modern scanners read both. Use the UPC-A Barcode Generator for UPC-A.

Is the data I type uploaded anywhere?

No. Barcodes, including batch CSV files, are created in your browser. Recent barcodes are saved only in this browser.