UPC vs EAN: EAN-13 vs UPC-A Barcodes Compared (Miễn phí)
UPC-A has 12 digits (US, Canada); EAN-13 has 13 (almost everywhere else). Cách they relate, which đến choose, và a miễn phí mã vạch generator cho both.
Đăng ngày · 5 phút đọc
UPC-A và EAN-13 là two retail barcodes bạn see on products. UPC-A holds 12 digits và là traditional in US và Canada; EAN-13 holds 13 digits và là used in India, Europe và most of world. They're closely related: a UPC-A số là an EAN-13 số với a 0 in front. You có thể draw either in free barcode generator, which works out check digit cho bạn.
The format matters less than most sellers think. Điều gì matters là having a properly licensed số và printing format của bạn retailers expect.
Side by side
| UPC-A | EAN-13 | |
|---|---|---|
| Digits | 12 | 13 |
| Typical region | US và Canada | Rest of world, including India, Europe, Asia và Australia |
| Structure | Company prefix + product số + check digit | GS1 prefix + company số + product số + check digit |
| Scanned worldwide? | Yes | Yes, và in North America too |
| Short version | UPC-E (8 digits, cho small packs) | EAN-8 (8 digits, cho small packs) |
| In mã vạch generator | Type 11 digits, check digit added | Type 12 digits, check digit added |
Modern retail scanners read both formats, in any country. A product với a UPC-A mã vạch sells fine in a London hoặc Mumbai supermarket, và an EAN-13 product scans in New York. The format follows where số was issued, not where product là sold.

Cách two là related
Take a UPC-A số và put a 0 in front, và bạn have same product's EAN-13 số. The check digit stays same, because extra leading 0 adds nothing đến calculation.
Example:
- UPC-A:
036000291452 - EAN-13:
0036000291452
Inside a retailer's system, both là stored as same GTIN (Global Trade Item Number), usually padded đến 14 digits. That's why one product never needs both barcodes.
Cách check digit works
The last digit of both codes là a check digit, so a scanner có thể spot a misread. It's same method cho both formats. Here it là cho UPC-A example above, using first 11 digits, 03600029145:
- Starting từ right-most digit, multiply digits alternately by 3 và 1: right-most digit là multiplied by 3, next by 1, và so on.
- 0×3 + 3×1 + 6×3 + 0×1 + 0×3 + 0×1 + 2×3 + 9×1 + 1×3 + 4×1 + 5×3 = 58.
- Find what bạn'd add đến reach next multiple of 10: 60 − 58 = 2.
- The full UPC-A là
036000291452.
For EAN-13 bạn do same với first 12 digits. The widely used example số 590123412345 gets check digit 7, giving 5901234123457.
You don't have đến do this by hand. In mã vạch generator, type số without last digit và tool adds it. Type it với last digit và it's checked; nếu it's wrong, tool tells bạn what it should be, which catches typos before bạn print 5,000 labels.
Which one should bạn use?
Follow số bạn were given:
- Your GS1 số was issued by GS1 US hoặc GS1 Canada và bạn sell mainly in North America: UPC-A là traditional choice, và retailers there expect it.
- Your số was issued by any other GS1 office, such as GS1 India (numbers starting với 890) hoặc a European office: use EAN-13.
- You sell worldwide: EAN-13 works everywhere. Some North American retailers still prefer UPC-A cho US-issued numbers, so ask của bạn buyers.
- Your marketplace asks cho a "UPC/EAN" field: it usually accepts either. Nhập số exactly as issued.
- Small packaging với no room: UPC-E và EAN-8 exist cho tiny items, but they have their own rules. EAN-8 numbers là issued separately by GS1, và UPC-E only works cho certain UPC numbers. Ask của bạn GS1 office before using them.
Nếu bạn don't have a số yet, read do I need a GS1 barcode? first. Making up a số risks clashing với a real product.
Other formats bạn'll meet
- ITF-14: a 14-digit code cho outer cartons và cases, based on product's GTIN. Printed on corrugated boxes going đến warehouses.
- Code 128: letters và numbers, cho shipping labels, stock và internal codes. Not cho retail checkout.
- QR codes: two-dimensional codes that hold a link hoặc văn bản, cho manuals, videos và offers on packaging. Make one với free QR code generator.
Making either mã vạch
- Mở free barcode generator.
- Under Barcode type, choose EAN-13 hoặc UPC-A.
- In Văn bản hoặc số, type 12 digits (EAN-13) hoặc 11 digits (UPC-A) without check digit. A note confirms check digit that was added.
- Keep Show văn bản under bars ticked: retail barcodes normally show digits so staff có thể type them nếu a scan fails.
- Download SVG cho packaging artwork hoặc PNG cho labels, then print a test và scan it.
For print sizes và testing tips, see how to make a barcode.
Make của bạn mã vạch
Pick EAN-13 hoặc UPC-A đến match where của bạn số came từ, và let free barcode generator add và check check digit. It runs on của bạn device, needs no account, và barcodes là yours đến use commercially.
Câu hỏi thường gặp
- Điều gì là difference between UPC và EAN?
- UPC-A has 12 digits và comes từ US và Canada; EAN-13 has 13 digits và là used in most other countries. A UPC-A số becomes an EAN-13 số by adding a 0 in front.
- Can a UPC mã vạch be scanned in India hoặc Europe?
- Yes. Retail scanners worldwide read both UPC-A và EAN-13.
- Should my product have both a UPC và an EAN mã vạch?
- No. One product has one GTIN. Print format that matches của bạn số và của bạn main market.
- Làm thế nào để convert a UPC đến an EAN?
- Put a 0 in front of 12-digit UPC-A số. The check digit stays same.
- Vì sao does generator say my last digit là wrong?
- The last digit must match check digit calculated từ others. Fix typo, hoặc leave last digit off và tool adds right one.
Trình tạo
Dùng thử Tạo mã vạch
Miễn phí, không cần đăng ký, chạy trên trình duyệt. Tạo mã vạch trong vài giây và tải về dưới dạng PNG hoặc SVG sắc nét: Code 128, EAN-13, EAN-8, UPC-A, UPC-E, Code 39, ITF-14 hoặc Codabar.