13 Digit Barcode (EAN13) Explained: What the Numbers Mean

Published 9 October 2026

If a product has a barcode with 13 numbers under the bars, it's almost certainly an EAN-13, which you'll also see written as EAN13. Here's what those digits mean, how to check one, and how to make your own.

PartDigits in 5901234123457What it does
GS1 prefix590Shows which GS1 office issued the number
Company number1234Identifies the business
Item number12345Identifies one product
Check digit7Catches typing and scanning mistakes

The split between company and item digits varies from one company to another.

What is a 13 digit barcode?

A 13 digit barcode is a barcode that encodes a 13-digit number. In shops, it's nearly always the EAN-13 (European Article Number), also spelled EAN13. It's the barcode on food, drinks, cosmetics, electronics and most other things you buy, and it's printed on the back of books as an ISBN barcode.

The number itself is called a GTIN-13 (Global Trade Item Number). The barcode is just the picture of it that a scanner can read. If you only want to make one, jump to the EAN13 barcode generator.

What each part of the number means

Every EAN-13 number is made of the same parts. Using the standard example 5901234123457:

  • The first 2 to 3 digits (590) are the GS1 prefix. They show which GS1 office issued the number. They do not tell you where the product was made. For example, 590 belongs to the GS1 office in Poland.
  • The next digits (1234 and 12345) are the company number and the item number. The company number identifies the business, and the item number identifies one product from that business.
  • The last digit (7) is the check digit. It's calculated from the other 12 so that scanners and software can catch mistakes.

The split between the company part and the item part isn't fixed. Larger companies get a shorter company number and room for more products.

What are the first digits for?

  • 978 and 979: books. An ISBN-13 is printed as an EAN-13, so a 13 digit barcode on a book starts with one of these.
  • 45 and 49: Japan, where the barcode is called JAN. It's the same as EAN-13.
  • 00 to 13: numbers that began life as US and Canadian UPC codes. A 12-digit UPC-A becomes a 13 digit EAN-13 when you add a zero at the front.

How to check a 13 digit barcode number

You can check whether a 13-digit number is valid in under a minute.

  1. Take the first 12 digits.
  2. Working from the right, multiply them alternately by 3 and 1.
  3. Add up the results.
  4. The check digit is the amount you need to reach the next multiple of 10.
  5. If it matches the 13th digit, the number is correctly formed.

We walk through a full example in how barcode check digits work. Or simply type the 13 digits into the EAN13 generator, which tells you if the last digit is wrong and shows what it should be.

Passing the check doesn't prove the number belongs to a real product or to you. It only proves the digits are consistent.

How to make your own 13 digit barcode

  1. Open the EAN-13 barcode generator.
  2. Type your 12 digits. The check digit is added for you. If you have all 13, type them and they'll be verified.
  3. Check the preview and download it as SVG or PNG, or print it.
  4. Print a test label and scan it before you print a full batch. Our guide to printing barcode labels that scan shows how.

Where does the number come from?

If you're selling in shops or on big marketplaces, the number should be issued to your business by GS1, not made up. If you're labelling your own stock or practising, any correctly formed number works. We explain the difference in barcodes for products you sell.

13 digits, 12 digits or 8 digits?

The number of digits depends on the format. In North America you'll mostly see 12 digits, which is a UPC-A. See EAN-13 vs UPC-A for the difference. Very small packs may use 8 digits, which is an EAN-8.

Common questions people search for

Can I make a 13 digit barcode for free? Yes. Our EAN13 generator is free, and there's no account or watermark. Can I use it to sell products? The image works. The number needs to be one your retailer accepts, which usually means one issued by GS1.

Why won't my scanner read it? Check the print scale, margins and contrast. The first things to try are in printing barcode labels that actually scan.

Frequently asked questions

What is a 13 digit barcode called?

It's an EAN-13, also written EAN13. The number is a GTIN-13. Books use the same format as ISBN-13.

How do I read a 13 digit barcode number?

The first 2 to 3 digits are the GS1 prefix, the next digits are the company and item numbers, and the last digit is the check digit.

Can I generate an EAN13 barcode for free?

Yes. Enter 12 digits in the EAN-13 generator and it adds the check digit. You can download an SVG or PNG, or print it.

Does the first digit show the country of origin?

No. The prefix shows which GS1 office issued the number, which may not be where the product is made.

Is a UPC the same as a 13 digit barcode?

A UPC-A has 12 digits. Add a zero at the front and you have the 13 digit EAN-13 version of it.

More guides

See all guides