{"inline_business":{"ean13-upc-barcode-generator":{"format":"Format","digits_label":"Enter {{short}} digits (check digit computed) or {{full}} digits (code to validate)","key_computed":"Check digit computed: {{key}}.","code_valid":"Valid code: the check digit is correct.","code_invalid":"Invalid code: the expected check digit is {{key}}.","wrong_length":"Enter exactly {{short}} or {{full}} digits.","formula_note":"Check digit = (10 − (weighted sum mod 10)) mod 10, with alternating weights 3 and 1 starting from the right of the code body.","full_code":"Full code","barcode_alt":"Barcode {{value}}","no_barcode":"Enter a valid code to display the barcode.","download_svg":"Download SVG","download_png":"Download PNG","standard_source":"Check digit method and EAN-13 / UPC-A structure: GS1 General Specifications, Release 26.0, published January 2026 (checked on 14/10/2026).","format_gtin14":"GTIN-14 / DUN-14 / ITF-14 from an EAN-13","gtin14_digits_label":"EAN-13 (13 digits) or UPC-A (12 digits) of the unit inside, or a GTIN-14 (14 digits) to check","indicator_label":"Indicator digit (packaging level, 1 to 8)","indicator_note":"Indicators 1 to 8 identify up to eight groupings of the same item; GS1 gives them no fixed meaning (1 is often used for the case). 9 is reserved for variable measure items: that GTIN-14 is not derived from the unit's EAN-13 but assigned from your GS1 company prefix. Enter it as 14 digits to check its check digit.","gtin14_computed":"GTIN-14 computed with indicator {{ind}}: new GTIN-14 check digit {{key}} (the EAN-13's old check digit is dropped).","gtin14_source_invalid":"The check digit of the code entered is wrong: {{key}} was expected. Correct the unit's EAN-13 or UPC-A before computing the GTIN-14.","gtin14_wrong_length":"Enter 13 digits (EAN-13), 12 digits (UPC-A) or 14 digits (GTIN-14 to check).","gtin14_lead0":"A 14-digit code starting with 0 is the unit's EAN-13 (or UPC-A) written on 14 digits, not the GTIN-14 of a case.","gtin14_lead9":"Indicator 9: variable measure item. The weight or quantity must be given as well, for example in a GS1-128 barcode.","full_code_gtin14":"GTIN-14 / DUN-14 (case code)","itf14_note":"ITF-14 barcode at 100%: X = 1.016 mm, wide-to-narrow ratio 2.5:1, 10X quiet zones, 4.83 mm bearer bar around the symbol, i.e. 152.4 × 41.4 mm without the digits. The SVG is drawn at real size: print it without scaling.","steps_title":"Check digit calculation (modulo 10), step by step","steps_digit":"Digit","steps_weight":"Weight","steps_product":"Product","steps_sum":"Sum S = {{sum}}; S mod 10 = {{mod}}; check digit = (10 − {{mod}}) mod 10 = {{key}}."}},"docs_business":{"tools":{"ean13-upc-barcode-generator":{"content":{"title":"EAN-13, UPC-A and GTIN-14 check digit: GS1 method and examples","intro":"The check digit of an EAN-13 or UPC-A starts from the rightmost digit of the code body: weight 3, then 1, 3, 1… moving left. Add the products; the check digit is what brings the total up to the next multiple of ten. For 400638133393 the sum is 89 and the check digit is 1. For a case, the GTIN-14 (DUN-14) takes the EAN-13 without its check digit, puts an indicator digit in front and gets a new check digit: 7541234999997 gives 17541234999994 with indicator 1.","details":"

Formula

Check digit = (10 − (S mod 10)) mod 10, where S is the sum of the body digits weighted 3 and 1 alternately, starting with 3 on the rightmost digit. Starting from the right gives one rule for EAN-13 (12-digit body) and UPC-A (11 digits).

EAN-13 example: 400638133393

UPC-A example: 03600029145

Barcode structure

95 modules: start guard (3), 6 left digits encoded L or G depending on the first digit (42), centre guard (5), 6 right digits in R (42), end guard (3). The first EAN-13 digit is not drawn as bars: it sets the parity pattern. A UPC-A becomes an EAN-13 by adding a leading 0, with the same check digit.

GTIN-14 check digit from an EAN-13 (DUN-14 case code)

A GTIN-14 identifies a grouping of identical units: a case, a carton, a single-product pallet. It takes three steps: drop the check digit of the unit's EAN-13, put an indicator digit from 1 to 8 in front, then compute a new check digit over the resulting 13 digits. For a UPC-A (12 digits), add a leading 0 first.

Indicator digit: 1 to 8, and the case of 9

Indicators 1 to 8 give up to eight GTIN-14s for different groupings of the same item. GS1 does not fix their meaning, although 1 often stands for the first case size. Once all eight are used, a further grouping gets its own GTIN-13. 9 is reserved for variable measure items (weight or piece count that changes from one case to the next): that GTIN-14 is not derived from the unit's EAN-13, and the weight or quantity must be encoded as well. A 14-digit code starting with 0 is just the unit's EAN-13 padded with a zero.

ITF-14 barcode

The GTIN-14 is marked on the case as an ITF-14 (Interleaved 2 of 5): each pair of digits is encoded as five bars for the first digit and five spaces for the second, two of them wide each time. GS1 specification: target wide-to-narrow ratio 2.5:1 (range 2.25 to 3), 10X quiet zones left and right, X from 0.495 to 1.016 mm, bars at least 31.75 mm high. For plate printing, a 4.83 mm bearer bar surrounds the symbol and its quiet zones; on labels, two horizontal bars of at least 2X are enough. At 100% (X = 1.016 mm) the symbol is 142.75 mm wide with its quiet zones and 152.4 mm with the bearer bar.

Limits

Sources and dates: GS1 General Specifications, Release 26.0 published in January 2026: §2.1.7.2 and §2.1.10 (GTIN-14, indicators 1 to 8 and 9), §5.3.2 and §5.12.3.2 (ITF-14 symbol), §7.9 (check digit); the next release is planned for January 2027. GS1 Canada, What is a GTIN-14 and How to Use it, Release 1.0, January 2026 (examples 7541234999997 and 990497300014). GTIN overview by GS1 France and AECOC (GS1 Spain), check digit method by GS1 Germany (pages checked on 22/10/2026).

"},"faqs":[{"question":"How do I calculate the check digit of an EAN-13?","answer":"Multiply the first 12 digits by 1, 3, 1, 3… from left to right, add them up, then take the amount needed to reach the next multiple of ten. For 400638133393: sum 89, check digit 1."},{"question":"What is the difference between EAN-13 and UPC-A?","answer":"EAN-13 has 13 digits (Europe, worldwide); UPC-A has 12 (US, Canada). A UPC-A is an EAN-13 with a leading 0, so both are read by the same scanners."},{"question":"Can I use this barcode to sell my products?","answer":"For internal use (stock, labels), yes. To sell in stores or on Amazon, the prefix must be assigned to you by GS1: a made-up number may be rejected or clash with another product."},{"question":"How do I calculate a GTIN-14 (DUN-14) from an EAN-13?","answer":"Drop the EAN-13's check digit, put an indicator digit from 1 to 8 in front, then compute a new modulo 10 check digit over the 13 digits. For 7541234999997 with indicator 1: 1754123499999, weighted sum 146, new check digit 4, so the GTIN-14 is 17541234999994."},{"question":"Which indicator digit should I use for a case?","answer":"A digit from 1 to 8, chosen by the brand owner: GS1 gives them no fixed meaning, although 1 is often used for the first case. 9 is reserved for variable measure items, whose GTIN-14 is not derived from the unit's EAN-13."},{"question":"How do I check a GTIN-14 check digit?","answer":"Weight the first 13 digits 3 and 1 alternately starting from the right, add them up and take the amount needed to reach the next multiple of ten: it must equal the 14th digit. 17541234999994 is correct; 17541234999995 is not, the expected check digit is 4."},{"question":"What size is an ITF-14 barcode?","answer":"At 100% (X = 1.016 mm, ratio 2.5:1) the symbol is 142.75 mm wide with its 10X quiet zones, and 152.4 × 41.4 mm with the 4.83 mm bearer bar. GS1 allows an X from 0.495 to 1.016 mm and requires bars at least 31.75 mm high."}]}}}}