Skip to content

Check Digit Calculator

Work out the last digit of any UPC, EAN or GTIN.

Without the check digit (11 digits) to calculate it, or all 12 to check it.

Checked in your browser. Nothing is uploaded.

Check digit2

Digit03600029145
× Weight31313131313
= Product0318000693415

Sum of the products: 58. Round 58 up to 60: 60 − 58 = 2.

GS1 rule: weights 3 and 1 alternate, starting with 3 on the digit next to the check digit, for every length.

More Barcode Tools

All tools

How to use the check digit calculator

Three steps, all in your browser.

  1. 1

    Enter a number

    Type or paste a number. Spaces and dashes are ignored.

  2. 2

    Read the result

    See whether the number is valid, with the working shown.

  3. 3

    Copy the result

    Copy the corrected or converted number in one click.

Check Digit Calculator: what to know

Every GS1 number, from an EAN-8 to an 18-digit SSCC, ends with a check digit calculated from the digits before it. The calculator works it out for any length and shows each step: every digit, its weight of 3 or 1, the products, the total and how far that is from the next multiple of 10.

The weights start at 3 on the rightmost digit before the check digit and alternate leftwards. That's why one rule covers UPC-A, EAN-13, GTIN-14 and SSCC alike: a leading zero adds nothing to the sum, so the check digit of a UPC and of the same number written as an EAN-13 are the same.

Paste a full number to check whether its last digit is right, or the number without its check digit to calculate it. A wrong check digit usually means a typo, so fix the number at its source rather than just changing the last digit.

Popular uses

  • Completing a UPC or EAN from your item numbering
  • Building GTIN-14s for cases and SSCCs for pallets
  • Checking product numbers in a spreadsheet before import
  • Learning how barcode check digits work

Tips for the best result

  • Don't change only the check digit to make a number valid; a mismatch usually means another digit is wrong.
  • Spaces and dashes are ignored, so you can paste numbers as they're printed.
  • ISBN-10s use a different rule (mod 11, where X means 10); choose ISBN-10 as the number type to see it worked out.

Read how JustYourBarcode works and our privacy details. Numbers, pictures, CSV files and camera frames are processed in your browser and are never sent to our server. A barcode doesn't register a product number: retail UPC and EAN numbers come from GS1.

Frequently asked questions

Starting from the rightmost digit before the check digit, multiply digits alternately by 3 and 1, add them up, and subtract the total from the next multiple of 10. For the UPC 03600029145 the weighted sum is 58, so the check digit is 2.

It catches mistakes. If one digit is misread or mistyped, or most pairs of neighbouring digits are swapped, the check digit no longer matches and the scanner or system rejects the number instead of selling the wrong product.

No. Barcodes are drawn in your browser, and camera frames, pictures and CSV files are processed on your device. Nothing is stored and nothing is sent to our server, and it's all gone when you close or reload the page.

No. A barcode is a picture of a number. Retail product numbers (GTINs such as UPC and EAN) are licensed from GS1, which links them to your company; making a barcode image here doesn't assign or register a number. Retailers and marketplaces may check numbers against GS1's records.

Yes. Every tool is free with no sign-up and no limits on use, including commercial use of the barcodes you make. Clearly labeled ads keep it that way.

Yes. The tools work in any modern browser on phones, tablets and computers, and the scanner uses your phone's camera.