SKU and barcode generator
Fill missing SKUs and barcodes from Barcodes & SKUs. Pick a SKU template or build your own format, review every new value, then apply it to your store.
On this page
BarcodeMan builds SKUs, and on Shopify also barcodes, for the variants you choose. You see every new value next to the current one before anything is saved. Apply writes the new values to your store.
Where to find it
- Shopify: open Barcodes & SKUs, or choose Fix missing SKUs or Fix missing barcodes on the home page.
- Wix: choose Fix SKUs or Fix barcodes on the home page to open Generate or fix. Use Customize pattern to change how SKUs are built.
- BigCommerce: choose Generate SKUs on the home page.
- WooCommerce: BarcodeMan generates SKUs only. See WooCommerce SKUs and barcodes.
The steps below are for Shopify. The elements and extraction rules in Build a custom SKU format come from the same pattern builder that the other platforms use, which Wix and WooCommerce open with Customize pattern.
Generate SKUs on Shopify
- Open Barcodes & SKUs. Choose the Missing SKU view to list the variants without one.
- Tick the variants you want. If you tick none, the current page is used. To do a single variant, use Generate on its row.
- Choose Generate SKUs.
- In Configure, choose a template (see SKU templates) and fill in its settings.
- If some of the selected variants already have a SKU, choose Apply to: Missing values only fills the blanks, Existing values only replaces the SKUs that are already there. Configure says how many existing SKUs would be replaced.
- Choose Next: Review SKUs. Review & apply lists each variant with its current SKU and the new one. You can edit any new value. Use Edit settings to go back without losing your choices.
- Choose Apply N SKUs. Only variants whose value changes are counted.
One run handles up to 300 variants. If you close the panel before you apply, nothing is written and the list comes back as you left it.
To replace duplicate SKUs, choose Check duplicates → SKUs, open the Duplicated view, tick the variants to change, then choose Generate SKUs. The scope starts on Existing values only.
SKU templates
| Template | What it builds | Example |
|---|---|---|
| Prefix + number | Your prefix and a number that counts up | BP-5000 |
| Product + option + number | First 3 characters of the product name, first 2 of option 1, then a number | CLA-BL-5000 |
| Prefix + product + number | Your prefix, first 3 characters of the product name, then a number | BP-CLA-5000 |
| Sequential number | A number that counts up | 5000 |
| Random | Random Digits, Letters, or Letters and digits, at the Length you choose | 739204816502 |
| Custom | Your own elements, in your order |
Numbered templates let you set the Start value and Length. Templates join parts with a hyphen and use uppercase. The number starts at the start value and goes up by one for each variant in the run. If the start value doesn’t fit in the length, Configure asks you to increase Length or lower the Start value.
Build a custom SKU format
Choose Custom, then add, remove and drag Elements into the order you want:
- Custom Text: fixed text such as a store or brand prefix.
- Auto Code: a Sequential or random number, with Start value, Length (1 to 64) and Characters (Digits or Alphanumeric).
- Product name, Product type, Vendor, Option 1, Option 2, Option 3: values from each variant.
Each product element has an Extraction rule:
| Rule | Value | Result |
|---|---|---|
| Full value | Blue Shirt | BLUE-SHIRT |
| First characters (3) | T-Shirt | T-S |
| Last characters (2) | Shirt AB-204 | 04 |
| Initials | Blue Cotton Shirt | BCS |
| Text before separator / Text after separator (-) | Shirt-Blue | SHIRT / BLUE |
| Digits only / Letters only | Mug 12 oz | 12 / MUGOZ |
| Custom pattern (expert) | A regular expression; the first capture group is used |
The results above use a hyphen and uppercase. First characters counts every character, including spaces and punctuation, so spaces in the result become the separator. Initials takes the first character of each word, so a one-word value gives one character. Emoji are left out before characters are counted.
Set the Separator that goes between elements and the Letter case: Original, Uppercase or Lowercase.
Generate barcodes on Shopify
Choose Generate barcodes. The steps are the same as for SKUs: Configure, Next: Review barcodes, then Apply N barcodes. In Configure, choose where the barcode comes from:
- Generate a unique number (recommended): an internal EAN-13 number with its check digit calculated. No setup needed.
- Use Shopify variant ID: the variant’s numeric Shopify ID, unchanged. Variants without a valid ID are skipped.
- Custom barcode: Standard formats (EAN-13, UPC-A, EAN-8 or ITF-14 from your company prefix), Copy from SKU, or your own arrangement of Custom Text, Auto Code, SKU and Price.
The preview avoids barcodes already used by the variants the workspace has loaded. When you apply, BarcodeMan checks the store again and doesn’t write a barcode that another variant already uses.
Assign from Product labels
Product labels also has a quick way to fill blank SKUs or barcodes for the variants you are printing, without opening Barcodes & SKUs.
These numbers are not checked against the rest of your store. Use Check duplicates in Barcodes & SKUs afterwards.
Before you apply
- Link your label’s barcode element to the field you filled, Barcode or SKU. Filling a field doesn’t change the template. See Link to Data.
- Shopify POS can scan and search by barcode and by SKU. Test a printed label in your POS before printing a batch. See Shopify’s product search guide.
- Generated numbers are internal identifiers, not registered GS1 GTINs. If a retailer or marketplace needs a GTIN, use the product’s assigned GTIN or get one from GS1.
- If supplier barcodes already exist, keep them and link your barcode element to the right field.
- Copying SKUs into barcodes copies the values as they are, including any duplicates. Check for duplicates first.
See Barcode Formats for which barcode type to print.
Questions about this article? Email our team.
Send feedback