Skip to content
CornerTools

Check Digit Calculator

Work out the check digit a barcode number needs, or check that one is right, for every GS1 key, ISBN and ISSN.

An ISBN, GTIN, EAN, UPC, SSCC, GLN or ISSN, with or without its check digit. Spaces and hyphens are ignored.

The last digit of a barcode number is a check digit: it is worked out from the digits before it, so a mistyped or misread number almost always fails the check. Enter a number without its check digit to work it out, or with it to see whether it is right. The tool reads every GS1 key (EAN, UPC, GTIN, GLN, SSCC, GSIN, GSRN), ISBN-10 and -13, ISSN and ISMN, shows the arithmetic, and converts between the forms of the same number.

Understanding the result

The working for 400638133393 read as the start of an EAN-13 / GLN: the products sum to 89, and the next multiple of 10 is 90: 90 − 89 = 1, making 4006381333931. For the ISSN 0317847: 120 ÷ 11 leaves 10; 11 − 10 = 1, so the ISSN is 0317-8471.

A GS1 key's first digits say which GS1 office issued it, and the tool names it. That is not where the product was made: a company takes its numbers from the office where it joins GS1, and makes its products anywhere. Prefixes 02 and 20 to 29 are for numbers a store prints itself, such as for food sold by weight, and are not used between companies. A valid check digit only shows the number is well formed: whether it is registered to a company is for GS1's own lookup.

How to use it

Type or paste the number; spaces and hyphens are ignored, and a lowercase x counts as the X an ISBN-10 or ISSN can end in. The kind of number is read from its length. Some lengths fit more than one kind: 12 digits are a whole UPC-A or the first 12 digits of an EAN-13, and 13 digits are a whole EAN-13 or the first 13 of a GTIN-14. Then Read as lists each kind and you pick the one you mean; the result, the working and the conversions follow it. A kind the whole number checks out under comes first, then the rest, commonest first; a number typed as an ISSN is written, 0317-8471, is read as an ISSN first.

Paste several numbers, one a line, to check them together: a table gives each number's first reading, the one it checks out under where there is one, with its result, notes any other reading its length allows, and copies as CSV. Up to 1,000 lines are checked. A shared link carries one number and the reading picked, never a list.

Notes under the result say what the digits mean beyond the check. A UPC-E under number system 1 is read, with the note “GS1 issues UPC-E numbers with number system 0 only.” Each UPC-A number has one UPC-E form, so UPC-E digits that expand to the same number as another form are named: 01000054 gets “GS1 writes this number as UPC-E 01000504.”

How it works

Every fixed-length GS1 key uses the same check: from the right, the digits are weighted 3, 1, 3, 1 and so on, the products are added, and the check digit is what brings the sum up to the next multiple of 10. Because the weights start from the right, leading zeros change nothing, which is why a GTIN-12 and the same number written as a GTIN-14 share their check digit.

ISBN-10 and ISSN use modulus 11 instead: the digits are weighted from 10 (ISBN-10) or 8 (ISSN) down to 2, and the check is 11 minus the remainder of the sum divided by 11. A result of 10 is written X, and 11 as 0. ISBN-13, ISMN and the barcode of an ISSN are EAN-13 numbers and use the GS1 check. A UPC-E's check digit is worked on the UPC-A it stands for.

GS1: check = (10 − (Σ digit × weight) mod 10) mod 10, weights 3, 1, 3, … from the right
ISBN-10, ISSN: check = (11 − (Σ digit × weight) mod 11) mod 11, 10 written X

Examples

Twelve digits, read two ways

Number
036000291452
Read as UPC-A
Valid
Read as EAN-13 / GLN
Check digit 2

As a UPC-A, the last digit is the check digit, and it is right. As the first 12 digits of an EAN-13, the tool works out a 13th, giving 0360002914522. Which is meant depends on where the number came from: a 12-digit number printed under a barcode in North America is a UPC-A.

An SSCC for a pallet

Number
37610425002123456
Read as
SSCC
Sum of the products
101
Check digit
9
SSCC
376104250021234569

Seventeen digits also fit a GSIN and the start of a GSRN, so pick SSCC under Read as. The next multiple of 10 is 110: 110 − 101 = 9. This is the example in the GS1 General Specifications.

A magazine barcode back to its ISSN

Number
9770317847001
Read as
EAN-13 / GLN
ISSN
0317-8471
GTIN-14
09770317847001

An EAN-13 starting 977 holds an ISSN: the seven digits after 977 are the ISSN without its check character, which the tool works out again by modulus 11. The two digits before the EAN-13's own check digit are the variant, 00 for the normal issue.

An ISBN-10 converted

Number
030640615
ISBN-10
0306406152
ISBN-13
9780306406157

Nine digits read as an ISBN-10 without its check character, which is 2. The ISBN-13 puts 978 in front of the first nine digits and works out a new check digit by the GS1 rule, so the two last digits differ. Only 978 ISBNs have a 10-digit form.

Numbers the tool reads

Each kind of number, its length with the check character, its check and what it identifies
NumberLengthCheckIdentifies
EAN-88GS1, mod 10Small retail packs (GTIN-8)
UPC-E8GS1, mod 10Small packs in North America: a UPC-A with zeros left out
ISSN8Mod 11Serials: magazines, journals, newspapers
ISBN-1010Mod 11Books numbered before 2007
UPC-A12GS1, mod 10Retail products in North America (GTIN-12)
EAN-13 / GLN13GS1, mod 10Retail products (GTIN-13) and locations or parties (GLN)
ISBN-1313GS1, mod 10Books: an EAN-13 starting 978 or 979
ISMN13GS1, mod 10Printed music: an EAN-13 starting 979-0
GTIN-1414GS1, mod 10Cases and other groupings of a product
GSIN17GS1, mod 10A shipment: the goods sent to one buyer together
SSCC18GS1, mod 10A pallet, parcel or other logistic unit
GSRN18GS1, mod 10A service relationship, such as a patient or a loyalty member

Where the rules come from

The GS1 check digit, the key formats and their lengths, the 977 serial barcode and the meaning of each prefix range come from the GS1 General Specifications; which office issued each prefix comes from GS1's prefix list. The ISSN check comes from the ISSN Manual, and ISBN-13 from the ISBN Users' Manual, which follows ISO 2108. An ISSN barcode puts 977 before the seven ISSN digits and 00 after them, the variant for the normal title; other variants mark issues at a different price.

Sources

Reviewed

Frequently asked questions

Twelve digits are a whole UPC-A, whose last digit is its check digit, or an EAN-13 missing its check digit. Both are right for their reading; choose the one that matches where the number came from under Read as.
For use inside your own company, yes: GS1 sets numbers starting 04 (a UPC-A starting 4) aside for that, and the ranges 02 and 20 to 29 for store numbers such as goods sold by weight, under rules each GS1 office sets. Such numbers mean nothing outside your business. To sell through other shops or online marketplaces, get numbers from your GS1 office: a made-up number with a correct check digit can belong to another company.
No. It shows which GS1 office issued the number. GS1 says so itself: companies make their products anywhere, and 890 on a pack means the company joined GS1 through GS1 India, not that it was made there.

See also