How to Convert a UPC-A Code to EAN-13 (and Back)

The short answer

To convert UPC-A to EAN-13, put a 0 in front of the 12 digits. Nothing else changes, and the check digit remains valid because the weights line up once the extra zero is added.

Example

The UPC-A code 036000291452 becomes the EAN-13 code 0036000291452.

Converting EAN-13 back to UPC-A

The reverse only works when the EAN-13 begins with 0. Remove that leading zero to get the 12-digit UPC-A. An EAN-13 that starts with any other digit has no UPC-A equivalent.

Why it matters for sellers

Many online marketplaces and inventory systems store product codes as 13-digit GTINs. If you enter a 12-digit UPC-A there, systems often pad it with a zero automatically. Knowing the rule helps you spot an error when a code from a supplier does not match the code printed on the pack.

To check any code, scan it with the LuckyScanner barcode scanner and compare the decoded number with your records.