Guides

Why is my EAN-13 invalid?

Check the 13-digit length first, then recalculate the final modulo-10 digit before changing any product identifier.

Reviewed August 9, 2026QiiChain Technical EditorialHow we verify content

Check the identifier before the barcode

Check the 13-digit length first, then recalculate the final modulo-10 digit before changing any product identifier. Start with the characters and expected length. Barcode artwork should be generated from a known product identifier, not used as a way to guess what the number should be.

Recalculate the final digit

A check-digit mismatch is evidence that the number may have been copied, truncated or reformatted incorrectly. Recalculate the expected digit from the body and compare it with the source product record before editing anything.

Preserve leading zeros

Store UPC, EAN and GTIN values as text in spreadsheets and databases when formatting might remove leading zeros. Losing a leading zero changes the visible length and can make a valid identifier look like a different GTIN format.

Keep representation and assignment separate

Zero-padding a valid GTIN for a 14-digit database field is a representation change; assigning a new identifier to another packaging level is an identification decision. Do not treat the two as the same operation.

Verify the final use

After number validation, generate the required symbology and test the final printed barcode or import in the actual destination system. Syntax validity does not prove GS1 licence ownership, retailer acceptance or print quality.

Evidence to keep

An EAN-13 symbol carries a 13-digit GTIN. Recalculate the thirteenth digit from the first 12 and verify that the source field was imported as text. A 12-digit value may be an incomplete EAN-13 body, while a genuine GTIN-12 is a different representation and should not be “fixed” by guessing a prefix. Keep the source record and the expected check digit side by side during correction.

Separate standard from policy

Distinguish what is mathematically or syntactically required from what your company chooses as policy. A check digit, AI field length or formula can be deterministic; a SKU pattern, safety-stock target or migration date can depend on operations. Keeping those two layers separate prevents internal policy from being presented as a universal standard and makes future changes easier to explain.

Operational scenario

When why is my ean-13 invalid? is part of packaging work, freeze the identifier and data content before final artwork approval. Late manual edits in design software are difficult to audit. Regenerate the symbol from the approved source data instead of editing bars, modules or human-readable digits directly in the artwork.

Downstream hand-off

If the output of why is my ean-13 invalid? is copied into another spreadsheet, mark the identifier column as text before paste/import. That is especially important for UPC, EAN, GTIN, GLN and SSCC values because spreadsheet numeric conversion can remove leading zeros or display long values in scientific notation.

Technical references

Sources used on this page

QiiChain summarizes source material and applies it to the tool or workflow. The linked source remains authoritative for its own standard or product documentation.