EAN-13 / GTIN-13: structure, check digit and product data

Learn to validate EAN-13 numbers, calculate the thirteenth digit and distinguish general GTIN-13 values from ISBN and packaging identifiers.

EAN-13 commonly carries a GTIN-13, a thirteen-digit identifier for a trade item. Its last digit is calculated from the preceding twelve with the GS1 modulo-10 method. Use the EAN-13 validator to check a complete value before publishing a listing, importing a feed or printing labels. It checks number structure rather than querying a product database.

Separate the identifier from the barcode image

GTIN-13 is the number used in ordering and product records; EAN-13 is a symbol used to encode it. A number can be stored and exchanged without a barcode image. Conversely, a damaged image can be difficult to scan even when the number beneath it is structurally correct. Quiet zones, contrast, dimensions and printing quality require a separate symbol-quality review.

This distinction helps when different teams say “barcode” but mean different things. A product-data colleague may need the assigned identifier, a designer may need a printable symbol and a marketplace may need an exact match to a catalogue entry. Ask which outcome is required before changing the identifier or generating a new label. Technical number validation answers only the first layer of those questions.

Understand the thirteen-character record

A complete GTIN-13 consists of twelve body digits followed by one check digit. In 4006381333931, the body is 400638133393 and the final digit is 1. Preserve the entire value as text. A missing character, an accidentally repeated digit or a number from another packaging level can all damage an import, even when a spreadsheet displays the cell without an obvious error.

Prefix and allocation structures are governed by GS1; they do not let this tool deduce product details or country of manufacture. Do not interpret the first digits as proof of where an item was made. Similarly, the check digit does not reveal a company name, product description or price. Those details belong in the product master and an authoritative lookup process, not in a checksum result.

Calculate the EAN-13 check digit

For 400638133393, work from the rightmost body digit and alternate weights three and one. The weighted sum is 3×3 + 9×1 + 3×3 + 3×1 + 3×3 + 1×1 + 8×3 + 3×1 + 6×3 + 0×1 + 0×3 + 4×1 = 89. One is needed to reach ninety, so the complete example ends in 1.

If the sum is already a multiple of ten, append zero. When a complete input ends in a different digit, compare it against the original supplier record before editing it. The calculator can complete a known twelve-digit body; it cannot establish that the body identifies an allocated trade item. Read the GS1 calculation guide for the method and use validation for values that already contain their last digit.

ISBN-13 is a specialized thirteen-digit identifier

Many book numbers are represented in EAN-13 symbols, but a valid general EAN-13 is not automatically an ISBN. ISBN-13 has a 978 or ISBN-compatible 979 prefix, and the 9790 range is reserved for ISMN. Use the ISBN-13 guide and dedicated mode when checking book records. That mode adds prefix rules; it still does not query publisher allocation ranges or confirm a book title.

Automatic checking on this website recognizes ISBN-compatible prefixes. Selecting EAN-13 explicitly applies the general GTIN-13 length and checksum rules. Choose the mode that matches the field's meaning rather than treating every thirteen-digit number as a retail product code. Separate book edition and format information must remain in the bibliographic record.

Consumer units and cartons need distinct records

The EAN-13 on a consumer unit does not automatically identify a case containing several units. A packaging-level identifier can use GTIN-14, and the grouping must be documented by the responsible product-data owner. Read the GTIN-14 packaging guide before copying a consumer value into a carton field. Store quantity and packaging relationships as separate attributes.

For a retail feed, establish which sale unit each row describes, retain the source GTIN and use the EAN-13 checker as a first error screen. The GTIN overview helps compare the number families. A passing check should support a deliberate record review, without replacing product matching or commercial approval.

A repeatable review before importing records

Keep the value as text from the first import to the final export. The digit string is an identifier, not a quantity that should be rounded or reformatted. Spreadsheet software can remove zeros, display scientific notation or silently change a long number. Import the column as text before opening the file; formatting a damaged value afterwards cannot recover its missing characters. Keep a copy of the original supplier or catalogue export so a reviewer can compare what changed.

Review both the source record and the normalized value. Spaces and hyphens used for presentation can be removed for a calculation, but letters, application identifiers and unrelated field contents require investigation. Record the chosen format, the returned status and the original row reference. If the format was guessed automatically, confirm that the guess matches the field's business meaning before accepting the row.

For a small list, use the website's localized list checker and choose a format for a homogeneous file. It reads the first column of a CSV or the complete line of a TXT file. The current limit is 1,000 rows and 2 MB. Preserve the other columns in your own source file; the checker is an error screen, not a product master or bibliographic database. A rejected row should go back to the responsible data owner rather than disappear from an export without explanation.

Do not resolve a failed check by substituting arbitrary digits until the indicator turns green. A correct check character can be calculated for many invented bodies. First compare the full value with the authoritative record, then decide whether a copying error or a missing final character caused the discrepancy. Only use the calculator to complete a body whose provenance is already established. Keep the corrected record and its source together for the next import.

What mathematical validation cannot establish

A structural result is useful for catching entry errors early, but it cannot confirm who allocated the identifier, whether the physical item matches the record, or whether a receiving platform accepts the submitted data. Those questions need the appropriate supplier, publisher, GS1 organisation or operational record. Even a correctly entered identifier can be associated with the wrong row. Review the description and relevant edition or packaging attributes separately before publishing or printing.

FAQ

Does the prefix prove country of manufacture?

No. GS1 allocation prefixes must not be treated as proof of where an item was manufactured.

Is every valid EAN-13 a valid ISBN-13?

No. ISBN-13 has additional prefix rules, and real ISBN allocation requires a separate authoritative source.

Can a correct number still fail to scan?

Yes. The printed symbol may have contrast, size or damage problems that number validation cannot inspect.

Source: GS1 / ISBN.

Check a barcode number

Check a GTIN, EAN, UPC, ISBN or SSCC number using the appropriate format and check-character rules.

Eight-digit numbers are checked as EAN-8 in automatic mode. Select UPC-E for a compressed UPC. ISBN-10, ISBN-13 prefixes and SSCC lengths are detected automatically.

We check the number structure and check digit on our servers. This does not verify product data or ownership.