Free tool
Free check digit calculator and GTIN converter
Every UPC, EAN, GTIN-14 and SSCC ends in a check digit calculated from the digits before it. Calculate a missing one, catch a typo before it reaches a print run, and convert a number between its UPC-E, UPC-A, EAN-13 and 14-digit forms.
- Free to use
- No sign-up
- No watermark
- Personal and commercial use
- Runs in your browser
Calculate or verify a check digit
Type a number without its check digit to calculate it, or a complete number to validate it.
- Sum = 78
- Next multiple of 10 = 80
- Check digit = 2
- As a GTIN-12 (UPC-A) without its check digit, the check digit is 2
614141123452
A correct check digit only shows the number is well formed, not who it belongs to. To see which company a GTIN or SSCC is licensed to, look it up in Verified by GS1. How to check who owns a UPC
Show the math
Weights alternate 3, 1, 3, 1… starting from the rightmost digit before the check digit. Add the products, then find what brings the sum up to the next multiple of 10.
| Digit | 6 | 1 | 4 | 1 | 4 | 1 | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Weight | ×3 | ×1 | ×3 | ×1 | ×3 | ×1 | ×3 | ×1 | ×3 | ×1 | ×3 |
| Product | 18 | 1 | 12 | 1 | 12 | 1 | 3 | 2 | 9 | 4 | 15 |
Sum = 78. Next multiple of 10 = 80. Check digit = 2.
Convert UPC-E, UPC-A, EAN-13 and GTIN-14
Read as UPC-A without check digit; check digit 4 added.
- UPC-A (GTIN-12)
042100005264 - UPC-E (zero-suppressed)
04252614 - EAN-13 (GTIN-13)
0042100005264 - GTIN-14 (14-digit form for databases)
00042100005264
These are the same number written at different lengths with leading zeros — not new numbers. A GTIN-14 with an indicator digit other than 0 identifies a case or pack and must be assigned, not converted.
- Free to use
- No sign-up
- No watermark
- Personal and commercial use
- Runs in your browser
How the calculation works
GS1 numbers all use the same modulo-10 method. Starting from the rightmost digit before the check digit, multiply the digits alternately by 3 and 1, add the results, and pick the digit that brings the total up to the next multiple of 10. Open “Show the math” above to see every step for your number. The check digit guide works through a UPC-A and an EAN-13 by hand and explains which mistakes the method catches.
Which lengths this calculator understands
| Digits with check digit | Key | Where you see it |
|---|---|---|
| 8 | GTIN-8 | EAN-8 barcodes on very small packages |
| 12 | GTIN-12 | UPC-A barcodes (and UPC-E, which compresses some of them) |
| 13 | GTIN-13 | EAN-13 barcodes |
| 14 | GTIN-14 | ITF-14 and GS1-128 barcodes on cases and cartons |
| 17 | GSIN | Shipment identification |
| 18 | SSCC | Pallet and parcel labels (GS1-128, AI 00) |
Some lengths are ambiguous. Twelve digits can be a complete UPC-A or an EAN-13 missing its check digit, so the calculator shows both readings.
What you can type into each tool
- Calculator. Digits only; spaces and dashes are ignored, so you can paste a number as it is printed. With 7, 11, 12, 13, 16 or 17 digits it calculates the missing check digit; with 8, 12, 13, 14, 17 or 18 it tests the last one. Three lengths fit both cases and get both answers: 12 digits (a complete UPC-A, or an EAN-13 without its check digit), 13 (a complete EAN-13, or a GTIN-14 without its check digit) and 17 (a complete GSIN, or an SSCC without its check digit). Read the line that matches what you meant to type.
- Show the math. Lists every digit, its weight and the product, then the sum and the next multiple of 10, so you can check a number by hand or show someone else where a typo is.
- Converter. Takes a UPC-E (8 digits starting with 0), a UPC-A (11 or 12 digits), an EAN-13 or a GTIN-14, and prints every form the number has. A dash means that form doesn't exist, and “not compressible” means the UPC-A has no UPC-E version.
Worked example: GS1's own number
GS1's manual check digit page works through the 12 digits 629104150021. Type them into the calculator:
- Read as an EAN-13 without its check digit, the weights run 1, 3, 1, 3 from the left, because they start with 3 on the rightmost digit. The products add up to 57, the next multiple of 10 is 60, and the check digit is 3. The full EAN-13 is 6291041500213, the same answer GS1 gives.
- Read as a complete UPC-A, the same 12 digits fail: the check digit for 62910415002 is 4, not 1. That is the second line, and it is why you should know which length you meant.
- Paste 6291041500213 into the converter. It starts with 6, not 0, so it has no UPC-A or UPC-E form; its 14-digit database form is 06291041500213.
The same calculation for other GS1 keys
The GS1 General Specifications use one algorithm for every fixed-length numeric GS1 key with a check digit, including the GLN and others. A 13-digit GLN is therefore checked correctly here, even though the calculator labels 13 digits as a GTIN-13. Their worked example for an 18-digit number starts from 37610425002123456 and arrives at check digit 9. Type those 17 digits and the SSCC line shows 9, while the GSIN reading fails.
Common mistakes and how to avoid them
- Losing a leading zero in a spreadsheet. Microsoft Support says Excel removes leading zeros and keeps only 15 digits of precision for long numbers. The UPC-A 042100005264 becomes 42100005264, which this calculator reads as 11 digits without a check digit, and an 18-digit SSCC loses its last digits. Format the column as text before you paste.
- Treating a case code as a conversion. Padding a UPC-A with zeros gives the same item at 14 digits. A case or pack needs a GTIN of its own, often a GTIN-14 with an indicator digit from 1 to 8, chosen by the company that assigns the number (GS1 reserves 9 for variable-measure items). In GS1's example the item 0614141123452 and a grouping with indicator 1, 10614141123459, are different numbers with different check digits.
- Expecting a UPC-A from any EAN-13. Only an EAN-13 that starts with 0 has one.
- Taking a valid check digit as proof of ownership. See the next section.
A correct check digit is not a licensed number
The check digit only shows that the digits are internally consistent. It says nothing about who the number belongs to. For products sold at retail, the company prefix inside the number must be licensed to your business. GS1's free Verified by GS1 lookup shows which company a GTIN, GLN or SSCC is licensed to, and retailers and marketplaces check the same GS1 data; how to check who owns a UPC walks through it. See how to get UPC barcodes and what a GTIN is.
About the conversions
A UPC-A, its EAN-13 with a leading zero, and its 14-digit form with two leading zeros are the same GTIN written at different lengths. Databases often store the 14-digit form. UPC-E is a shortened way to print certain UPC-A numbers that contain runs of zeros, and only some numbers can be shortened. A GTIN-14 that starts with an indicator digit other than 0 identifies a different packaging level, so it has to be assigned, not converted. See when you need a new GTIN.
Sources
- GS1: How to calculate a check digit manually (accessed )
- GS1: GS1 General Specifications Standard (Release 26.0) (accessed )
- Microsoft Support: Keeping leading zeros and large numbers (accessed )
More tools for labels and numbers
- 14 types
Barcode generator
Fourteen barcode types, GS1 sizes built in, and downloads ready for design software or a label printer.
Open the tool - QR
QR code generator
Links, Wi-Fi, email, phone and text QR codes that never expire.
Open the tool - Bulk
Bulk barcode generator
Turn a list or CSV into Avery and A4 label sheets, a ZIP of SVG or PNG files, or ZPL for a label printer.
Open the tool - 30-up
Barcode label sheets
Print numbered Code 128 or QR labels on 30-up sheets or a label printer.
Open the tool - 2D
GS1 Digital Link generator
Turn a UPC or GTIN, with batch, expiry or serial, into a GS1 Digital Link QR code or GS1 DataMatrix.
Open the tool - Scan
Barcode checker
Scan a barcode or QR code with your camera or a photo and check its digits, GS1 data and which domain its link opens.
Open the tool - CSV
SKU generator
Build consistent SKUs from product, color and size codes, then export CSV.
Open the tool - 12 pages
Generators by type
A page for each barcode type, from UPC-A to PDF417, with its rules, sizes, common mistakes and a worked example.
Open the tool