This site checks an EAN13 code for validity. The last digit (check digit) is optional to enter. If you don't enter the check digit, it's caluclated and added.