Free tool

GS1 check digit calculator

Enter a GTIN, GLN or SSCC without its last digit to get the check digit, or enter the whole number to test it. The working is shown step by step. The calculation runs entirely in your browser.

Calculate a check digit or test a number

Number type

Type 12 digits to get the check digit, or all 13 digits to test a number. Spaces and hyphens are ignored.

01 The method

How a GS1 check digit is worked out.

One method covers GTIN-8, GTIN-12, GTIN-13, GTIN-14, GLN and SSCC. It catches a mistyped digit before the number reaches a database. GS 7.9.1, 1.3.4

  1. Leave out the check digit. Work with the digits that come before it: 7 for a GTIN-8, 17 for an SSCC.

  2. Multiply by 3 and 1, from the right. The digit next to the check digit is multiplied by 3, the one before it by 1, then 3, 1 and so on to the left.

  3. Add the products.

  4. Subtract the sum from the nearest multiple of ten that is equal or higher. The result is the check digit. When the sum is already a multiple of ten, the check digit is 0.

Count from the right, not from the left. The weights follow the right-hand end of the number, so the same first digit is multiplied by 3 in one type and by 1 in another. Both examples below are printed in the GS1 General Specifications.

Example 1: an SSCC-18

Seventeen digits before the check digit, so the first digit on the left is multiplied by 3.

37610425002123456

  1. 3 × 3 = 9
  2. 7 × 1 = 7
  3. 6 × 3 = 18
  4. 1 × 1 = 1
  5. 0 × 3 = 0
  6. 4 × 1 = 4
  7. 2 × 3 = 6
  8. 5 × 1 = 5
  9. 0 × 3 = 0
  10. 0 × 1 = 0
  11. 2 × 3 = 6
  12. 1 × 1 = 1
  13. 2 × 3 = 6
  14. 3 × 1 = 3
  15. 4 × 3 = 12
  16. 5 × 1 = 5
  17. 6 × 3 = 18

The products add up to 101. The nearest multiple of ten that is equal or higher is 110. 110 − 101 = 9.

376104250021234569

Example 2: a GLN

Twelve digits before the check digit, so the first digit on the left is multiplied by 1.

952123450001

  1. 9 × 1 = 9
  2. 5 × 3 = 15
  3. 2 × 1 = 2
  4. 1 × 3 = 3
  5. 2 × 1 = 2
  6. 3 × 3 = 9
  7. 4 × 1 = 4
  8. 5 × 3 = 15
  9. 0 × 1 = 0
  10. 0 × 3 = 0
  11. 0 × 1 = 0
  12. 1 × 3 = 3

The products add up to 62. The nearest multiple of ten that is equal or higher is 70. 70 − 62 = 8.

9521234500018

02 The numbers

Which numbers carry a check digit.

The last digit of each of these GS1 numbers is its check digit.

Length and use of each number type
TypeDigitsBefore the check digitIdentifies
GTIN-887A trade item, which is anything priced, ordered or invoiced
GTIN-121211A trade item
GTIN-131312A trade item
GTIN-141413A trade item
GLN1312A party or a physical location
SSCC-181817A logistic unit, such as a pallet

Sources: GS1 General Specifications, Release 26.0, ratified January 2026: sections 1.3.4 (GLN), 3.3.1 (SSCC), 3.3.2 (GTIN), 7.9.1 and Tables 7-8 and 7-9 (the method), and section 1.4.2 (the GLN in Example 2). The SSCC in Example 1 is GS1's own, from Table 7-9. Trade item definition: GS1 Logistic Label Guideline, Release 1.3, section 4.1.

NoteA valid check digit shows that a number was composed correctly. It does not show that the number was ever issued to anyone.