Log inBook a demo

HS codes in Shopify: how to add them, country-specific codes and why they matter

If you ship outside your own customs area, every product needs an HS code: the international code that tells customs what the product is. How HS codes work, where to add them in Shopify, how country-specific codes and the country of origin fit in, and how to keep them right across a large catalog.

CEO & founder

  • 6 min read
On this page

In short: an HS code is the international customs code, usually six digits, that classifies what a product is. Shopify asks for one on every product you ship internationally. You add it in the product’s Shipping section together with the country of origin, with the bulk editor, during label purchase or with the duties and import taxes CSV, and you can add country-specific codes with extra digits for the countries you sell to. Without one, Shopify estimates duties from the product’s description and category, which can be less accurate.

How HS codes are built

The Harmonized System is a shared classification that customs authorities around the world use. The first six digits are the same everywhere, and countries add digits after them for their own tariffs:

LengthLevelExample: a stoneware mug
2 digitsChapter69: ceramic products
4 digitsHeading6912: ceramic tableware other than porcelain
6 digitsSubheading, the same worldwide6912.00
More digitsAdded by each country or unionThe EU, the UK and the US each extend the code

Classification depends on what a product is made of and what it is for, so check it in the tariff database of the country you ship to, or with a customs broker, before you rely on it.

Why HS codes matter

  • Duties: Shopify calculates duties and import taxes from the HS code and the country of origin.
  • Customs: missing or wrong codes risk penalties, border delays, seizure of the goods or a refused import.
  • EU parcels: since 1 November 2026, low-value parcels into the EU need product identifiers, and some goods are exempt based on their HS code chapter, so Shopify reads the exemption from the code you save. See Shopify barcodes for the identifiers themselves.

How to add HS codes in Shopify

  1. From your Shopify admin, go to Products and open the product.
  2. In the Shipping section, make sure Physical product is on.
  3. Select the Country of origin.
  4. Enter the Harmonized System (HS) code. If you don’t know it, start typing a description of the product to search for a code.
  5. Optional: add country-specific codes with Add HS codes by country/region.
  6. Click Save.

The other ways in, and when each fits:

MethodBest for
Product pageA few products, or when you need to search for a code by description
Bulk editorMany products with codes you already know
Duties and import taxes CSVA large catalog, or finding which products are missing codes
During label purchaseFilling a gap while fulfilling an order, then saving it to the product

In the bulk editor, add the Harmonized system code and Country of origin columns from the Shipping section. The CSV lives under Settings > Taxes and duties, in the Duties and import taxes section, where you can export the products with missing information first. Checked against the Shopify Help Center on 20 November 2026.

Country-specific codes

When a country-specific code exists for a destination, Shopify uses it to calculate duties, and otherwise falls back to the six-digit code. Shopify’s own example: a product with the code 3210.00 and a UK-specific code of 3210.00.123 uses the longer code for UK orders and the six-digit code for Canadian ones. You can only add country-specific codes for the countries and regions in your markets.

Covada customs information with the dialog for HS codes by country or region, for the United States and Norway

Figure 1HS codes by country or region in Covada, next to the global code. Codes shown for illustration.

Country of origin

The country of origin is where a product is made, or assembled into the form you sell it in, not where its materials come from. A table assembled in the United States from Canadian wood, Mexican glue and Chinese screws has the United States as its origin. You can set a default country of origin under Settings > Taxes and duties, which applies to every product that doesn’t have its own.

If you use Managed Markets

With Managed Markets, HS codes are assigned to your products automatically. Codes you entered are taken into account, but the code Managed Markets applies may differ from yours. You can compare them in the product’s Shipping section, under Managed Markets codes.

Keeping HS codes right across a catalog

Products of the same type and material usually share a heading, so start there: classify each product type once, check it, and apply it to the products that match. Supplier files and commercial invoices often include codes, but a supplier’s export code isn’t always right for your destination beyond the first six digits. And every new product needs a code before it ships, not when the first international order arrives.

In Covada, the Details step suggests the HS code, the country of origin and the weight for each product, with a separate code per country where you need one, and each value waits as a suggestion with the reasoning until you accept it. HS code and country of origin can also be required fields, so no product is saved or published without them.

Customs information in Covada with weight, country of origin and HS code shown as pending suggestions

Figure 2Covada’s Details step: weight, country of origin and HS code arrive as suggestions, each with its reasoning.

Common mistakes

  • One code for a whole collection, when the products are made of different materials.
  • The country where the materials come from as the country of origin, instead of where the product is made.
  • Copying a supplier’s full export code without checking the digits your destination uses.
  • New products without codes, discovered at the first international order.
  • Assuming your own codes are used after switching on Managed Markets.

Frequently asked questions

What is an HS code in Shopify?

The Harmonized System code that classifies a product for customs, usually six digits. Shopify uses it, with the country of origin, to calculate duties and fill customs declarations, and asks for it on every product you ship internationally.

Where do I add HS codes in Shopify?

In the Shipping section of each product, under customs information, together with the country of origin. For many products, use the bulk editor, the duties and import taxes CSV in Settings > Taxes and duties, or add codes while buying a shipping label and save them to the product.

How many digits should an HS code have in Shopify?

The global code has six digits. Countries add more for their own classification, and Shopify lets you add country-specific codes for the countries and regions in your markets. When a country-specific code exists, it is used for duties, otherwise the six-digit code is.

What happens if a product has no HS code?

Shopify then bases duty calculations on the product’s description and category, which can be less accurate. Missing or wrong codes also risk penalties, border delays, seizure or a refused import.

Do I need HS codes if I only sell within the EU?

Shipments within the EU don’t go through customs. You need HS codes as soon as you ship to customers outside it, such as in the UK, Norway, Switzerland or the US, and EU customs uses them for parcels coming into the EU.