Home › Resources › SizeSpecification JSON-LD

Shopify size chart JSON-LD: ProductGroup and SizeSpecification schema guide

Schema.org already defines how to represent apparel sizes and garment measurements cleanly: ProductGroup with variesBy size, paired with SizeSpecification and QuantitativeValue measurements using UN/CEFACT unit codes CMT (centimetres) and INH (inches).

By · Published 4 December 2026

The short answer

To publish machine-readable size charts in Shopify JSON-LD, nest each size variant inside a Schema.org ProductGroup (variesBy: ["https://schema.org/size"]), attach a SizeSpecification with sizeSystem (e.g. WearableSizeSystemUK) and list QuantitativeValue items with valueReference (such as WearableMeasurementChestOrBust), numeric value or minValue/maxValue, and UN/CEFACT unitCode ("CMT" for cm, "INH" for inches). Our free Image-to-Size-Chart Converter and Size Chart Transmuter generate this snippet automatically.

Schema.org properties for Shopify clothing size charts
PropertySchema.org type / valueExample
variesByURL"https://schema.org/size"
sizeSizeSpecification{ "@type": "SizeSpecification", "name": "M" }
sizeSystemWearableSizeSystemEnumeration"https://schema.org/WearableSizeSystemUK"
valueReferenceWearableMeasurementTypeEnumeration"https://schema.org/WearableMeasurementChestOrBust"
unitCodeUN/CEFACT Common Code"CMT" (cm) or "INH" (inches)

Valid SizeSpecification JSON-LD example

{
  "@context": "https://schema.org",
  "@type": "ProductGroup",
  "name": "Merino Crewneck Jumper",
  "variesBy": ["https://schema.org/size"],
  "hasVariant": [{
    "@type": "Product",
    "name": "Merino Crewneck Jumper - S",
    "size": {
      "@type": "SizeSpecification",
      "name": "S",
      "hasMeasurement": [{
        "@type": "QuantitativeValue",
        "name": "Chest",
        "valueReference": "https://schema.org/WearableMeasurementChestOrBust",
        "value": 99,
        "unitCode": "CMT",
        "unitText": "cm"
      }]
    }
  }]
}

Generate this exact markup from any image or spreadsheet using the Image-to-Size-Chart Converter or Size Chart Transmuter, or publish it across your store with Rendered Fits: AI Size Chart (zero theme edits).

Frequently asked questions

What UN/CEFACT unitCode values should I use for Shopify size charts?

Use CMT for centimetres and INH for inches inside Schema.org QuantitativeValue nodes.

How does ASRS-2026 check structured sizing markup?

Check ASRS-05 in our Agentic Sizing Readiness Standard verifies that Product or ProductGroup JSON-LD exposes offered sizes with structured SizeSpecification measurements.

Can Rendered Fits: AI Size Chart add SizeSpecification JSON-LD without editing Liquid files?

Yes. AI Size Chart uses a Shopify OS 2.0 app embed to inject SizeSpecification JSON-LD in raw HTML without modifying your theme files.

More guides: Fix image size charts · Shopify Catalog mapping · ChatGPT Shopping · Google AI Mode · Perplexity Shopping · SizeSpecification JSON-LD · cm to inches

Start with a free trialBilled through Shopify

Install