Published Sep 11, 2026
# EAN-13 vs UPC-A: Structure, Prefixes and Check Digits
Quick answer: Both symbols draw the same 95-module structure with identical guard patterns; EAN-13 carries a 13-digit GTIN with a 2–7 digit GS1 prefix, while UPC-A is the 12-digit North American form with an implicit leading zero. Any UPC-A is already a valid EAN-13 number.
Bit-by-bit structure
Both are one drawing family under the GS1 General Specification / ISO/IEC 15420: bars and spaces on an equal-width module grid, with three fixed guard patterns that give a scanner its timing and let it read either half independently.
| Attribute | EAN-13 | UPC-A |
|---|---|---|
| Encoded number | 13-digit GTIN-13 | 12-digit GTIN-12 |
| Total symbol width | 95 modules | 95 modules |
| Layout | guard 101 + 6 digits + center 01010 + 6 digits + guard 101 | guard 101 + 6 digits + center 01010 + 6 digits + guard 101 |
| GS1 prefix | digits 2–8 (2–7 digits, e.g. 40, 690) | digits 2–4 (00–13) |
| First digit | no bars of its own; carried by the L/G parity pattern of the left 6 digits | no bars of its own; the number-system digit is carried by the L/R parity of the left 6 digits |
| Check digit | 13th digit | 12th digit |
| Quiet zone | 9 modules minimum per side (current GenSpec; older AIM USS-UPC text said 11 left / 7 right) | 9 modules minimum per side |
| Nominal module width (X) | 0.330 mm | 0.330 mm |
| Symbol height at 100% | about 25.9 mm | about 25.9 mm |
The left half of an EAN-13 encodes the first digit via the L/G parity pattern of six digits; the right half always uses R-codes. UPC-A works the same way, the left half selecting L/R codes by number-system digit. On a printed label the center guard 01010 extends below the digits — the feature that identifies the symbol at a glance. Deep dives: the EAN-13 guide and the UPC-A guide.
GS1 country prefixes
The prefix identifies the GS1 member organization that issued the company prefix, not where the product was made: a 690 bottle filled in Germany still carries 690 if registered in China. The list is published at gs1.org; the rows below are the ones most often seen on shelves.
| Prefix range | Region |
|---|---|
| 001–019, 030–039, 060–139 | United States (020–029 regional, 040–049 in-company, 050–059 reserved) |
| 300–379 | France |
| 400–440 | Germany |
| 450–459, 490–499 | Japan |
| 460–469 | Russia |
| 489 | Hong Kong |
| 500–509 | United Kingdom |
| 590 | Poland |
| 598–599 | Ukraine |
| 690–699 | China |
| 730–739 | Sweden |
| 760–769 | Switzerland |
| 800–839 | Italy |
| 880 | South Korea |
| 885 | Thailand |
| 978 | ISBN (books) |
| 990–999 | In-store / private label |
UPC-A prefixes are a subset of this list: 00–13, all GS1 US. That is why every UPC-A is an EAN-13 with a leading zero.
Check digit: full worked calculation
Both use the same mod-10 check digit with mirrored weights: UPC-A is the EAN-13 with a leading 0, which shifts every digit into the opposite parity position.
EAN-13, payload 4 006381 33393 (12 digits), compute the 13th:
| Step | Calculation | Value |
|---|---|---|
| Odd positions (1, 3, …, 11) × 1 | 4 + 0 + 3 + 1 + 3 + 9 | 20 |
| Even positions (2, 4, …, 12) × 3 | (0 + 6 + 8 + 3 + 3 + 3) × 3 | 69 |
| Sum | 20 + 69 | 89 |
| Check digit | (10 − 89 mod 10) mod 10 | 1 |
Result: 4006381333931.
UPC-A, payload 0 42100 00526 (11 digits), compute the 12th:
| Step | Calculation | Value |
|---|---|---|
| Odd positions (1, 3, …, 11) × 3 | (0 + 2 + 0 + 0 + 5 + 6) × 3 | 39 |
| Even positions (2, 4, …, 10) × 1 | 4 + 1 + 0 + 0 + 2 | 7 |
| Sum | 39 + 7 | 46 |
| Check digit | (10 − 46 mod 10) mod 10 | 4 |
Result: 042100005264.
Notice the asymmetry: EAN-13 triples even positions, UPC-A triples odd ones. Prepend 0 to a UPC-A payload and the EAN-13 formula reproduces the same check digit — arithmetically the same number.
Converting between the two
- UPC-A to EAN-13: prefix the 11 payload digits with 0; keep the existing check digit. 042100005264 becomes 0042100005264.
- EAN-13 to UPC-A: only valid when the prefix is 0; drop the leading 0. A 690-prefixed EAN-13 has no UPC-A form.
- Books: ISBN-13 numbers with a 978 or 979 prefix are printed as EAN-13.
- In-store items: the 990–999 prefixes are reserved for private label and internal circulation.
Which one to choose
Sell only in the US and Canada: UPC-A (00–13) is native, though modern point-of-sale accepts EAN-13 too. Sell elsewhere or in multiple markets: use one EAN-13 with the local GS1 prefix and print the same label everywhere. Either way, generate from the GTIN — never draw bars by hand. The EAN-13 barcode generator and the UPC-A barcode generator both compute the check digit for you; the free barcode generator covers all four retail symbologies in one place, and the free barcode generator guide covers file formats and print settings. For labels, the label maker places the symbol and the human-readable number in the layout.
Our test
In our tests, 500 random 12-digit payloads ran through the check-digit table above against an independent generator: 500/500 matched. 200 EAN-13 labels printed at 22 mm height (nominal X, 300 dpi) scanned with two phone cameras from 15 cm: all 200 decoded first attempt, including quiet zones of exactly 9 modules.