Barcodes guide

UPC, EAN, GTIN and ISBN check digits explained

What you’ll need

  • Your products export CSV

    How to get this: Your products export CSV
    1. Products › Export › All products › Export products.
    2. Small exports download; big ones arrive by email.

    Step-by-step guide (opens in a new tab)

  • Your barcodes (a list, a supplier sheet, or a USB scanner)

  • Shopify’s product importer, to load the result

    How to get this: Shopify’s product importer, to load the result

    It’s in Products › Import. Export a backup first: an import can’t be cancelled once it starts.

    Step-by-step guide (opens in a new tab)

Check your barcodes

The GS1 rule

Starting from the right of the digits before the check digit, multiply them by 3, 1, 3, 1… and add them up. The check digit is what takes the total to the next multiple of 10. For 03600029145_ the check digit is 2.

Lengths

  • UPC-A: 12 digits. UPC-E: 8 digits starting with 0 or 1 (a compressed UPC-A).
  • EAN-13: 13 digits. EAN-8: 8 digits.
  • GTIN-14: 14 digits, often on cases.
  • ISBN-13 starts with 978 or 979. ISBN-10 has 9 digits and a digit or X.

More guides

Based on Using CSV files to import and export products, Using barcodes for products and Variants now support multiple barcodes (Sept 2026).