Select the correct length
In the EAN generator, EAN-13 accepts 12 digits to add a check digit, or 13 to verify. The check digit uses the same modulus-10 method as UPC-A, over the first 12 digits. For 590123412345 that value is 7. EAN-8 uses 7 digits, or 8 including the check digit, for assigned short identifiers. Do not chop an EAN-13 down to eight digits and treat it as EAN-8. Wrong EAN-8 length shows “Enter 7 digits, or 8 including the check digit.”