What are Shopify metafields used for?
Anything you want to show or use that Shopify has no field for.
- Products: care instructions, materials, size charts, ingredients, a second description.
- Variants: a different image or a shade name per variant.
- Customers: a loyalty tier or a trade account number.
- Orders: a gift message or a delivery slot.
How do you add a metafield in Shopify?
In your Shopify admin, open Settings, then Metafields and metaobjects, and pick the part of the store, such as Products.
Add a definition. Pick a standard one if it fits, or create your own with a name and a type, such as single line text, number, file or product reference.
Set the rules, such as a maximum length or a list of allowed values, so everyone fills it in the same way.
Open a product and fill in the new field in its Metafields section.
Connect it to your theme (next section).
How do you show metafields on your store without code?
If your theme uses JSON templates, which Shopify's own themes do, you connect a metafield in the theme editor.
Create the metafield first. It must exist before you can connect it.
Go to Online Store, Themes, and click Edit theme.
Open the template, such as the product page, and click the section where it should show.
Next to the setting you want to fill, click the dynamic source button and pick your metafield.
Save.
Older themes without JSON templates need a developer to add the metafield in the theme code.
What is the difference between metafields and metaobjects?
A metafield adds one field to something that already exists, such as a product.
Metafields and metaobjects compared
What it is
- Metafield
- An extra field on an existing record
- Metaobject
- A new record type you define
Example
- Metafield
- Care instructions on one product
- Metaobject
- One size chart linked to many products
Edit once, change everywhere
- Metafield
- No
- Metaobject
- Yes
A metaobject is a new kind of record you design, with its own fields, which you can then link to from many products. A size chart used by 40 products is a good metaobject: you edit it once and every product shows the change.
Shopify's category metafields, such as color, use metaobject entries for their values.
From Shopify's developer docs, read on 29 November 2026.
What are the limits of Shopify metafields?
- Up to 256 definitions per resource type, such as 256 product metafield definitions.
- Most types hold up to 64KB of data. No value can be larger than 2MB.
- Apps get their own allowance and keep their fields in their own namespace, apart from yours.
Few stores reach these limits. The usual problem is the opposite: fields created by old apps that nobody uses, cluttering every product page in the admin.
Metafields when you migrate to Shopify
Moving from Magento, WooCommerce or another platform, your custom attributes usually become metafields or metaobjects.
Map each old attribute to a definition before the import, so the data lands in a field with rules, not in a description.
How we use metafields
Every store we build or migrate uses metafields and metaobjects for product details, size charts and filters, so the team can edit them without a developer.
We have done this across stores we built and migrated, and we name no project here.
If you need one or two extra fields on your products, you can set them up yourself in an afternoon with the steps above. You do not need us.

