GTIN checker

Check GTIN length and check digits individually or by row in a pasted list. Your entries stay in this browser.

Your product numbers

Input mode

Check a complete number or calculate its missing final digit.

Enter 13 digits. Leading zeroes stay in place.

Check a list

One number per line, up to 1,000 rows and 100,000 characters.

Single-number result

Format passes

Expected check digit

1

Number with expected digit

4006381333931

The result checks length and arithmetic. It does not confirm GS1 registration.

Length and check digit pass.

Paste a list to check each row.

How the GTIN check digit works

The GTIN check digit is the final digit, calculated from all the digits before it. Starting at the rightmost body digit, multiply by 3, then 1, alternating as you move left. Add the weighted values.

For the example body 400638133393, the weighted sum is 89. The next multiple of 10 is 90, so the check digit is 1. The completed number is 4006381333931. Changing its final digit to 2 makes the check fail.

The modulo rule is (10 - (weighted sum mod 10)) mod 10. The final modulo makes the check digit 0 when the sum is already a multiple of 10. This follows the calculation used by GS1’s check-digit calculator.

Check GTIN-8, GTIN-12, GTIN-13 and GTIN-14

Select the format supplied with your product data. A complete GTIN has 8, 12, 13 or 14 digits. Calculating its missing check digit requires 7, 11, 12 or 13 digits respectively.

GTIN-8 matches the number carried in EAN-8, GTIN-12 in UPC-A and GTIN-13 in EAN-13. This checker treats an eight-digit input as GTIN-8. It does not expand compressed UPC-E numbers.

Leading zeroes are part of the number. For example, GTIN-12 036000291452 passes with check digit 2. If a spreadsheet removes its first zero, the resulting 11 digits fail the GTIN-12 length check.

The selected format and mode apply to every row. Spaces around a number are removed. Internal spaces and blank rows cause errors.

A valid number and a registered product

A mathematically valid GTIN has the selected length and the expected final digit. That result cannot confirm allocation to a company or the existence of a product in the live GS1 registry.

For example, an all-zero number passes the arithmetic rule, but that alone supplies no registration evidence. Confirm product identity separately when you check supplier data. Read the guide to GTIN product identifiers for their meaning and use.