UPC to EAN Converter

Convert a 12-digit UPC-A to a 13-digit EAN-13 by adding a leading zero, or back again when the EAN starts with 0. The tool also expands UPC-E to UPC-A and compresses UPC-A to UPC-E where the rules allow.

  • 100% free
  • No sign-up
  • No watermark
  • Works offline in your browser

The direction is detected from the length: 12 digits = UPC-A, 13 = EAN-13, 8 = UPC-E.

Detected UPC-A Valid check digit

UPC-A (12)036000291452 Generate
EAN-130036000291452 Generate
UPC-E (8)Not compressible
GTIN-1400036000291452 Generate
  • This UPC-A has too few zeros in the right places to compress to UPC-E. Only some codes can.

How to convert between UPC and EAN

  1. Paste a UPC-A (12 digits), EAN-13 (13), UPC-E (8) or GTIN-14 (14).
  2. See every equivalent form: UPC-A, EAN-13, UPC-E (when possible) and GTIN-14.
  3. Click Copy next to the one you need, or Generate to make that barcode.
  4. 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
036000291452003600029145200036000291452
049000006346004900000634600049000006346
None400638133393104006381333931

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 partUPC-A item partExample UPC-E → UPC-A
0, 1, 2d1 d2 d6 0 00 0 d3 d4 d504252614 → 042100005264
3d1 d2 d3 0 00 0 0 d4 d501234531 → 012300000451
4d1 d2 d3 d4 00 0 0 0 d501234543 → 012340000053
5–9d1 d2 d3 d4 d50 0 0 0 d601234558 → 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.

Related free tools