Map Extract
Free tool

GS1 check digit calculator

Paste a column of product, case or pallet numbers and add the missing check digit to each, or confirm the last digit of numbers you already have. Every line is named by key type, padded to GTIN-14 where it applies and ready to export.

Runs in your browser. Nothing you enter is uploaded.

Example: checking a supplier's product list

A fictional wholesaler receives a spreadsheet of barcodes from a new supplier and pastes the column in with Check the last digit selected. One number has a typing error in its final digit. The note explains the correct digit and also covers the possibility that the line was meant as the first 13 digits of a 14-digit case number.

Catching this before the list goes into the stock system saves a till that refuses to scan a line, or worse, a scan that matches the wrong product.

Input
5012345678900
5012345678901
Result
5012345678900  Valid, GTIN-13 or GLN       The check digit is correct.
5012345678901  Wrong digit, GTIN-13 or GLN  The last digit should be 0, not 1. If this is the first 13 digits of a GTIN-14, its check digit is 7.

Lines: 2   Valid: 1   Digits added: 0   Wrong: 1

Using the calculator

  1. Paste the numbers

    One per line. Spaces and hyphens are ignored, so numbers copied from packaging or a PDF work as they are.

  2. Tell it what each line is

    Add a check digit treats every line as missing its last digit. Check the last digit treats every line as complete. Work it out decides from the length, which is convenient but can mislead, as explained below.

  3. Try a preset if unsure

    EAN-13 from 12 digits, Check a list of barcodes, SSCC for pallets and GTIN-14 for outer cases each load sample numbers with the right mode.

  4. Read the table

    Each row shows the input, the result with the key type, the full number and a note. The summary counts valid lines, digits added and wrong digits.

  5. Export or copy

    Download CSV or Excel including GTIN-14 and notes, download JSON, or use Copy full numbers to paste the corrected column straight back into your sheet.

Which key is which

All GS1 keys use the same modulo 10 check digit, so one calculator covers them. The key name is assigned from the length of the finished number.

DigitsKeyTypical use
8GTIN-8Very small retail packs
12GTIN-12UPC-A barcodes, mainly North America
13GTIN-13 or GLNEAN-13 retail barcodes, or a Global Location Number for a site or company
14GTIN-14Outer cases and trade units
18SSCCPallets and shipping units

Questions people ask

How do you calculate a GS1 check digit?

Working from the right-hand end of the number without its check digit, multiply the digits alternately by 3 and 1, starting with 3. Add the results, then subtract the total from the next multiple of ten. The result, from 0 to 9, is the check digit. The same method works for every GS1 key length.

What is GTIN-14 padding?

Shorter GTINs can be written as 14 digits by adding leading zeros, which databases and EDI messages often require so every product number has the same length. The table shows that form for valid and completed numbers. Padding does not change the check digit, because leading zeros add nothing to the calculation.

What is an SSCC?

The Serial Shipping Container Code is an 18-digit GS1 number that identifies one logistics unit, such as a pallet, from dispatch to delivery. It starts with an extension digit and your company prefix, followed by a serial reference and a check digit. The calculator adds or checks that final digit for a list of them.

Does a correct check digit mean the barcode is registered?

No. The check digit only proves the number is internally consistent, so a scanner can catch misreads and typing errors. Whether the number belongs to a real product and company is recorded by GS1; GS1's own lookup tools can confirm who a number is licensed to.

Where your data goes

The calculation happens on this page. Your list of numbers is not uploaded to Map Extract or anywhere else, and the exports are built in your browser.

Checked against the tool on

Top