Skip to content
Skip to main content
QREndless

Check Digit Calculator — GTIN, EAN, UPC, ISBN, ISSN, SSCC

Enter the first N-1 digits of any barcode. Get the check digit instantly. Supports GTIN-8, GTIN-12, GTIN-13, GTIN-14, SSCC-18, ISBN-10, ISSN-8.

Try an example

Barcode Payload

Dashes, spaces, and non-digit characters are stripped automatically.

Active format: Auto-detect · type to identify

Computed Check Digit

Enter your barcode payload to compute the check digit.

Free online barcode check digit calculator computing the mod-10 check digit of an EAN-13 barcode — supports GTIN, EAN, UPC, ISBN, ISSN, SSCC
Illustration: enter the first N-1 digits of any barcode to instantly compute the GS1 mod-10 or mod-11 check digit — supports GTIN-8, GTIN-12, GTIN-13, GTIN-14, SSCC-18, ISBN-10, ISSN-8.
Why Choose Us

The Best Check Digit Calculator

Real GS1 mod-10 and mod-11 algorithms. 8 barcode formats supported. Pure JavaScript arithmetic.

Instant Computation

Check digit appears as you type. No submit button, no waiting. Pure JavaScript arithmetic computes the result in microseconds.

Private

No data leaves your browser. No server, no API, no logging. The math runs entirely on your device — type sensitive barcodes without worry.

8 Barcode Formats

GTIN-8, GTIN-12 (UPC-A), GTIN-13 (EAN-13, ISBN-13), GTIN-14 (ITF-14), SSCC-18, ISBN-10, ISSN-8. Auto-detect picks the right algorithm based on length.

Copy & Use

Copy the check digit alone or the full barcode (payload + check digit) with one click. Paste into your barcode generator, spreadsheet, or ERP system.

How It Works

Calculate a Check Digit in 3 Steps

1. Enter the First N-1 Digits

Type or paste the payload (every digit except the check digit). Dashes, spaces, and non-digit characters are stripped automatically. The tool detects the format from the length.

2. Pick a Format (or Auto-Detect)

Select the barcode format (GTIN-8/12/13/14, SSCC-18, ISBN-10, ISSN-8) or let auto-detect pick the right algorithm based on the payload length.

3. Copy the Check Digit

The check digit appears instantly as you type. Copy the check digit alone or the full barcode (payload + check digit) with one click.

Use Cases

Check Digits for Every Industry

Retail & Grocery

Compute EAN-13 and UPC-A check digits before printing product labels — a wrong check digit causes scanner failures at retail checkout.

Shipping & Logistics

Compute SSCC-18 serial shipping container check digits for pallets, cartons, and shipping containers.

Books & Publishing

Compute ISBN-10 and ISBN-13 check digits before submitting to Bowker, Nielsen, or your national ISBN agency.

Libraries & Archives

Compute ISSN-8 check digits for periodicals, journals, and serial publications.

Manufacturing

Compute GTIN-14 outer-case check digits before they enter your warehouse management system.

Inventory Management

Audit your entire barcode database by computing missing check digits — fill gaps before they cause scanner failures.

Complete Guide

Check Digit Calculator: The Complete A-to-Z Guide

Everything you need to know about check digits, the mod-10 and mod-11 algorithms, and how to compute the final digit of any barcode.

What Is a Check Digit?

A check digit is the final character of a barcode. It is not random — it is mathematically calculated from all the digits that came before it. The rule that produces it is called a checksum algorithm. Every GS1 barcode family (GTIN-8, GTIN-12 / UPC-A, GTIN-13 / EAN-13, GTIN-14 / ITF-14, SSCC-18, ISBN-13) uses the mod-10 algorithm. ISBN-10 and ISSN-8 use the mod-11 algorithm. When a barcode scanner reads a barcode, it redoes the math. If the result matches the last digit, the scan is accepted. If it does not, the scanner beeps and the cashier types the number by hand. A check digit calculator like this one computes that last digit for you so you can append it onto your payload before you print or ship anything.

Why Use Our Check Digit Calculator?

Here is why people pick this tool when they need a check digit:

  • Eight barcode formats — GTIN-8, GTIN-12 (UPC-A), GTIN-13 (EAN-13 / ISBN-13), GTIN-14 (ITF-14), SSCC-18, ISBN-10, and ISSN-8.
  • Instant results — type the payload, the check digit appears as you type. No submit button, no waiting.
  • Real GS1 algorithms — the exact mod-10 and mod-11 formulas published in the GS1 General Specifications and the ISBN Users' Manual.
  • Runs in your browser — no barcode ever leaves your device. No server, no API, no logs.
  • Auto-detect by length — type 12 digits and the calculator assumes GTIN-13. Type 9 digits and it assumes ISBN-10. No format picker needed.
  • Copy the full barcode — one click puts the payload plus the check digit on your clipboard, ready to paste into a label printer, spreadsheet, or ERP.

How the Mod-10 Algorithm Works

The mod-10 (GS1) algorithm is used by every GTIN-family barcode. The steps are:

  1. Take the payload (every digit except the check digit, e.g. 301762042200).
  2. Starting from the rightmost digit and moving left, multiply alternately by 3, then 1, then 3, then 1, and so on.
  3. Add up all the products.
  4. Take the sum modulo 10 (the remainder when divided by 10).
  5. Subtract from 10. If the result is 10, use 0 — this is what (10 - (sum % 10)) % 10 does.

For the Nutella EAN-13 payload 301762042200, read right-to-left the digits are 0, 0, 2, 2, 4, 0, 2, 6, 7, 1, 0, 3. Products with alternating 3,1 weights: 0, 0, 6, 2, 12, 0, 6, 6, 21, 1, 0, 3. Sum = 57. 57 % 10 = 7. (10 - 7) % 10 = 3. The check digit is 3, so the full barcode is 3017620422003 — exactly the EAN-13 printed on every Nutella jar.

How the Mod-11 Algorithm Works

The mod-11 algorithm is used by ISBN-10 and ISSN-8. The weights are different from mod-10, and they go left-to-right (not right-to-left). The steps are:

  1. Take the payload (e.g. the 9-digit ISBN-10 payload 014032872 for Matilda by Roald Dahl).
  2. Starting from the leftmost digit and moving right, multiply by descending weights 10, 9, 8, 7, 6, 5, 4, 3, 2.
  3. Add up all the products.
  4. Take the sum modulo 11.
  5. Subtract from 11. If the result is 10, write it as the letter X. If the result is 11, write 0.

For 014032872: products are 0, 9, 32, 0, 18, 10, 32, 21, 4. Sum = 126. 126 % 11 = 5 (since 11 × 11 = 121, remainder is 5). (11 - 5) % 11 = 6. The check digit is 6, so the full ISBN-10 is 0140328726. Type it into the tool above and you will see the same 6 appear instantly.

Why Does ISBN-10 Use 'X' as a Check Digit?

Mod-11 uses modulus 11, so the possible check-digit values are 0 through 10 (eleven possible values). But a check digit must fit in a single character. Digits 0 through 9 cover only ten values. The eleventh value (10) is represented by the Roman numeral X. This is why some ISBN-10 codes end in X instead of a digit. A real ISBN like 080442957X ends in X — both 080442957X and 0140328726 are valid; the first one's mod-11 math simply produced a 10 for the last position.

ISBN-13 uses mod-10, not mod-11. Its check digit can only be 0 through 9 — never X. ISSN-8 also uses mod-11 (with ISSN-specific weights 8, 7, 6, 5, 4, 3, 2 per ISO 3297), so ISSN codes can end in X as well. The Nature ISSN 0028-0836 ends in 6, and the Science ISSN 0036-8075 ends in 5 — both valid.

Who Uses a Check Digit Calculator? Industries and Roles

Many industries need to compute check digits every day:

  • Retail and Grocery — every product carries an EAN-13 or UPC-A. Brand owners compute the check digit before printing product labels so the barcode scans at retail checkout.
  • Publishing — every book has an ISBN-10 or ISBN-13 on the back cover. Publishers compute the check digit before submitting to Bowker, Nielsen, or their national ISBN agency.
  • Periodicals — magazines and journals use ISSN-8. Printers and libraries compute the check digit before they catalogue or print the next issue.
  • Logistics — every shipping carton has an SSCC-18. Warehouses compute the check digit before applying the label to a pallet or shipping container.
  • Manufacturing — every outer case has a GTIN-14 (ITF-14). Factories compute the check digit before the case leaves the line.
  • Inventory and ERP teams — when companies migrate or audit their product database, they compute missing check digits in bulk to fill gaps before they cause scanner failures.

Mod-10 vs Mod-11: What Is the Difference?

The two algorithms look similar but produce different results. Here is a side-by-side comparison:

  • Direction — mod-10 weights the digits right-to-left (starting at the position immediately left of the check digit). Mod-11 weights them left-to-right.
  • Weights — mod-10 alternates 3, 1, 3, 1. Mod-11 descends 10, 9, 8, 7, 6, 5, 4, 3, 2 (for ISBN-10) or 8, 7, 6, 5, 4, 3, 2 (for ISSN-8).
  • Modulus — mod-10 divides by 10. Mod-11 divides by 11.
  • Character set — mod-10 check digits are always 0-9. Mod-11 check digits can be 0-9 or the letter X (representing 10).
  • Used by — mod-10 powers the entire GTIN family (GTIN-8, GTIN-12, GTIN-13, GTIN-14, SSCC-18, ISBN-13). Mod-11 powers only ISBN-10 and ISSN-8.

Picking the wrong algorithm is the most common mistake. The tool on this page picks for you automatically based on payload length, so you cannot go wrong.

Common Mistakes to Avoid

  1. Typing the check digit too. If you paste a full 13-digit EAN-13, the calculator sees 13 digits and assumes you want to validate (not compute). For a pure compute, paste only the first 12 digits.
  2. Leaving in dashes or spaces. The tool strips them automatically, but a leading space on a phone keyboard can shift everything. Type digits only.
  3. Picking the wrong format. A 12-digit payload computed as GTIN-12 will produce a different check digit than the same 12 digits computed as GTIN-13. Pick the format that matches your barcode or leave it on Auto and let length decide.
  4. Forgetting that ISBN-10 can end in X. If your ISBN-10 payload produces an X check digit, that is correct — not a bug. Print the X uppercase.
  5. Computing before the GS1 prefix is assigned. GS1 company prefixes come from your local GS1 office. Get the prefix first, then compute check digits for your product range.
  6. Using a check digit from one format in another. An EAN-13 check digit is wrong for an SSCC-18, even though both use mod-10. The payload length is different, so the weights land on different positions.

Frequently Asked Questions About Check Digits

Does every barcode have a check digit? — Almost every retail and shipping barcode does. GTIN-8, GTIN-12 (UPC-A), GTIN-13 (EAN-13 / ISBN-13), GTIN-14 (ITF-14), SSCC-18, ISBN-10, and ISSN-8 all do. Code 128 and Code 39 typically do not use a check digit (they use a different self-checking mechanism).

Can two payloads share a check digit? — Yes. The check digit is a function of the payload's digits, not a unique ID. Many different 12-digit payloads produce the check digit 3 (every payload whose weighted sum has the same remainder mod 10).

Is the check digit calculator accurate? — Yes. The mod-10 and mod-11 algorithms are publicly documented in the GS1 General Specifications and the ISBN Users' Manual. Every output is the exact mathematical result of the standard algorithm. The tool is verified against real barcodes such as Nutella (EAN-13 3017620422003), Coca-Cola (EAN-13 5449000000996), and the ISBN-13 for Matilda (9780140328721).

What happens if I get the check digit wrong? — The barcode will fail at the scanner. The cashier will have to type the number by hand. In a warehouse, a wrong SSCC-18 can route a pallet to the wrong dock. Always compute the check digit before you print.

Ready to Compute a Check Digit?

Now you know what a check digit is, how mod-10 and mod-11 work, and how to use the tool above. Type your payload, pick a format (or leave it on Auto), and the check digit appears instantly. Copy it alone or copy the full barcode — your choice. Jump back to the calculator above ↑

FAQ

Frequently Asked Questions

Everything you need to know about check digits.

Is the check digit calculator free?

Yes. No API key, no credit card. Compute unlimited check digits for personal, commercial, or enterprise use. The tool runs entirely in your browser, so there is no server cost to pass on to you.

What barcode formats does it support?

Eight formats: GTIN-8 / EAN-8 (7 payload digits), GTIN-12 / UPC-A (11 payload digits), GTIN-13 / EAN-13 / ISBN-13 / ISSN-13 (12 payload digits), GTIN-14 / ITF-14 (13 payload digits), SSCC-18 (17 payload digits), ISBN-10 (9 payload digits), and ISSN-8 (7 payload digits). The auto-detect mode picks the right format based on the length of your payload.

What is the mod-10 algorithm?

The mod-10 (GS1) algorithm is used for all GTIN-family barcodes: GTIN-8, GTIN-12 (UPC-A), GTIN-13 (EAN-13, ISBN-13), GTIN-14 (ITF-14), and SSCC-18. Starting from the rightmost payload digit (the position immediately to the left of the check digit) and moving left, multiply alternately by 3, then 1, then 3, then 1, and so on. Sum the products. The check digit = (10 - (sum mod 10)) mod 10. This produces a single digit 0-9 that makes the full barcode mathematically self-validating.

What is the mod-11 algorithm?

The mod-11 algorithm is used for ISBN-10 and ISSN-8. Starting from the leftmost payload digit and moving right, multiply by weights 10, 9, 8, 7, 6, 5, 4, 3, 2 (descending by 1 each position). Sum the products. The check digit = (11 - (sum mod 11)) mod 11. If the result is 10, the check digit is represented as the letter "X". If the result is 11, the check digit is 0.

Why does ISBN-10 use 'X' as a check digit?

The mod-11 algorithm can produce a check-digit value of 10 (because the modulus is 11, so possible values are 0-10). A check digit must be a single character, so 10 is represented as the Roman numeral "X". This is why some ISBN-10 codes end in "X" instead of a digit. ISBN-13 (which uses mod-10) never produces X — its check digit is always 0-9. ISSN-8 also uses mod-11, so ISSN codes can end in X as well.

Is my data private?

Yes. All computation happens entirely in your browser using pure JavaScript arithmetic. No data is sent to any server, no API is called, no logging, no tracking, no cookies. The digits you type never leave your device. You can use this tool offline once the page is loaded.

Can I use this for commercial purposes?

Yes. The tool is free for any commercial use. No attribution required. Compute check digits for product packaging, shipping labels, book ISBNs, periodical ISSNs, pallet SSCCs, or any other business use.

How accurate is the calculator?

100% accurate. The mod-10 and mod-11 algorithms are publicly documented in the GS1 General Specifications and the ISBN Users' Manual. Every output is the exact mathematical result of the standard algorithm. The tool is verified against real-world barcodes such as Nutella (EAN-13 3017620422003), Coca-Cola (EAN-13 5449000000996), and the ISBN-13 for Matilda by Roald Dahl (9780140328721).

Ready to Compute a Check Digit?

Real GS1 mod-10 and mod-11 algorithms. 8 barcode formats supported. No watermark, no account needed.

Open the Calculator