Contents 1 Composition 1.1 GS1 prefix 1.2 Manufacturer code 1.3 Product code 1.4 Check digit 2 Calculation of checksum digit 2.1 Position - weight 2.2 Calculation examples 3 Binary encoding of data digits into EAN-13 barcode 4 Japanese Article Number 5 How the 13-digit EAN-13 is encoded 5.1 EAN-13 encoding 5.2 EAN-13 barcode example 5.3 Decoding 6 See also 7 References 8 External links

Composition[edit] 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[edit] Further information: List of GS1 country codes 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).[4] Note that EAN-13 codes beginning with 0 are actually 12-digit UPC codes with prepended 0 digit. In the last few years, more products sold by retailers outside 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.[citation needed] 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 ISBNs[3] rather than maintaining a redundant parallel numbering system. This is informally known as "Bookland". 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[edit] 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 is 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--and many manufacturers don't 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.[5] 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[edit] 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[edit] 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[edit] 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).[6] 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[edit] 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): position 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 weight 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 Weights for EAN-13 code: position 12 11 10 9 8 7 6 5 4 3 2 1 weight 1 3 1 3 1 3 1 3 1 3 1 3 Weights for EAN-8 code: position 7 6 5 4 3 2 1 weight 3 1 3 1 3 1 3 Calculation examples[edit] For EAN-13 barcode 400638133393x, where x is the unknown check digit, (Stabilo Point 88 Art. No. 88/57), the check digit calculation is... position 12 11 10 9 8 7 6 5 4 3 2 1 first 12 digits of barcode 4 0 0 6 3 8 1 3 3 3 9 3 weight 1 3 1 3 1 3 1 3 1 3 1 3 partial sum 4 0 0 18 3 24 1 9 3 9 9 9 checksum 89 The nearest multiple of 10 that is equal or higher than the checksum, is 90. Subtract them: 90 - 89 = 1, which is the check digit x of the barcode. For EAN-8 barcode 7351353x, where x is the unknown check digit, the check digit calculation is... position 7 6 5 4 3 2 1 first 7 digits of barcode 7 3 5 1 3 5 3 weight 3 1 3 1 3 1 3 partial sum 21 3 15 1 9 5 9 checksum 63 The nearest multiple of 10 that is equal 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[edit] Encoding EAN-13 Encoding L-digits Encoding G-digits Encoding R-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 encoded indirectly, by selecting a pattern of choices between these two encodings for the first group of 6 digits, according to the table below. (Unlike the other digits, the first digit is not represented directly by a pattern of bars and spaces.) 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, an UPC barcode is also an EAN-13 barcode with the first digit set to zero. Structure of EAN-13 First digit First group of 6 digits Last group of 6 digits 0 LLLLLL RRRRRR 1 LLGLGG RRRRRR 2 LLGGLG RRRRRR 3 LLGGGL RRRRRR 4 LGLLGG RRRRRR 5 LGGLLG RRRRRR 6 LGGGLL RRRRRR 7 LGLGLG RRRRRR 8 LGLGGL RRRRRR 9 LGGLGL RRRRRR Structure of EAN-8 First group of 4 digits Last group of 4 digits LLLL RRRR Encoding of the digits Digit L-code G-code R-code 0 0001101 0100111 1110010 1 0011001 0110011 1100110 2 0010011 0011011 1101100 3 0111101 0100001 1000010 4 0100011 0011101 1011100 5 0110001 0111001 1001110 6 0101111 0000101 1010000 7 0111011 0010001 1000100 8 0110111 0001001 1001000 9 0001011 0010111 1110100 Note: Entries in the R-column are bitwise complements (logical operator: negation) 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.

Japanese Article Number[edit] 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.[7]

How the 13-digit EAN-13 is encoded[edit] The GTIN numbers, encoded to UPC-A, EAN-8 and EAN-13, all use similar encoding. The encoded information is repeated in plain text below the barcode.[8] EAN-13 encoding[edit] The 13-digit EAN-13 number can be divided into 3 groups: first digit, left group of 6 digits, right group of 6 digits. The barcode consists of 95 equally spaced areas (also called modules). From left to right: 3 areas to encode the start marker. 42 (6*7) areas making up the left group of 6 digits. This can be further subdivided into 6 subgroups, each consisting of seven areas. The subgroups encode digits 2-7. Each of these encodings can have even or odd parity. The parities taken together, indirectly encode the first digit of EAN-13. 5 areas to encode the marker for the center of the barcode. 42 (6*7) areas making up the right group of 6 digits. This can be further subdivided into 6 subgroups, each consisting of seven areas. The subgroups encode digits 8-13. Digits 8-13 are all encoded with even parity. Digit 13 is the check digit. 3 areas to encode the end marker. Each area can be black bar (1) or white space (0). A maximum of four black bar areas can be grouped together, these make up a wide black bar. Likewise a maximum of four white space areas can be grouped together, these make up a wide white space. The start marker and the end marker are encoded as 101. The center marker is encoded as 01010. Each digit in EAN-13 (except digit 1, which is not directly encoded) consists of seven areas. A decimal digit is encoded so that it consists of two (wide) bars and two (wide) spaces. The digits in the left group are encoded so that they always start with a white space, and end with a black bar. The digits in the right group are encoded so that they always start with a black bar, and end with a white space. Finally, the combination of variable-width black bars and white spaces encodes the EAN-13 number. The encoding is described in the following table: Digit Digit encoding Bar/Space widths (total of 7) EAN-13 encoding in relation to digit 1 left right left odd even even odd even 0 0001101 0100111 1110010 3211 1123 OOOOOO EEEEEE 1 0011001 0110011 1100110 2221 1222 OOEOEE EEEEEE 2 0010011 0011011 1101100 2122 2212 OOEEOE EEEEEE 3 0111101 0100001 1000010 1411 1141 OOEEEO EEEEEE 4 0100011 0011101 1011100 1132 2311 OEOOEE EEEEEE 5 0110001 0111001 1001110 1231 1321 OEEOOE EEEEEE 6 0101111 0000101 1010000 1114 4111 OEEEOO EEEEEE 7 0111011 0010001 1000100 1312 2131 OEOEOE EEEEEE 8 0110111 0001001 1001000 1213 3121 OEOEEO EEEEEE 9 0001011 0010111 1110100 3112 2113 OEEOEO EEEEEE For each digit there are three similar encodings (left odd, left even, right): Left even and right are mirror-symmetrical to each other. Left odd is the bitwise inverse of right. The first digit from the left group is always encoded with odd parity, and the last digit of the right group is always encoded with even parity. Thus, it does not matter whether the barcode is scanned from the left or from the right: the scanning software can determine what is the beginning and end of the barcode, with the help of the fact that the first digit should have odd parity and the last digit should have even parity. EAN-13 barcode example[edit] EAN-13 barcode. A green bar indicates the black bars and white spaces that encode a digit. 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[edit] Scanning part of an EAN-13 barcode. 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.

See also[edit] EAN-8, another form of EAN barcode Electronic Data Interchange European Article Numbering-Uniform Code Council Global Electronic Party Information Register (GEPIR) a searchable distributed database of GS1 GTINs GTIN

References[edit] ^ "Alumni Hall of Fame Members". University of Maryland Alumni Association. The University of Maryland. 2005. Archived from the original on 2007-06-23. Retrieved 2009-06-10. After graduating from Maryland in 1951, George Laurer joined IBM as a junior engineer and worked up the ranks to senior engineer. In 1969, he returned to the technical side of engineering and was later assigned the monumental task of designing a code and symbol for product identification for the Uniform Grocery Product Code Council. His solution — the Universal Product Code — radically changed the retail world. Since then, he has enhanced the code by adding a 13th digit. Laurer retired from IBM in 1987. He holds some 25 patents and is a member of the university’s A. James Clark School of Engineering Hall of Fame.  ^ "Barcodes for Magazines".  ^ a b "Barcodes for Books".  ^ Prefix List, GS1 . ^ "EAN-13 SYMBOLOGY".  ^ Check Digit Calculator, at GS1 US. ^ "Bar Code Guide - Barcode Types - JAN". Retrieved 2016-05-02.  ^ "Infos zu EAN Codes Nummern" (in German). Retrieved 27 September 2016. 

External links[edit] Wikimedia Commons has media related to International Article Number (EAN). International Article Number at GS1 website Barcode Perl modules at CPAN An example of EAN8/13 implementation EAN MediaWiki extension, a MediaWiki extension, visualizing EAN-13/EAN-8/UPC-A/Code39/Codabar barcodes by specifying only the numbers/symbols in the wiki-text. Implementing the EAN-13 barcode in C# Global Electronic Party Information Registry (GEPIR) upcdatabase, another online barcode database EAN-Search, free barcode database with 65 million entries EAN, UPC, ISBN, ISAN and IMDb Lookup Tool Online validation tool and graphics generator of EAN 8/13 codes Official JAN homepage (in Japanese) v t e Barcodes Linear barcodes Automatic Car Identification Code 11 Code 39 Code 93 Code 128 Codabar European Article Number GS1 DataBar ITF-14 Interleaved 2 of 5 MSI Barcode Patch Code Pharmacode Plessey Telepen UPC UPC-A MaxiCode Post office barcodes CPC Binary Barcode Facing Identification Mark PostBar POSTNET RM4SCC Intelligent Mail barcode PLANET 2D barcodes (stacked) GS1 DataBar PDF417 2D barcodes (matrix) Aztec Code Data Matrix (Semacode) MaxiCode QR code Polar coordinate barcodes MaxiCode ShotCode Other High Capacity Color Barcode (Microsoft Tag) Technological issues Barcode reader Barcode printer Other data tags RFID Bokode Related topics Supply Chain Management Object hyperlinking Matrix Mobile tagging CueCat Retrieved from "" Categories: BarcodesIdentifiersUnique identifiersHidden categories: CS1 German-language sources (de)All articles with unsourced statementsArticles with unsourced statements from March 2017Articles with Japanese-language external links

Navigation menu Personal tools Not logged inTalkContributionsCreate accountLog in Namespaces ArticleTalk Variants Views ReadEditView history More Search Navigation Main pageContentsFeatured contentCurrent eventsRandom articleDonate to WikipediaWikipedia store Interaction HelpAbout WikipediaCommunity portalRecent changesContact page Tools What links hereRelated changesUpload fileSpecial pagesPermanent linkPage informationWikidata itemCite this page Print/export Create a bookDownload as PDFPrintable version In other projects Wikimedia Commons Languages БашҡортсаČeštinaDanskDeutschΕλληνικάEspañolEsperantoFrançais한국어ItalianoMagyarNederlands日本語NorskPolskiPortuguêsRomânăРусскийSimple EnglishSlovenčinaSuomiSvenskaTagalogTürkçeУкраїнськаTiếng Việt中文 Edit links This page was last edited on 9 January 2018, at 10:23. Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization. Privacy policy About Wikipedia Disclaimers Contact Wikipedia Developers Cookie statement Mobile view (window.RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgPageParseReport":{"limitreport":{"cputime":"0.216","walltime":"0.297","ppvisitednodes":{"value":726,"limit":1000000},"ppgeneratednodes":{"value":0,"limit":1500000},"postexpandincludesize":{"value":29141,"limit":2097152},"templateargumentsize":{"value":998,"limit":2097152},"expansiondepth":{"value":11,"limit":40},"expensivefunctioncount":{"value":2,"limit":500},"entityaccesscount":{"value":1,"limit":400},"timingprofile":["100.00% 228.644 1 -total"," 40.27% 92.082 1 Template:Reflist"," 28.71% 65.645 6 Template:Cite_web"," 19.36% 44.275 1 Template:Fact"," 16.18% 36.988 1 Template:Fix"," 13.23% 30.259 1 Template:Commons_category"," 12.53% 28.653 1 Template:Further_information"," 11.32% 25.876 3 Template:Category_handler"," 5.33% 12.184 1 Template:Barcodes"," 4.46% 10.200 1 Template:Ja"]},"scribunto":{"limitreport-timeusage":{"value":"0.082","limit":"10.000"},"limitreport-memusage":{"value":3191678,"limit":52428800}},"cachereport":{"origin":"mw1266","timestamp":"20180116163345","ttl":1900800,"transientcontent":false}}});});(window.RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgBackendResponseTime":75,"wgHostname":"mw1257"});});

International_Article_Number_(EAN) - Photos and All Basic Informations

International_Article_Number_(EAN) More Links

EnlargeBarcode SymbologyGlobal Trade Item NumberGS1Point Of SaleUniversal Product CodeGeorge J. LaurerList Of GS1 Country CodesEAN-8EAN 2EAN 5Manufacturer's Suggested Retail PriceList Of GS1 Country CodesWikipedia:Citation NeededISBNBooklandISMNISSNISBNGlobal Location NumberGlobal Trade Item NumberSerial Shipping Container CodeEAN-13EAN-8EnlargeEnlargeEnlargeEnlargeParity BitNegationEnlargeEnlargeEAN-8Electronic Data InterchangeEuropean Article Numbering-Uniform Code CouncilGlobal Electronic Party Information RegisterGS1GTINUniversity Of MarylandGS1PerlCPANTemplate:BarcodesTemplate Talk:BarcodesBarcodeKarTrakCode 11Code 39Code 93Code 128CodabarInternational Article Number (EAN)GS1 DataBarITF-14Interleaved 2 Of 5MSI BarcodePatch CodePharmacodePlessey CodeTelepenUniversal Product CodeUniversal Product CodeMaxiCodeMailCPC Binary BarcodeFacing Identification MarkPostBarPOSTNETRM4SCCIntelligent Mail BarcodePostal Alpha Numeric Encoding TechniqueGS1 DataBarPDF417Matrix (mathematics)Aztec CodeData MatrixSemacodeMaxiCodeQR CodePolar Coordinate SystemMaxiCodeShotCodeHigh Capacity Color BarcodeBarcode ReaderBarcode PrinterRadio-frequency IdentificationBokodeSupply Chain ManagementObject HyperlinkingMatrix (mathematics)Mobile TaggingCueCatHelp:CategoryCategory:BarcodesCategory:IdentifiersCategory:Unique IdentifiersCategory:CS1 German-language Sources (de)Category:All Articles With Unsourced StatementsCategory:Articles With Unsourced Statements From March 2017Category:Articles With Japanese-language External LinksDiscussion About Edits From This IP Address [n]A List Of Edits Made From This IP Address [y]View The Content Page [c]Discussion About The Content Page [t]Edit This Page [e]Visit The Main Page [z]Guides To Browsing WikipediaFeatured Content – The Best Of WikipediaFind Background Information On Current EventsLoad A Random Article [x]Guidance On How To Use And Edit WikipediaFind Out About WikipediaAbout The Project, What You Can Do, Where To Find ThingsA List Of Recent Changes In The Wiki [r]List Of All English Wikipedia Pages Containing Links To This Page [j]Recent Changes In Pages Linked From This Page [k]Upload Files [u]A List Of All Special Pages [q]Wikipedia:AboutWikipedia:General Disclaimer