Developer Tools · Batch checks

Bulk UPC, EAN and GTIN check digit validator.

Paste a product list to find barcodes with a wrong check digit, or switch to calculate mode to complete numbers that are missing theirs. Everything stays in your browser.

Short answer: GTIN-8, 12, 13 and 14 all use the GS1 modulus-10 check: weights of 3 and 1 alternate from the right, and the check digit brings the total up to a multiple of 10. This page validates or completes every row. A pass says nothing about whether the number was issued to you.

Checked in your browserSources retrieved 20 October 2026

The rule GS1 publishes

GS1 gives a manual method for the check digit that applies to every GTIN length. Write the digits without the check digit, then starting from the digit nearest the check position multiply alternately by 3 and 1, add the products, and take the number that rounds the total up to the next multiple of 10. That number is the check digit; if the total is already a multiple of 10 the check digit is 0. The same rule covers GTIN-8, GTIN-12 (UPC-A), GTIN-13 (EAN-13) and GTIN-14.

A reliable way to remember the weights: the rightmost data digit always gets 3, whatever the length. That is why a UPC-A (12 digits) and the same code with a 0 in front as an EAN-13 (13 digits) share a check digit. It is also why you can left-pad any GTIN with zeros to 14 digits without changing its check digit.

Worked example

Take the UPC-A 036000291452. The data digits are 03600029145, and the check digit is the final 2. From the right, multiply by 3, 1, 3, 1 and so on: 5 x 3 = 15, 4 x 1 = 4, 1 x 3 = 3, 9 x 1 = 9, 2 x 3 = 6, 0 x 1 = 0, 0 x 3 = 0, 0 x 1 = 0, 6 x 3 = 18, 3 x 1 = 3, 0 x 3 = 0. The total is 58, and the next multiple of 10 is 60, so the check digit is 2, which matches.

In calculate mode, paste 03600029145 and the tool returns 036000291452 as GTIN-12 (UPC-A). The eleven-digit input is read as a UPC-A body, a twelve-digit input as an EAN-13 body, a seven-digit input as a GTIN-8 body and a thirteen-digit input as a GTIN-14 body. Because a 12-digit number can be a finished UPC-A or the body of an EAN-13, the two modes are a separate switch instead of a guess.

Using the batch controls

Paste one code per line or open a .csv or .txt file of up to 5 MB and 50,000 rows. Choose the column number and tick the header box if your feed has SKU, title or price columns. Spaces and hyphens are ignored. In validate mode, a failing row tells you the digit it has and the digit the GS1 rule gives, so you can see at a glance whether it was a typo in the last position. In calculate mode, the normalised column of the export holds the full GTIN with the new check digit appended.

Failing rows can be downloaded on their own. Duplicates are flagged against earlier rows by normalised number, which helps when a feed lists the same barcode against two SKUs.

Common mistakes

Spreadsheets are the usual culprit. A UPC-A that starts with 0 loses that zero when the column is formatted as a number, turning 036000291452 into an 11-digit value that fails the length test. Scientific notation is the second, turning 12-digit numbers into strings like 3.6E+11. The third mistake is mixing lengths in calculate mode; the tool refuses lengths that are not 7, 11, 12 or 13. And do not invent numbers to fill a feed: a made-up GTIN with a correct check digit can collide with a real product.

What a pass does not mean

A pass means the check digit follows the GS1 rule. It does not mean the number was issued to your company, that it identifies the product you think it does, or that a marketplace will accept it. Retail GTINs are issued from a GS1 company prefix, and some marketplaces check submitted GTINs against GS1 data. This tool never contacts GS1 or any database. The GS1 General Specifications are the authoritative document for number structure.

Privacy

The product list is parsed inside a sandboxed frame on this page with no network access. Nothing is stored in cookies or local storage, and the only output is a CSV you download yourself.

Common mix-ups

  1. GS1 General Specifications, release 26.0

Checked against these sources on .

Frequently asked questions

Which GTIN lengths are supported?

GTIN-8, GTIN-12 (UPC-A), GTIN-13 (EAN-13) and GTIN-14 in validate mode, and 7, 11, 12 or 13 digit bodies in calculate mode.

How is the GTIN check digit calculated?

Starting at the digit next to the check digit and moving left, multiply by 3 and 1 alternately, add the results, and take the amount needed to reach the next multiple of 10.

Why are there separate validate and calculate modes?

A 12-digit number can be a complete UPC-A or the body of an EAN-13. A switch avoids guessing which you meant.

Can I use this for ISBN-13 numbers?

Yes, an ISBN-13 follows the same modulus-10 rule as an EAN-13. For conversion between ISBN-10 and ISBN-13 use the bulk ISBN page.

Does a valid check digit mean the product exists?

No. It means the digits are consistent. GS1 issues retail numbers, and only a GS1 or marketplace lookup can show who holds a number.

Why did my UPC fail with 11 digits?

A spreadsheet probably dropped the leading zero. Format the column as text, or use calculate mode if the check digit is the part that is missing.

How many numbers can I check?

Up to 50,000 rows from a file of up to 5 MB.

Is the list uploaded?

No. It is processed in your browser inside a frame with no network access, and you download the CSV yourself.

Sources

Retrieved

Format check only — not a lookup

This page tests whether each value is structurally valid under the published rule. It does not contact any registry, bank, carrier or issuer, and a pass does not show that a number was issued, is active or belongs to anyone. Your list is processed in your browser and is not uploaded.

Advertisement
Advertisement