SKU or barcode: which is which?
A variant in Shopify has two separate fields for codes, and they do different jobs:
- SKU: your own code, made of letters and digits that mean something to people. It only has to be unique inside your store. Example:
TSH-BLU-M-001. - Barcode: a number made for scanners. For goods sold through other retailers it is a GTIN from GS1 (a UPC or EAN), which is unique worldwide. Example:
0614141000012.
Most variants carry both. Staff read the SKU; the till and the stockroom scanner read the barcode. You can also print a SKU as a barcode (Code 128 takes letters and digits), which is common for items that never leave your own shop.
What makes a good SKU
A SKU is easiest to use when anyone can guess roughly what it is from the code itself. A few habits get you there:
- General first, details last. Start with the product or category, then the attributes, then a running number:
TSH(T-shirt),BLU(blue),M(medium),001. - The same order every time. If colour comes before size once, it always does. Sorting a list by SKU then groups related variants together.
- Capital letters, digits and hyphens. Leave out spaces and symbols such as
/,#or&; some scanners, spreadsheets and barcode types handle them badly. - Avoid look-alikes. O beside 0, and I beside 1, get confused when someone copies a code from a label by hand.
- Keep it short. Eight to fourteen characters is plenty. Some marketplaces accept shorter SKUs than Shopify does (Etsy's limit is 32 characters).
- Leave out things that change. A price or a supplier name in the SKU is wrong the day it changes.
Adding SKUs in Shopify by hand
For a handful of products, type them in. Open the product in your Shopify admin, choose a variant, and fill in the SKU field in its inventory section (if the fields are hidden, tick the option that says the product has a SKU or barcode). Save, then move to the next variant.
It works, but it is slow, and nothing stops a typo or a code that another variant already uses: Shopify doesn't check SKUs for repeats.
Many SKUs at once with a spreadsheet
Shopify can export your products to a CSV file, which has a Variant SKU column. Fill it in (a spreadsheet formula can join parts together), then import the file again with the option to overwrite products that have the same handle.
Watch two things. The file must keep each row's handle and option values, or Shopify can't match it to the right variant. And spreadsheet programs like to turn long numbers into forms such as 6.14141E+11; if the same file holds barcodes, format that column as text before saving.
Generating SKUs with an app
An app such as Kodelo builds the SKUs for you from rules you set: parts of the product details (vendor, type, options) and a running number, or a custom pattern. You tick the products, and the list shows each variant's current SKU next to the new one before anything is saved. Codes your products already have stay as they are unless you choose to replace them, and Prevent duplicate codes checks your store so a new SKU never repeats an existing one.
For products added later, Auto Generate gives new products and new variants their SKU a few seconds after they're saved.
Mistakes to avoid
- Two variants with one SKU. Reports, stock counts and labels can't tell them apart. Search your store for repeats before printing labels.
- Changing SKUs that other systems use. A marketplace, an accounting tool or a warehouse may match orders by SKU. Change them in all places at once, or not at all.
- Giving a retired SKU to a new product. Old orders and reports would then point to the wrong item.
Create SKUs in Shopify with Kodelo
- Open Generate. In your Shopify admin, open Kodelo from Apps and go to Generate.
- Choose SKUs only. Pick how SKUs are made: build them from product details, or use a custom pattern.
- Tick the products. Tick whole products or single variants; use the search box or the filters to narrow the list.
- Check the new codes. Each variant shows its SKU now and the new SKU it will get.
- Generate. Click Generate. Kodelo saves the SKUs in Shopify.
Questions
Do SKUs have to be unique in Shopify?
Shopify doesn't require it, but stock counts, reports and labels only stay reliable when each variant has its own SKU.
Can a SKU contain letters?
Yes. SKUs can mix capital letters and digits; that is what makes them readable. Barcodes such as UPC and EAN are digits only.
Should my SKU be the same as my barcode?
It can be, but separate codes are easier to work with: a short, readable SKU for people and a GTIN for scanners and marketplaces.
Can I change a SKU later?
Yes, in Shopify or with an app. Update every other system that matches products by SKU at the same time.