Products and catalogArticle

Shopify Metafields: What They're For and How to Use Them

Composition, care, size guide: metafields add custom information to your products and display it in your store without a single line of code.

Grégory RixensFounder of MerchantLab5 min readUpdated on October 26, 2026
Screenshot of the Shopify admin replica in MerchantLab

Shopify metafields are custom fields you add to your products (or to your collections, customers, orders…) to store information Shopify doesn't provide by default: composition, care instructions, size guide, production time. You create the field once in the settings, fill it in product by product, then display it in your store with the theme editor, without writing any code.

This article is part of our guide to managing your products on Shopify.

What are metafields for?

A standard product page contains a title, a description, media, a price and variants. That's enough to get started, but it quickly falls short when every product has structured information to show in the same place every time.

Without metafields, you're left with two bad options:

  • putting everything in the description, which turns into a long block of text that's hard to read;
  • creating a different product page template for each case, which becomes unmanageable.

With metafields, each piece of information has its own box. The theme displays it in a dedicated block, for example a "Composition" collapsible block, identical on every product page but with content specific to each product.

Concrete examples

Store Metafield Value type
Clothing Composition, care instructions Multi-line text
Clothing Size guide File or page
Cosmetics Ingredient list Multi-line text
Gourmet food Harvest date, origin Date, text
Furniture Detailed dimensions Dimension, number
Crafts Production time Number or text
All Related products Reference to other products

How to create a metafield, step by step

Metafields are defined in the settings, in the section dedicated to metafields (the exact label may vary with the admin version: Metafields and metaobjects, formerly Custom data).

  1. Go to Settings, then Metafields and metaobjects.
  2. Choose the resource: Products (the most common case).
  3. Click Add definition.
  4. Give it a clear name, for example "Composition". Shopify generates a technical identifier (namespace and key).
  5. Choose the type: single-line text, multi-line text, number, date, file, product reference, true or false…
  6. If you like, add a description and validation rules (minimum length, allowed values).
  7. Save.

The definition now exists for all products. A Metafields section appears at the bottom of each product page.

Choosing the right type

The type determines what can be entered and how the theme can display it. A "Production time" stored as a number could one day be used for sorting or a calculation; as free text, it can't. A list of allowed values (for example "Cotton", "Linen", "Wool") prevents typos from one product page to the next.

Which metafields should you create first?

Start from the questions your customers ask most often, by message or in person. If people keep asking "how do I wash it?", a Care metafield is a must. If most returns are about size, a Size guide comes first. For a food store, it will more likely be origin or harvest date.

Ask yourself three questions before creating a definition:

  1. Does the information change from one product to another? If it's the same everywhere, a simple text block in the theme is enough.
  2. Does it need to be displayed in the store, or only used internally?
  3. Which value type best describes the information?

Three clear answers, and your metafield will be useful from day one.

Filling in metafields on each product page

  1. Open a product in Products.
  2. Scroll down to the Product metafields section.
  3. Click the field and enter the value.
  4. Save.

For a large catalog, bulk editing from the product list lets you show metafield columns and fill in several products in a row. File imports can also include them in some cases: see our guide to importing your products with a CSV file.

Displaying a metafield in your store, no code needed

This is where metafields really come into their own. With Shopify's recent themes, including Dawn or Horizon, you connect a theme block to a dynamic source.

  1. Go to Online Store › Themes, then Customize.
  2. At the top of the editor, choose the Products template (default product page).
  3. Add a block to the product information section, for example a collapsible row or a text block.
  4. In the block's content setting, click the Connect dynamic source icon.
  5. Choose your metafield, for example "Composition".
  6. Save.

Each product page now shows its own composition in that block. If a product has no value, the block stays empty or doesn't appear, depending on the theme. To go further with the editor, read our guide to customizing your Shopify theme without code.

Example: a sweater's product page

Without metafields, the sweater's description mixes the hook, composition, care and size guide. With three metafields (Composition, Care, Size guide) connected to three collapsible blocks, the description focuses on what matters and the practical details are one click away. That's exactly the structure recommended in our method for writing a product page that sells.

Metafields, tags, variants: which does what?

Need Right tool
Classify a product for an automated collection Tag or product type
Offer the customer a choice (size, color) Variants
Display information specific to the product Metafield
Reuse structured content across several products Metaobject linked by a metafield

These tools work very well together: a tag to put the product in the right collection, variants for the customer's choices, metafields for the details shown on the product page.

A common mix-up: creating a "Material" option when every unit of the product has the same material. An option is a choice for the customer. Fixed information is a metafield.

Mistakes to avoid

  • Creating too many metafields at the start. Begin with two or three that are genuinely useful.
  • Choosing text for everything, then regretting that you can't sort or filter.
  • Renaming or deleting a definition that's already in use without checking where it's displayed.
  • Forgetting to connect the metafield in the editor: the value exists, but nobody sees it.

Practicing with metafields

Metafields seem abstract until you've gone through the whole process: define, fill in, connect, see the result. In MerchantLab, you go through it in a replica of the Shopify admin and its theme editor, with an instruction at each step and an automatic check. You can see the plans on the pricing page.

Key takeaways

  • A metafield is a custom field for information Shopify doesn't provide.
  • You define it in the settings, fill it in on the product page, and display it through the theme editor.
  • The value type matters: number, date, file, list… not just text.
  • Option = the customer's choice; metafield = fixed product information.
  • Start small: two or three well-chosen metafields are enough.

Frequently asked questions

Do I need to know how to code to use metafields?

No. You create the definition in the settings, fill in the value in the product page, then display it by connecting a theme block to that source, from the editor. Code is only needed for highly customized displays.

What's the difference between a metafield and a tag?

A tag is a simple keyword used to classify and filter products, not designed for display. A metafield is a typed field (text, number, file, date…) with a value meant to be shown or used. The two complement each other.

Are metafields exported with products?

Shopify's standard CSV export and import can include product metafields, depending on their type and the version of the tool. For large volumes or complex types, specialized apps exist. Always check the result on a few product pages.

What is a metaobject?

It's a reusable content model made of several fields, for example a "Designer" entry with a name, photo and bio. You create it once, then link it to several products through a metafield. It's the next step once you've mastered metafields.

Request sent. We reply within one business day.