How to assign variant images in Shopify in bulk

Assign images to Shopify variants in bulk, matched by color, instead of one variant at a time. Preview the matches first, and undo from Activity.

  • By Merchant Control
  • 5 steps
  • 3 min read
Video: Assign variant images in Shopify in bulk, matched by color · English subtitles

In short

To assign variant images in Shopify in bulk, open Bulk Actions in Merchant Control, set Resource to Images and choose Variant images. Merchant Control matches each image to a variant by an option value, such as the color, found in the image's alt text or file name, instead of one variant at a time. Preview changes shows each variant's image now and after, with the reason it matched, and Undo in Activity puts the previous variant images back.

The example links the images of a snowboard to its Blue and Green variants by their alt text. Its Red variant has no matching image on purpose.

Assign variant images, step by step

Step 1: Choose Variant images

Open Bulk Actions and set Resource to Images. Keep the Product images tile, and under Action choose Variant images.

Step 2: Select the products

In step 1, Select images, choose the products, with a condition under Products must match or a pasted list.

Step 3: Match on the color

In step 2, Choose the change:

  1. Keep Change on Link images to variants.
  2. In Match on option, type Color. Leave it empty to try every option.
  3. Set Find that value in to Image alt text or Image file name. The file name is worked out from the image URL, because Shopify does not report one.
  4. Leave Also replace images variants already have off. Then only variants with no image are linked.

Press Preview changes. Nothing is written yet. Step 3, Review and run, shows each variant with the image it Shows now, the image After, and why it matched: here, Blue found in the image's alt text. A variant without a matching image, here Red, is left alone and counted as such.

Step 5: Run it

Press Run now. Merchant Control takes you to Activity. To go back, open the run and press Undo: it puts the previous variant images back. A variant relinked since is left as it is. See Undo bulk edits in Shopify: what comes back.

Good to know

  • The images stay on the product: only the variants' links change.
  • Replacing existing links: with Also replace images variants already have on, an image someone chose by hand is replaced, so the run happens once and can't be scheduled to repeat.
  • Take images off variants: set Change to Remove images from variants. The image stays on the product; only the variant's link to it is removed.
  • Credits: image actions use credits. Review and run shows what the run will use before you press Run now, and Usage lists what each image action uses.

Features in this tutorial

Less work, more profit.

Get started for free

No monthly fee. Includes 100 one-time credits.