Skip to content

GS1 Check Digit Calculator

Calculate or validate the check digit on any UPC, EAN, GTIN-14, SSCC or GLN, see the maths, or check 10,000 numbers from a CSV. Free, no signup.

Runs in your browser. Nothing you enter or paste is sent to OrderSync.

Try a sample:

Leave off the last digit to calculate it, or enter the full number to check it. Spaces and dashes are fine.

Result

Check digit calculated for a GTIN-12 (UPC-A)

614141000036

The check digit is 6, so the full GTIN-12 (UPC-A) is 614141000036.

GTIN-14 form (for EDI and databases): 00614141000036

How the check digit is worked out

  1. 6x318
  2. 1x11
  3. 4x312
  4. 1x11
  5. 4x312
  6. 1x11
  7. 0x30
  8. 0x10
  9. 0x30
  10. 0x10
  11. 3x39

Multiply the digits by 3 and 1 alternately, starting with 3 on the rightmost digit. The products add up to 54. The next multiple of ten is 60, and 60 minus 54 is 6, the check digit.

How GS1 Numbers Work

A GS1 number (a GTIN on a product, an SSCC on a shipment, a GLN for a location) is your GS1 Company Prefix, a reference you assign, and a check digit. The check digit is the last digit. It is worked out from all the others with the mod 10 method in section 7.9 of the GS1 General Specifications, so a scanner or an EDI system can catch a mistyped or misread number before it reaches an order.

GS1 number types, lengths and structure
NumberDigitsIdentifiesBuilt from
GTIN-12 (UPC-A)12Retail products in North America, printed as a UPC-A barcode.Company prefix + item reference + check digit
GTIN-13 (EAN-13)13Retail products outside North America, printed as EAN-13.Company prefix + item reference + check digit
GTIN-1414Cases and inner packs, printed as ITF-14 or GS1-128.Indicator digit + GTIN of the unit (without its check digit) + new check digit
GTIN-8 (EAN-8)8Small retail items with no room for a full barcode.GS1-8 prefix + item reference + check digit (issued one by one by GS1)
SSCC-1818One shipped carton or pallet, printed as GS1-128 with AI (00).Extension digit + company prefix + serial reference + check digit
GLN13A company or location: ship-to, bill-to, a store or a dock.Company prefix + location reference + check digit

Where Bad Check Digits Come From

  • Spreadsheets dropping leading zeros. Excel turns 036000291452 into 36000291452, which then reads as an 11-digit number missing its check digit. Format the column as text, or keep the GTIN-14 form.
  • Building a case GTIN by hand. Adding a 1 in front of a UPC without recalculating the last digit gives an invalid GTIN-14. The UPC to GTIN-14 tab does it properly.
  • Retyped numbers. A swapped pair of digits changes the check digit, so it is caught. That is the point of it.

In X12 EDI the same numbers travel in the PO1 and LIN segments (qualifiers UP for UPC, UK for GTIN-14, EN for EAN-13) and in MAN*GM for SSCCs on an 856. The EDI Inspector checks every one of them in a pasted file, the SSCC label generator builds carton numbers and labels, and the ITF-14 generator draws case barcodes. GS1 explains the method with a worked example on its how to calculate a check digit page.

GTINs, SSCCs and GLNs must be built from a GS1 Company Prefix licensed to your company by your local GS1 member organisation, such as GS1 US or GS1 UK. Our examples use 0614141, the prefix GS1 uses in its own documentation. OrderSync builds these tools independently of GS1.

Frequently Asked Questions

How is a GS1 check digit calculated?

Take every digit except the last, and starting from the rightmost one multiply them by 3, 1, 3, 1 and so on. Add the products, round the total up to the next multiple of ten, and subtract. For 629104150021 the products add up to 57, the next ten is 60, so the check digit is 3 and the full GTIN-13 is 6291041500213. The same method works for UPC, EAN, GTIN-14, SSCC and GLN.

What is the check digit of a UPC?

It is the 12th and last digit of a UPC-A. Enter the first 11 digits to calculate it, or all 12 to check it. A UPC with a wrong last digit will not scan, and retailers reject purchase orders, invoices and ASNs that carry one.

Can I check a whole list of UPCs or GTINs at once?

Yes. Open the Bulk check tab and paste a column or open a CSV export of your item master, up to 10,000 rows. Each number is checked in your browser and you can download the results as CSV or Excel with the corrected number and GTIN-14 for every row.

How do I turn a UPC into a GTIN-14 for a case?

Put an indicator digit (1 to 8) in front of the UPC padded to 13 digits, drop the old check digit and calculate a new one. UPC 614141123452 with indicator 1 becomes GTIN-14 10614141123459. Use the UPC to GTIN-14 tab, which shows each step.

Why does my GTIN-14 start with 00?

Databases and EDI documents often store every GTIN as 14 digits. A 12-digit UPC is padded with two leading zeros and a 13-digit EAN with one, so 036000291452 is stored as 00036000291452. The number and its check digit do not change.

Does a valid check digit mean the barcode is registered to me?

No. The check digit only proves the number was typed correctly. GTINs, SSCCs and GLNs must be built from a GS1 Company Prefix licensed to your company by your GS1 member organisation. This calculator does not look up who owns a number.

Is my data uploaded?

No. Every calculation, including bulk CSV files, runs in your browser. Nothing you type or open is sent to OrderSync.