Ean 13 _ Symbology, Specification, Explication, Checksum

download Ean 13 _ Symbology, Specification, Explication, Checksum

of 3

Transcript of Ean 13 _ Symbology, Specification, Explication, Checksum

  • 7/27/2019 Ean 13 _ Symbology, Specification, Explication, Checksum

    1/3

    14/09/13 EAN 13 : SYMBOLOGY, SPECIFICATION, EXPLICATION, CHECKSUM

    barcode-coder.com/en/ean-13-specification-102.html 1/3

    HOME SPECIFICATIONS SOURCE CODE

    Specifications | Ean 13 symbology specification

    Rechercher

    Saturday September 14 2013

    EAN 13 BARCODE

    Format of the EAN 13

    Length Type checksum

    13 digits numeric yes

    The EAN 13 is com posed by 12 data digits + 1 checksum digit.

    Calculating the EAN 13 checksum

    Calculating the EAN 13 checksum digit is very sim ple :

    The digit are used from right to left

    Calculate the sum of the numbers of odd and even positions

    Odd : 1 + 3 + 5 + 7 + 9 + 1 = 26Even : 2 + 4 + 6 + 8 + 2 = 22

    EAN 13 checksum formula :

    ( 10 - [ (3 * Odd + Even) modulo 10 ] ) modulo 10

    Thus, the example :

    (10 - [ (3 * 26 + 22) module 10 ] ) modulo 10

    (10 - [ (78 + 22) module 10 ] ) modulo 10

    (10 - [ (100) module 10 ] ) modulo 10

    (10 - [ 0 ] ) modulo 10

    (10 - 0) modulo 10

    10 modulo 10

    0

    So the checksum of 210987654321 is 0

    EAN 13 checksum generator :

    EAN 13 mess age : Checksum :

    Binary sequence of EAN 13 barcode

    Start

    A start sequence s tarts the barcode : 101

    The 13 digits will be s eparated into 2 parts, nam ely the left part from the 1st au 7 th digit and the right part from the

    8th au 13th digit

    Part #1

    The first part is encoded according to the following table :

    digit sequence

    0 000000

    1 001011

    2 001101

    3 001110

    http://barcode-coder.com/en/ean-13-specification-102.htmlhttp://barcode-coder.com/en/barcode-specifications-list-100.html
  • 7/27/2019 Ean 13 _ Symbology, Specification, Explication, Checksum

    2/3

    14/09/13 EAN 13 : SYMBOLOGY, SPECIFICATION, EXPLICATION, CHECKSUM

    barcode-coder.com/en/ean-13-specification-102.html 2/3

    4 010011

    5 011001

    6 011100

    7 010101

    8 010110

    9 011010

    Thus for each bit of the first digit, a sequence of 6 "0" or "1" will be used to encode the 6 next digits according to the

    following tables :

    digit table 0 table 1

    0 0001101 0100111

    1 0011001 0110011

    2 0010011 0011011

    3 0111101 01000014 0100011 0011101

    5 0110001 0111001

    6 0101111 0000101

    7 0111011 0010001

    8 0110111 0001001

    9 0001011 0010111

    For example, the first digit is 2, the tables used for the digit 2 to 7 will be defined by the sequence 001101:

    The "1" will result from table "0"

    The "0" will result from table "0"

    The "9" will result from table "1"

    ...

    Part #1 will be0011001 0001101 0010111 0001001 0111011 0000101

    Intermediate

    An intermedi ate sequence s epara te the 2 parts : 01010

    Part #2

    The second pa rt is encoded according to the following table :

    digit table 2

    0 1110010

    1 1100110

    2 1101100

    3 1000010

    4 1011100

    5 1001110

    6 1010000

    7 1000100

    8 1001000

    9 1110100

    Part #2 will be 1001110 1011100 1000010 1101100 1100110 1110010

    Stop

    A stop s equence ends the barcode : 101

    Summary of the sequence of the EAN 13

    start : 101

    part #1

    center : 01010

    part #2

    stop : 101

    Graphical representation of the EAN 13 barcode

    Each element of the binary sequence is represented by a space of equal width, it is a "1" or "0". The "1" are

    represented by spaces filled and "0" with empty spaces.

    Online EAN 13 barcode generator

  • 7/27/2019 Ean 13 _ Symbology, Specification, Explication, Checksum

    3/3

    14/09/13 EAN 13 : SYMBOLOGY, SPECIFICATION, EXPLICATION, CHECKSUM

    barcode-coder.com/en/ean-13-specification-102.html 3/3

    Please fill in the code : 210987654321

    2109876543210

    Barcode coder - Ressources for developer

    The i nformation presented on the Web site are provided without any guarantee of any kind that it is, explicit or impli cit