EAN barcode: what it is and how to get one for your products
What an EAN code is, what its 13 digits mean, how to get one officially from GS1, and what happens in the warehouse if your product doesn't have one.
If you're going to sell on Amazon, on a marketplace or in a large retail chain, sooner or later they'll ask you for the EAN code for each product. The correct way to get one is to register with GS1 (in Spain, GS1 España), which assigns you a range of numbers under your company's name. Buying individual codes from resellers may seem cheaper, but it tends to cause problems right when you need them most.
An EAN code is a 13-digit number (EAN-13) that uniquely identifies a product in any shop in the world, and which is printed as a barcode to be read with a scanner. It allows warehouses, marketplaces and tills to know exactly which item they're dealing with, without relying on the product name or each shop's internal reference.
From here we'll explain what each digit means, when an online shop needs one, how to get one, how it differs from the SKU, and what happens in a warehouse when your product arrives with an EAN and when it arrives without one.
What an EAN code is and what it's for
EAN stands for European Article Number. Today it's officially called the International Article Number, because it stopped being just European decades ago, although the EAN acronym is still used. Technically it's a GTIN-13 (Global Trade Item Number), the product identifier used in the GS1 system.
In practical terms, it's used to:
Identify a product unambiguously: two different shops selling the same item use the same EAN.
Read it with a scanner at the till, in the warehouse or on goods-in, instead of typing in references.
Register with marketplace catalogues, which group listings by EAN.
Keep accurate stock control: every scan adds or subtracts one unit of the correct item.
EAN-13 code: what do the 13 digits mean
An EAN-13 is divided into four blocks:
GS1 prefix (2-3 digits): indicates which GS1 organisation assigned the code, not the country where the product was manufactured.
Company code: identifies the brand that holds the range.
Product code: assigned by the brand itself to each item and variant.
Check digit: the last figure, calculated from the previous twelve to detect reading or typing errors.
The length of the company code and the product code varies depending on how many codes you've purchased: the more products you need to number, the fewer digits are left for the product block.
What is Spain's EAN prefix
Codes assigned by GS1 España start with 84. Watch out for a very common misconception: a product with an 84 prefix doesn't have to be manufactured in Spain, it simply means the company that holds the code obtained it through GS1 España. A Spanish brand manufacturing in Portugal or Asia can perfectly well carry an 84 on its labels.
Other formats: EAN-8, UPC, EAN-128 and ISBN
EAN-8: a short 8-digit version for very small products where an EAN-13 won't fit.
UPC-A: the 12-digit equivalent used in the United States and Canada. Modern scanners read both without any issue.
EAN-128 code (now GS1-128): doesn't identify a sales unit, but logistics units such as boxes and pallets. It allows you to encode extra data such as batch, expiry date or the SSCC (a pallet's unique number). Some large retail chains will ask for this when receiving goods.
ISBN: the identifier used for books. The ISBN-13 starts with 978 or 979 and can be represented as an EAN-13 barcode, but it isn't requested from GS1: in Spain it's assigned by the Agencia del ISBN.
When does an online shop need an EAN code
If you only sell through your own website, the EAN isn't compulsory. But as soon as you expand into other channels, it becomes almost essential:
Amazon: to create a new product in the catalogue it asks for a GTIN (EAN, UPC or ISBN), unless you request an exemption, for example as a registered brand. It also cross-checks codes against the GS1 database. You'll find more detail in our guide on