The International Article Number (also known as European Article Number or EAN) is a standard describing a
barcode symbology and numbering system used in global trade to identify a specific retail product type, in a specific packaging configuration, from a specific manufacturer. The standard has been
subsumed in the
Global Trade Item Number
The Global Trade Item Number (GTIN) is an identifier for trade items, developed by the international organization GS1. Such identifiers are used to look up product information in a database (often by entering the number through a barcode scanne ...
standard from the
GS1 organization; the same numbers can be referred to as GTINs and can be encoded in other barcode symbologies defined by GS1. EAN barcodes are used worldwide for lookup at retail
point of sale
The point of sale (POS) or point of purchase (POP) is the time and place at which a retail transaction is completed. At the point of sale, the merchant calculates the amount owed by the customer, indicates that amount, may prepare an invoice f ...
, but can also be used as numbers for other purposes such as wholesale ordering or accounting. These barcodes only represent the digits 0–9, unlike some other barcode symbologies which can represent additional characters.
The most commonly used EAN standard is the thirteen-digit EAN-13, a superset of the original 12-digit
Universal Product Code
The Universal Product Code (UPC or UPC code) is a barcode symbology that is widely used worldwide for tracking trade items in stores.
UPC (technically refers to UPC-A) consists of 12 digits that are uniquely assigned to each trade item. Along w ...
(UPC-A) standard developed in 1970 by
George J. Laurer
George Joseph Laurer III (September 23, 1925 – December 5, 2019) was an American engineer for IBM at Research Triangle Park in North Carolina. He published 20 bulletins, held 28 patents and developed the Universal Product Code (UPC) in the ear ...
.
An EAN-13 number includes a 3-digit
GS1 prefix (indicating country of registration or special type of product). A prefix with a first digit of "0" indicates a 12-digit UPC-A code follows. A prefix with first two digits of "45" or "49" indicates a Japanese Article Number (JAN) follows.
The less commonly used 8-digit
EAN-8
An EAN-8 is an EAN/UPC symbology barcode and is derived from the longer International Article Number (EAN-13) code. It was introduced for use on small packages where an EAN-13 barcode would be too large; for example on cigarettes, pencils, and che ...
barcode was introduced for use on small packages, where EAN-13 would be too large. 2-digit EAN-2 and 5-digit
EAN-5
The EAN-5 is a 5-digit European Article Number code, and is a supplement to the EAN-13 barcode used on books. It is used to give a suggestion for the price of the book.
ISBN Encoding – Country and Currency Values Description
Encoding
The E ...
are supplemental barcodes, placed on the right-hand side of EAN-13 or UPC. These are generally used in periodicals, like magazines and books,
to indicate the current year's issue number and in weighed products like food, to indicate the
manufacturer's suggested retail price
The list price, also known as the manufacturer's suggested retail price (MSRP), or the recommended retail price (RRP), or the suggested retail price (SRP) of a product is the price at which its manufacturer notionally recommends that a retailer ...
.
Composition
The 13-digit EAN-13 number consists of four components:
* GS1 prefix – 3 digits
* Manufacturer code – variable length
* Product code – variable length
* Check digit
GS1 prefix
The first three digits of the EAN-13 (GS1 Prefix) usually identify the GS1 Member Organization which the manufacturer has joined (not necessarily where the product is actually made). Note that EAN-13 codes beginning with 0 are actually 12-digit UPC codes with prepended 0 digit. In recent years, more products sold by retailers outside the United States and Canada have been using EAN-13 codes beginning with 0, since they were generated by GS1-US.
The 020-029 GS1 Prefixes are worth a special mention. GS1 defines this as being available for retailer internal use (or internal use by other types of business). Some retailers use this for proprietary (own brand or unbranded) products, although many retailers obtain their own manufacturer's code for their own brands. Other retailers use at least part of this prefix for products which are packaged in store, for example, items weighed and served over a counter for a customer. In these cases, the barcode may encode a price, quantity or weight along with a product identifier – in a retailer defined way. The product identifier may be one assigned by the Produce Electronic Identification Board (PEIB) or may be retailer assigned. Retailers who have historically used UPC barcodes tend to use GS1 prefixes starting with "02" for store-packaged products.
The EAN "country code" 978 (and later 979) has been allocated since the 1980s to reserve a Unique Country Code (UCC) prefix for EAN identifiers of published books, regardless of country of origin, so that the EAN space can catalog books by
ISBN
The International Standard Book Number (ISBN) is a numeric commercial book identifier that is intended to be unique. Publishers purchase ISBNs from an affiliate of the International ISBN Agency.
An ISBN is assigned to each separate edition and ...
s
rather than maintaining a redundant parallel numbering system. This is informally known as "
Bookland
"Bookland" is the informal name for the Unique Country Code (UCC) prefix allocated in the 1980s for European Article Number (EAN) identifiers of published books, regardless of country of origin, so that the EAN namespace can catalogue books by IS ...
". The prefix 979 with first digit 0 is used for
International Standard Music Number (ISMN) and the prefix 977 indicates
International Standard Serial Number (ISSN).
Manufacturer code
The manufacturer code is a unique code assigned to each manufacturer by the numbering authority indicated by the GS1 Prefix. All products produced by a given company will use the same manufacturer code. EAN-13 uses what are called "variable-length manufacturer codes". Assigning fixed-length 5-digit manufacturer codes, as the UCC has done until recently, means that each manufacturer can have up to 99,999 product codes. Many manufacturers do not have that many products, which means hundreds or even thousands of potential product codes are being wasted on manufacturers that only have a few products. Thus if a potential manufacturer knows that it is only going to produce a few products, EAN-13 may issue it a longer manufacturer code, leaving less space for the product code. This results in more efficient use of the available manufacturer and product codes.
In ISBN and ISSN, this component is used to identify the language in which the publication was issued and managed by a transnational agency covering several countries, or to identify the country where the legal deposits are made by a publisher registered with a national agency, and it is further subdivided any allocating subblocks for publishers; many countries have several prefixes allocated in the ISSN and ISBN registries.
Product code
The product code is assigned by the manufacturer. The product code immediately follows manufacturer code. The total length of manufacturer code plus product code should be 9 or 10 digits depending on the length of country code (2–3 digits).
In ISBN, ISMN and ISSN, it uniquely identifies the publication from the same publisher; it should be used and allocated by the registered publisher in order to avoid creating gaps; however it happens that a registered book or serial never gets published and sold.
Check digit
The check digit is an additional digit, used to verify that a barcode has been scanned correctly. It is computed modulo 10, where the weights in the checksum calculation alternate 3 and 1. In particular, since the weights are relatively prime to 10, the EAN-13 system will detect all single digit errors. It also recognizes 90% of transposition errors (all cases, where the difference between adjacent digits is not 5).
Calculation of checksum digit
The checksum is calculated as sum of products – taking an alternating weight value (3 or 1) times the value of each data digit. The checksum digit is the digit, which must be added to this checksum to get a number divisible by 10 (i.e. the additive inverse of the checksum, modulo 10). See
ISBN-13 check digit calculation for a more extensive description and algorithm. The
Global Location Number(GLN) also uses the same method.
Position – weight
The weight at a specific position in the EAN code is alternating (3 or 1) in a way, that the final data digit has a weight of 3 (and thus the check digit has a weight of 1).
All
Global Trade Item Number (GTIN) and
Serial Shipping Container Code (SSCC) codes meet the next rule:
Numbering the positions from the right (code aligned to the right), the odd data digits are always weight of 3 and the even data digits are always weight of 1, regardless of the length of the code.
Weights for 18-digit SSCC code and GTINs (GTIN-8, GTIN-12, GTIN-13, GTIN-14):
Weights for EAN-13 code:
Weights for EAN-8 code:
Calculation examples
* For
EAN-13
The International Article Number (also known as European Article Number or EAN) is a standard describing a barcode symbology and numbering system used in global trade to identify a specific retail product type, in a specific packaging configurati ...
barcode 400638133393''x'', where ''x'' is the unknown check digit, (Stabilo Point 88 Art. No. 88/57), the check digit calculation is...
::
::The nearest multiple of 10 that is equal to or higher than the checksum, is 90. Subtract them: 90 - 89 = 1, which is the check digit ''x'' of the barcode.
*For
EAN-8
An EAN-8 is an EAN/UPC symbology barcode and is derived from the longer International Article Number (EAN-13) code. It was introduced for use on small packages where an EAN-13 barcode would be too large; for example on cigarettes, pencils, and che ...
barcode 7351353''x'', where ''x'' is the unknown check digit, the check digit calculation is...
::
::The nearest multiple of 10 that is equal to or higher than the checksum, is 70. Subtract them: 70 - 63 = 7, which is the check digit ''x'' of the barcode.
Binary encoding of data digits into EAN-13 barcode
The GTIN numbers, encoded to UPC-A, EAN-8 and EAN-13, all use similar encoding. The encoded data is usually repeated in plain text below the barcode.
Barcode structure
The barcode consists of 95 areas (also called modules) of equal width. Each area can be either white (represented here as 0) or black (represented as 1). From left to right:
* 3 areas for the start marker (101)
* 42 areas (seven per digit) to encode digits 2–7, and to encode digit 1 indirectly, as described in the following section
* 5 areas for the center marker (01010)
* 42 areas (seven per digit) to encode digits 8–13
* 3 areas for the end marker (101)
Encoding of the digits
To encode the 13-digit EAN-13 number, the digits are split into 3 groups; the first digit, the first group of 6 and the last group of 6. The first group of 6 is encoded using a pattern whereby each digit has two possible encodings, one of which has even
parity (denoted with letter G) and one of which has odd parity (denoted with letter L). The first digit is not represented directly by a pattern of bars and spaces, but is encoded indirectly, by selecting a pattern of choices between these two encodings for the first group of 6 digits, according to the table below. All digits in the last group of 6 digits are encoded using a single pattern RRRRRR, the one also used for
UPC.
If the first digit is zero, all digits in the first group of 6 are encoded using the pattern LLLLLL used for
UPC, therefore, a UPC barcode is also an EAN-13 barcode with the first digit set to zero.
This encoding guarantees that the first group always starts with an L-code, which has odd parity, and that the second group always starts with an R-code, which has even parity. Thus, it does not matter whether the barcode is scanned from the left or from the right, as the scanning software can use this parity to identify the start and end of the code.
EAN-8 barcodes encode all digits directly, using this scheme:
Note: Entries in the R-column are bitwise complements (logical operator:
negation
In logic, negation, also called the logical complement, is an operation that takes a proposition P to another proposition "not P", written \neg P, \mathord P or \overline. It is interpreted intuitively as being true when P is false, and false ...
) of the respective entries in the L-column. Entries in the G-column are the entries in the R-column in reverse bit order. See pictures of all codes against a colored background.
A run of one or more black areas is known as a "bar", and a run of one or more white areas is known as a "space". As can be seen in the table, each digit's encoding comprises two bars and two spaces, and the maximum width of a bar or space is four areas.
EAN-13 barcode example
* C1, C3: Start/end marker.
* C2: Marker for the center of the barcode.
* 6 digits in the left group: 003994.
* 6 digits in the right group (the last digit is the check digit): 155486.
* A digit is encoded in seven areas, by two black bars and two white spaces. Each black bar or white space can have a width between 1 and 4 areas.
* Parity for the digits from left and right group: OEOOEE EEEEEE (O = Odd parity, E = Even parity).
* The first digit in the EAN code: the combination of parities of the digits in the left group indirectly encodes the first digit 4.
The complete EAN-13 code is thus: 4 003994 155486.
Decoding
By using the barcode center marker, it is possible for a barcode scanner to scan just one half of the barcode at a time. This allows reconstruction of the code by means of a helical scan of the barcode by an angle of approximately 45 degrees.
Japanese Article Number
Japanese Article Number (JAN) is a barcode standard compatible with the EAN. Use of the JAN standard began in 1978. Originally, JAN was issued a flag code (EAN's number system) of 49. In 1992, JAN was newly issued an additional flag code of 45. In January 2001 the manufacturer code changed to 7 digits (9 digits including the flag code) for new companies.
See also
*
EAN-8
An EAN-8 is an EAN/UPC symbology barcode and is derived from the longer International Article Number (EAN-13) code. It was introduced for use on small packages where an EAN-13 barcode would be too large; for example on cigarettes, pencils, and che ...
, another form of EAN barcode
*
EAN-5
The EAN-5 is a 5-digit European Article Number code, and is a supplement to the EAN-13 barcode used on books. It is used to give a suggestion for the price of the book.
ISBN Encoding – Country and Currency Values Description
Encoding
The E ...
, a supplemental EAN for the suggested
list price
The list price, also known as the manufacturer's suggested retail price (MSRP), or the recommended retail price (RRP), or the suggested retail price (SRP) of a product is the price at which its manufacturer notionally recommends that a retailer ...
*
Electronic Data Interchange
*
European Article Numbering-Uniform Code Council
European, or Europeans, or Europeneans, may refer to:
In general
* ''European'', an adjective referring to something of, from, or related to Europe
** Ethnic groups in Europe
** Demographics of Europe
** European cuisine, the cuisines of Europe a ...
*
Global Electronic Party Information Register
The GS1 GEPIR (Global Electronic Party Information Registry) is a distributed database that contains basic information on over 1,000,000 companies in over 100 countries. The database can be searched by GTIN code (includes UPC and EAN-13 codes), ...
(GEPIR) a searchable distributed database of
GS1 GTINs
*
GTIN
The Global Trade Item Number (GTIN) is an identifier for trade items, developed by the international organization GS1. Such identifiers are used to look up product information in a database (often by entering the number through a barcode scanne ...
References
External links
International Article Numberat
GS1 website
Código de barraswebsite
BarcodePerl
Perl is a family of two high-level, general-purpose, interpreted, dynamic programming languages. "Perl" refers to Perl 5, but from 2000 to 2019 it also referred to its redesigned "sister language", Perl 6, before the latter's name was offici ...
modules at
CPAN
The Comprehensive Perl Archive Network (CPAN) is a repository of over 250,000 software modules and accompanying documentation for 39,000 distributions, written in the Perl programming language by over 12,000 contributors. ''CPAN'' can denote eith ...
An example of EAN8/13 implementationImplementing the EAN-13 barcode in C#Global Electronic Party Information Registry (GEPIR)upcdatabase, another online barcode databaseEAN-Search, subscription based barcode database with API, over 275 million entriesOfficial JAN homepage
Free EAN Database
{{Authority control
Barcodes
Identifiers
Unique identifiers
GS1 standards