How to bulk add barcodes to Shopify variants

Add barcodes to many Shopify variants at once: number them, or build them from a template or the SKU. Preview every barcode before it is saved.

  • By Merchant Control
  • 5 steps
  • 3 min read
Video: Bulk add barcodes to Shopify variants, with Preview · English subtitles

In short

To bulk add barcodes in Shopify, open Bulk Actions in Merchant Control, set the Field to SKU & Barcode, choose your products and pick Number barcodes from a start number or Set barcode from template. Preview changes shows every variant's barcode Now and After before anything in your store changes. Activity lists the run. Supported edits can be undone there.

The example in this guide gives the three snowboards in a Winter Sale collection their first barcode: 100001, 100002 and 100003.

Bulk add barcodes, step by step

Step 1: Choose the products

In Merchant Control, open Bulk Actions. In step 1, Select products:

  1. Leave Resource on Products.
  2. Set Field to SKU & Barcode.
  3. Under Products must match, add a condition, for example Product collection › is › Winter Sale. Here that's the three snowboards in it.
Step 1: Field set to SKU & Barcode, products from the Winter Sale collection
Step 1: Choose the products

Step 2: Choose Number barcodes from a start number

In step 2, Choose the change:

  1. Set Action to Number barcodes from a start number.
  2. Under Start from, enter 100001.

The note under the action says what it does: Replaces every current barcode, numbering oldest product first. Preview matching products shows the products the run will change.

Number barcodes from a start number, Start from 100001
Step 2: Choose Number barcodes from a start number

Step 3: Preview the barcodes

Press Preview changes. Nothing changes until you run it. Review and run shows one row per variant: under Now the barcode is empty, and under After it is 100001, 100002 and 100003.

Review and run: empty under Now, 100001 to 100003 under After
Step 3: Preview the barcodes

Internal numbers only: In this example the barcodes are numbers for your own use, such as shelf labels in your own store. They are not GTINs. Shopify sends a variant's barcode to Google as its GTIN, so if you sell on Google Shopping, internal numbers in this field are not valid GTINs: put the manufacturer's GTIN in the barcode instead. See Fix a missing GTIN, brand or category for Google Shopping.

Check for clashes first: The preview only compares the variants you selected. Before you run, search your Shopify products for 100001 to 100003 to make sure no other product already uses them.

Shopify products searched for 100001: no other product uses it
Shopify products searched for 100001: no other product uses it

Step 4: Run it

Press Run now. Merchant Control takes you to Activity, where the run is listed and shows Completed when it's done. In Shopify, the three snowboards now have a barcode.

Activity: the run, Completed
Step 4: Run it

Step 5: Undo, if you need to

Activity lists the run. Supported edits can be undone there: open the run and press Undo. Merchant Control asks once more and reminds you that Later edits stay unchanged. Confirm with Undo. For what Undo puts back in general, see Undo bulk edits in Shopify.

The Undo confirmation: Later edits stay unchanged.
Step 5: Undo, if you need to

Good to know

  • Barcode from a template: Set barcode from template builds each barcode from variables, for example [sku] for the variant's own SKU, or [product_handle] (the handle, the product's web address name, for example the-collection-snowboard-hydrogen) and [option1].
  • Only new variants: Continue barcode numbering continues above the highest numeric barcode in the store.
  • Clean up: the same Action menu has Replace text in barcode, Remove text from barcode and Clear barcode.
  • Credits: every preview shows what a task will use before it runs. Where Undo is offered, it uses no credits; the credits the task used stay used.
  • Save setup keeps this edit's settings for next time. Schedule runs it at a later moment (Advanced plan and up).

Features in this tutorial

Less work, more profit.

Get started for free

No monthly fee. Includes 100 one-time credits.