Shopify SKU search: how it works and how to fix it

Shopify’s store search can find a product by its SKU, but only in certain forms. Here are Shopify’s rules, the part numbers they miss, and how to make every form work.

Last updated

By Mojahid Islam, Developer of SameWord at MojarSoft.

Short answer: Can Shopify search find products by SKU? Yes. Shopify’s store search finds a product by its full SKU or barcode, or by the first 3 to 15 characters of a SKU. A part of the code from the middle or end only matches when it is a complete segment between dashes, slashes or spaces. To make every typed form work, including codes without dashes, add the SKU without separators as a product tag. SameWord does that automatically for every product.

How does Shopify store search match a SKU?

According to Shopify’s search behavior page, customers can find a product by searching its full SKU or barcode, or the beginning of either. A partial search matches the first 3 to 15 characters of a SKU, or the first 3 to 10 characters of a barcode, counted from the first character with or without hyphens. Characters from the middle or end of a code don’t match unless they form a complete segment, meaning a part separated by hyphens, slashes or spaces. Shopify gives these examples:

Shopper typesSKU storedFound?Why
abc1abc1-888-xlYesThe first characters of the SKU
abc1-8abc1-888-xlYesThe first characters, with the hyphen
abc1-888abc1-888-xlYesThe first characters, with the hyphen
888abc1-888-xl, abc1/888/xl or abc1 888 xlYesA complete segment between separators
888xlabc1888xlNoCharacters from the middle and end, not a complete segment

Which part numbers does Shopify SKU search miss?

Trade and parts shoppers often type a code the way it appears on a box, an invoice or an old catalogue, not the way it is stored in Shopify. Shopify’s rules cover the start of a code and its complete segments, so the searches most likely to fail are a code typed from the middle, a code whose segments are joined differently from the stored SKU, and a code longer than 15 characters typed only in part. Shopify’s own example shows that888xl does not find a product stored as abc1888xl. A shopper who sees “No results” for a part number usually assumes you don’t stock it and leaves.

How to make Shopify SKU search work without dashes

Shopify search reads product tags, so the reliable fix is to add each SKU in its compact form, lowercase with no dashes, slashes or spaces, as a tag. A product with the SKU NG-BV-012 gets the tag ngbv012. You can do this by hand for a few products, but every new product and every SKU change needs the same edit.

SameWord’s SKU search does it for the whole catalogue. Switch on “Find SKUs typed without dashes or spaces” in Search rules, and SameWord adds the compact form of every variant SKU as a hidden tag. On the Pro plan, new and edited products are updated automatically. On our test store on 5 December 2026, the searches NG-BV-012, ngbv012 and “NG BV 012” all reached the product Brass Ball Valve 1/2 inch BSP. SKU search is included on the free plan.

Can an exact SKU open the product page directly?

Yes, with SameWord’s optional “Jump to the product” setting. When a shopper’s search exactly matches one SKU, the shopper lands on that product page instead of a results list. It uses a small app embed that you switch on in your theme editor under App embeds. Any search that isn’t an exact SKU shows the normal results page.

Check your own SKU searches

  1. Pick five products with SKUs that contain dashes, slashes or spaces.
  2. On your storefront, search each SKU as stored, without separators, and with spaces instead of dashes.
  3. Note which forms return “No results”. Those are the searches your shoppers are losing.
  4. In SameWord, open the Search tester and run the same searches to compare results with and without SameWord.

Related guides

Sources

Fix SKU search on your store. SKU search is included on SameWord’s free plan.

Get launch access