Skip to main content

Metafield limits

This document outlines the various limits for metafields and their definitions per shop, including apps.

Anchor to Metafield definition limitsMetafield definition limits

Note

Standard metafield definitions don't count towards limits unless specified.

Limit TypeLimit
Definitions per resource type250
Pinned definitions limit per resource type20

Anchor to Metafield type character limitsMetafield type character limits

TypeCharacter limit
boolean65k
color65k
date65k
date_time65k
dimension65k
id2,048
json2m
link65k
money65k
multi_line_text_field65k
number_decimal65k
number_integer65k
rating65k
rich_text_field65k
single_line_text_field65k
url2,048
volume65k
weight65k
Note

Single line text metafield predefined choices are limited to 128 values.

All list types (collection, customer, date and time, decimal, dimension, file, integer, JSON, link, mixed reference, money, multi line text, page, product, product taxonomy, rating, single line text, URL, variant, volume, and weight) have a maximum of 128 items. The only exception is metaobject references, which support up to 256 items.

Note
  • Each item in the list has the same character limits as its corresponding single value type (for example, each text field in a list.single_line_text_field can store up to 65k characters).
  • You can use the list.min and list.max validations through the Shopify Admin API to set custom minimum and maximum limits for the number of items in a list, as long as they don't exceed the maximum items shown above.

Anchor to Metafield definition capability limitsMetafield definition capability limits

Limit TypeLimit
Used to power smart collections128
Use as admin filter128
Note

Metafield definition capabilities extend metafield functionality. Learn more about metafield capabiltiies.


Was this page helpful?