Barcode Lab

GS1 GTIN check digit & UPC/EAN validator

Calculate a check digit for one product code or audit a mixed batch of GTIN-8, UPC-A, EAN-13 and GTIN-14 codes.

Jump to results ↓

Check digit tools

Calculate a check digit

Entering spaces or hyphens is optional. Keep leading zeros.

Enter digits to calculate a check digit.

Validate a batch

Up to 500 nonblank lines. Use a fixed format to catch missing or extra digits.

Batch results

Unique valid
—
Needs review
—
Duplicates
—

Preparing batch…

Frequently asked questions

How is the GS1 check digit calculated?

Starting with the rightmost digit of the payload, alternate weights of 3 and 1. Add the products. The check digit is the amount needed to reach the next multiple of ten, or zero when the sum is already a multiple of ten.

What is in the cleaned CSV?

The CSV keeps the first checksum-passing code for each canonical GTIN-14. It includes the cleaned code in its original format and the 14-digit zero-padded value. Import both GTIN columns as text to preserve leading zeros. Review suggested corrections before re-entering them.

Does a passing checksum confirm GS1 assignment?

A passing checksum confirms the digit count and Mod-10 arithmetic. GS1’s registry can help verify a number’s assignment and ownership.

GS1 General Specifications