How to convert between UPC and EAN
- Paste a UPC-A (12 digits), EAN-13 (13), UPC-E (8) or GTIN-14 (14).
- See every equivalent form: UPC-A, EAN-13, UPC-E (when possible) and GTIN-14.
- Click Copy next to the one you need, or Generate to make that barcode.
- Switch to Bulk to convert a list, then download the CSV.
UPC-A ⇄ EAN-13
A UPC-A is an EAN-13 whose first digit is 0, with that 0 left off. So UPC → EAN means adding a 0 in front, and EAN → UPC means removing it, which only works when the EAN starts with 0.
| UPC-A (GTIN-12) | EAN-13 (GTIN-13) | GTIN-14 |
|---|---|---|
| 036000291452 | 0036000291452 | 00036000291452 |
| 049000006346 | 0049000006346 | 00049000006346 |
| None | 4006381333931 | 04006381333931 |
The check digit stays the same because a leading zero adds nothing to the weighted sum. More on the background in UPC vs EAN.
UPC-E expansion rules
A UPC-E has a number system digit (0 or 1), six middle digits and a check digit. The sixth middle digit decides where the zeros go. Writing the middle digits as d1–d6:
| Last digit (d6) | UPC-A manufacturer part | UPC-A item part | Example UPC-E → UPC-A |
|---|---|---|---|
| 0, 1, 2 | d1 d2 d6 0 0 | 0 0 d3 d4 d5 | 04252614 → 042100005264 |
| 3 | d1 d2 d3 0 0 | 0 0 0 d4 d5 | 01234531 → 012300000451 |
| 4 | d1 d2 d3 d4 0 | 0 0 0 0 d5 | 01234543 → 012340000053 |
| 5–9 | d1 d2 d3 d4 d5 | 0 0 0 0 d6 | 01234558 → 012345000058 |
The number system and check digit carry over unchanged. Compression is the reverse and only works when the UPC-A has zeros in exactly these places. Make the short barcode with the UPC-E generator.
Which one should I use?
Use the form your retailer or marketplace asks for. In North America, packaging usually carries the UPC-A, while most other countries print EAN-13. Online marketplaces and GS1 databases accept either and often store GTINs as 14 digits. If you are unsure your number is right, run it through the barcode validator first.
Frequently asked questions
How do I convert a UPC to an EAN?
Add a 0 to the front. A 12-digit UPC-A becomes a 13-digit EAN-13 with the same check digit: 036000291452 becomes 0036000291452.
Can I convert any EAN-13 to a UPC?
Only EAN-13 numbers that start with 0. Remove the leading 0 to get the UPC-A. An EAN-13 starting with any other digit has no UPC-A equivalent, and you don’t need one: US and Canadian retail scanners have read EAN-13 since 2005.
How do I convert UPC-E to UPC-A?
Use the last of the six middle digits to put the zeros back. For example, UPC-E 04252614 ends its middle digits in 1, so the manufacturer part is 42100 and the item part 00526, giving UPC-A 042100005264. The converter applies all the rules for you.
Why can’t my UPC-A be converted to UPC-E?
UPC-E only works for UPC-A codes with number system 0 or 1 and enough zeros in specific places. Most UPCs can’t be compressed. If you need a short barcode for a small pack, ask GS1 US about a UPC-E–eligible number.
Do UPC and EAN versions of a code identify the same product?
Yes. 012345000058, 0012345000058 and UPC-E 01234558 are the same GTIN written in different lengths. Databases usually store it as 14 digits: 00012345000058.
Will the check digit change when converting?
No. Leading zeros don’t affect the GS1 check digit, so UPC-A, EAN-13 and GTIN-14 forms all end in the same digit, and a UPC-E shares the check digit of its UPC-A.