Skip to content

GTIN validator for lists and CSV files

Paste a column of UPC, EAN or GTIN-14 numbers, or open a CSV. Every row is checked against the GS1 check digit, and each wrong one comes with its likely fix. Nothing is uploaded.

Paste a spreadsheet column or whole rows: the column with the numbers is found for you. Up to 20,000 rows, checked on your device.

Valid
3
Not valid
4
Duplicates
1
Result for each row of the list
LineNumberResultWhat to fix
15901234123457ValidGTIN-13 (EAN-13)
2036000291452ValidGTIN-12 (UPC-A)
396385074ValidGTIN-8
45901234123475Wrong check digitGTIN-13 (EAN-13)Check digit should be 1 (5901234123471). Also valid if digits 7 and 8 were swapped: 5901231423475. If the check digit is missing, the GTIN-14 is 59012341234750.
536000291452Wrong length11 digits: a GTIN has 8, 12, 13 or 14. Valid as GTIN-12 (UPC-A) with the leading zeros back: 036000291452. Or, if the check digit is missing, the GTIN-12 (UPC-A) is 360002914522.
64006381333932Wrong check digitGTIN-13 (EAN-13)Check digit should be 1 (4006381333931). If the check digit is missing, the GTIN-14 is 40063813339321.
70036000291452DuplicateGTIN-13 (EAN-13)Same number as line 2.
85.90123E+12Damaged by spreadsheetA spreadsheet turned this number into scientific notation, so its last digits are lost. Format the column as text and export again.

What each result means

Results of the GTIN validator
ResultWhat it meansWhat the report suggests
ValidThe length is 8, 12, 13 or 14 digits and the last digit is the right GS1 check digit.Nothing to fix.
Wrong check digitThe length fits, but the last digit does not match the others.The check digit the other digits ask for, and any swap of two neighbouring digits that makes the number valid.
Wrong lengthThe number has a digit count no GTIN has.The number with its leading zeros back, or with a missing check digit added, when that gives a valid GTIN.
Damaged by spreadsheetThe cell holds something like 5.90123E+12: the spreadsheet rounded the number and the last digits are gone.Format the column as text in the source file and export it again.
DuplicateThe same GTIN appears earlier in the list, also when one is written with 12 digits and the other with 13 or 14.The line of the first one.

Every GTIN ends in a check digit worked out from the digits before it with the method GS1 publishes: multiply them by 3 and 1 in turn, starting next to the check digit, add the results, and the check digit is what brings the sum up to the next multiple of ten. The validator runs that calculation on each row. To see it digit by digit for one number, use the check digit calculator.

The suggestions are the mistakes that happen most with product lists. A typed number often has two neighbouring digits swapped, and the check digit catches that unless the two digits differ by five. A spreadsheet drops the zeros at the start of a UPC-A, leaving 11 digits or fewer. And some exports leave the check digit out. A suggestion is a number that passes the check, not proof of what the number was meant to be: confirm it against the product or the supplier’s list.

A valid check digit only shows the number is consistent. It does not show that the GTIN is registered to a product or a company; that record is kept by GS1 and the brand that owns the number.

Before you upload a product feed

Marketplaces and shopping feeds reject or hold back products whose GTIN does not pass the check digit. Paste the GTIN column of your feed here first, download the problems as a CSV, fix them in your source file, and run the list again until the “Not valid” count is zero. The report keeps the line number of every row, so you can find it in the original file.

When the numbers are right, the batch generator draws all of them as EAN-13, UPC-A or ITF-14 barcodes on label sheets, and the scanner reads a printed sample back.

Questions about validating GTINs

How do I validate many GTINs at once?

Paste them one per line, or open a CSV file. Each row gets a result: valid, wrong check digit, wrong length, damaged by a spreadsheet, or duplicate. You can then download the whole report or only the rows with problems.

Which numbers does it accept?

GTIN-8 (EAN-8), GTIN-12 (UPC-A), GTIN-13 (EAN-13) and GTIN-14, with their check digit. An 18-digit SSCC is checked too. Spaces and dashes inside a number are ignored.

Why are my UPCs one digit short?

A spreadsheet stores a UPC as a number and drops the zeros at the start, so a 12-digit UPC-A that begins with 0 arrives with 11 digits. The report shows the number with the zeros back when that passes the check. To stop it at the source, format the column as text before pasting the numbers.

What is 5.90123E+12 doing in my list?

It is a long number shown in scientific notation by a spreadsheet. When a file is saved that way the last digits are lost and cannot be worked out again. Format the column as text or as a number with no decimals, then export the file again.

Is a UPC-A the same GTIN as the 13-digit number with a 0 in front?

Yes. A GTIN keeps its value when zeros are added on the left, so 036000291452 and 0036000291452 are one GTIN. The validator counts them as duplicates.

Does it tell me if a GTIN belongs to a real product?

No. It checks the length and the check digit, which catches typing and export mistakes. Whether a GTIN is assigned to a product is recorded by GS1 and by the brand that owns it.

Is my list sent anywhere?

No. The list is read and checked in your browser, and the report is made on your device. Nothing is put in the page address.

Sources