Shopify 9 min read

Shopify Size Charts: Build Them as Data

QodeBites card reading Build your Shopify size chart as data, beside a size chart table with sizes S to XL, the M row highlighted in violet above a measuring ruler

The right way to build a Shopify size chart is as data, not as a picture. Store each chart once as a metaobject, link every product to the chart it uses through a product metafield, and let the theme render it as a real HTML table next to the size selector. Don’t paste a JPEG into 400 product descriptions. One chart per fit block, edited in one place, readable on a phone, translatable, and visible to screen readers and search engines.

This guide shows how to set that up with Shopify’s own custom data tools, where model-fit information belongs, and how to use your returns to keep the chart honest. The platform details come from Shopify’s Help Center and developer documentation. The build choices come from the size-and-fit work we scope on fashion projects.

Why most Shopify size charts don’t work

On most apparel stores the size chart is an image someone uploaded years ago and then pasted into product descriptions. It works until it doesn’t:

  • It’s unreadable on mobile. A wide measurement grid shrunk to a 375px screen becomes something people pinch and squint at. Many give up and guess.
  • It can’t be translated. A bilingual English/Arabic store needs the chart in both languages. Text baked into an image means two images, and the Arabic one is usually missing.
  • It’s invisible to assistive technology. Screen readers get whatever the alt text says, which is rarely the measurements.
  • Updating it is a project. When the pattern-maker revises the waist on a trouser block, someone has to find every product that carries the old image.
  • It’s generic. One brand-wide chart ignores the fact that your slim-fit shirt and your relaxed-fit shirt fit differently, and that difference is what the shopper needs to know.

The fix isn’t a prettier image. It’s to stop treating the chart as decoration and start treating it as product data.

Three ways to add a size chart in Shopify

There are three realistic routes. They trade setup effort against how much control you keep.

Approach How it works Good for Watch out for
Image or table in the description Chart pasted into each product’s description A handful of products with one fit Edits multiply per product; images can’t be translated or read aloud
Size chart app An app injects a chart widget, usually matched to products by rules Fast setup with no theme work Another script on the product page; check how it handles RTL and translations
Metaobject + product metafield One chart entry per fit block, referenced from each product and rendered by the theme Catalogues with several fits, bilingual stores, and teams who want one source of truth Needs a small theme change, done once

On our fashion proposals the stack lists a size-chart app or native size guides plus model-fit metadata, because both are legitimate. If you have a small catalogue and no developer, an app is fine. If you sell several fits and more than one language, the metaobject route pays for itself the first time a block changes.

How to build a Shopify size chart with metaobjects

Shopify describes metaobjects as the tool for data that is “best represented by multiple fields”. A size chart fits that description exactly. You define the structure once under Settings > Custom data and add the content under Content > Metaobjects.

Data model diagram. Three size chart entries, men's regular tops, men's slim trousers and kids' age sizing, each hold a list of size rows. Four products, two shirts, a chino and a kids tee, point to one chart entry through a product metafield, and the theme renders the linked chart as a table on the product page
One chart per fit block. Products reference a chart, they don’t copy it, so a single edit updates every product that uses it.

1. Define a “Size row” metaobject

Create a definition for a single row of the chart, with a single_line_text_field for the size label (S, M, 32, 6–7Y) and one number or dimension field per measurement: chest, waist, hip, length, inseam, whatever your blocks use. Keep the measurement set per garment type. A trouser row and a dress row don’t need the same columns, so split them into separate definitions if the difference is large.

2. Define a “Size chart” metaobject that lists rows

Create a second definition for the chart itself: a name, a unit note (centimetres, or both centimetres and inches), an optional rich-text fit note, and a field of type list.metaobject_reference pointing at your size rows. Then create one entry per fit block, not per product: “Women’s tops – regular”, “Men’s trousers – slim”, “Kids – age sizing”. Most fashion catalogues end up with a handful of charts, not hundreds.

Add a product metafield definition of type metaobject reference that points at the Size chart definition. On each product, pick the chart it uses. If you import products by CSV or a migration tool, map the chart reference there too, so new ranges arrive with the chart already attached. The same thinking applies to any attribute a product needs, as our guide to mapping product data into Shopify metafields explains.

4. Render it in the theme

Shopify’s documented route for showing metaobject content is the theme editor: add a block to the product template and use Connect dynamic source to pull in the linked entry. For a proper table inside a drawer or an expandable section, a short Liquid snippet gives you full control. A minimal version looks like this:

{%- assign chart = product.metafields.custom.size_chart.value -%}
{%- if chart -%}
  <details class="size-guide">
    <summary>Size guide</summary>
    <table>
      <thead><tr><th>Size</th><th>Chest (cm)</th><th>Length (cm)</th></tr></thead>
      <tbody>
      {%- for row in chart.rows.value -%}
        <tr><td>{{ row.size.value }}</td><td>{{ row.chest.value }}</td><td>{{ row.length.value }}</td></tr>
      {%- endfor -%}
      </tbody>
    </table>
  </details>
{%- endif -%}

Because it is a real <table>, it can scroll sideways on small screens instead of shrinking, it takes a centimetre/inch toggle if you want one, and assistive technology can read it. Our Shopify accessibility guide covers why that matters beyond the size guide.

5. Don’t confuse the chart with the size option

The size chart explains what each size means. The size option on the variant is what the shopper buys. They are different data. Shopify’s standard product categories also bring category metafields. Its Help Center gives the example of a shirt category adding size, neckline, fabric and colour metafields. These describe the product and help filtering. None of them replaces the chart.

Where the size guide sits on the product page

A good chart in the wrong place still gets ignored. The size guide link belongs directly beside the size selector, the moment the shopper is deciding. It shouldn’t sit in a tab below the fold or in a footer page.

Annotated product page layout on a phone. Beside the size buttons sits a Size guide link that opens a drawer with the measurement table. Below the selector is a model-fit line reading model is 178 cm and wears size M, and a short fit note reading runs small, size up for a relaxed fit. The add to cart button follows
Put fit help where the size decision happens: the guide beside the selector, then the model-fit line and fit note directly under it.

Three elements do the work together:

  • The size guide link, opening a drawer or expandable panel so the shopper never leaves the page.
  • A model-fit line, such as “Model is 178 cm and wears size M”. Store it as a product metafield (a single-line text field is enough) so it can differ per product and per photo shoot.
  • A fit note, such as “Runs small, size up for a relaxed fit”. Store it on the chart entry when it’s true for the whole block, or on the product when it’s specific to one style.

The model-fit line often answers the question faster than the chart, because shoppers compare themselves to a person more easily than to a column of numbers. It’s one of the fit levers we scope on Shopify development projects for fashion brands, alongside the chart itself. If you’re not sure your product page puts these in the right order, a Shopify UX audit walks the size decision on a real phone.

Bilingual and RTL size charts

For stores selling in English and Arabic, the data approach is the only one that scales. Labels like “Chest” and “Length”, the unit note and the fit note are text, so your translation setup can handle them. Before you commit, confirm that the translation app you use covers metaobject content as well as product content. Numbers stay numbers in both languages. In right-to-left layouts, test the table direction and the drawer animation, because those are the details that usually break first. Our Arabic RTL Shopify guide covers the wider setup.

Use exchanges and return reasons to keep the chart honest

A size chart is a claim about fit. Your returns tell you whether the claim is true. Shopify handles exchanges from the Orders page as part of a return, which its Help Center describes as sending “an alternative item as part of the return, such as a different size or color”. You can also turn on self-serve returns, so customers request a return from their order status page, with return rules that control which items qualify and for how long.

Loop diagram with four stages. The size chart and fit note inform the purchase. A wrong-size purchase becomes an exchange for a different size. The return reason, too small or too large, is logged per product. The fit note or chart entry is then corrected, which feeds back into the size chart
The fit feedback loop: return reasons tell you which chart or fit note is wrong, so fix the data, not the shopper.

Steer wrong-size returns towards an exchange rather than a refund, and record the reason consistently: too small, too large, length wrong. When one style keeps coming back as “too small” while its block-mates don’t, the problem is that product’s fit note, not the shopper. Because the chart lives in one entry and the fit note in one field, the fix is an edit, not a hunt through product descriptions.

Shopify size chart FAQ

Can I add a size chart to Shopify without an app?

Yes. Metaobjects and metafields are built into Shopify. You need a one-off theme change to render the chart where you want it, or you can connect it as a dynamic source in the theme editor.

Should every product have its own size chart?

No. Create one chart per fit block and point products at it. Use a per-product fit note for the styles that run differently.

Does a size chart help SEO?

A chart rendered as an HTML table is real, indexable text on the product page. A chart inside an image isn’t. The bigger gain is fewer people leaving the page unsure of their size.

The takeaway

Build your Shopify size chart once, as structured data, and render it where the size decision happens. Add a model-fit line, write honest fit notes, and use return reasons to correct them. It isn’t a big build, and it’s what shoppers lean on when they can’t try anything on. For an example of the stores we build in this category, see our DUET fashion Shopify store. If you want a second pair of eyes on yours, start with a free Shopify audit.

Share X in wa
Mohamed ElQadi
Mohamed ElQadi Tech Lead @ Qode Bites

I help business owners untangle the mess between their website and their revenue — performance, conversion, and the unglamorous fixes that move numbers. Egypt + US.

Follow QodeBites on LinkedIn →
• FREE PLAYBOOK

The E-Commerce
Growth Playbook

17 moves that turn a store into a revenue machine — the exact levers our team pulls for the brands we build and grow.

  • Convert more of the traffic you already pay for
  • Speed wins that lift revenue on every visit
  • Retention flows that make the second sale cheaper
  • Ad math so you scale in profit, not blind

Get the free PDF

Enter your details and we’ll send it straight to your screen.

No spam — the guide now, and the occasional useful email. Unsubscribe anytime.

More Insights

Discover more articles, expert perspectives, and practical insights on software development, product design, emerging technologies, and digital innovation.

Ready to light it up?

Start a Project

Your Trusted Growth Partner
For Startups And Enterprises

From first concept to final deployment, Qode Bites delivers everything needed to take your idea live — with seamless setup, performance-ready infrastructure, and expert support every step of the way. Book a free 30-minute strategy call.

What We'll Cover

  • Current store performance
  • UX and conversion bottlenecks
  • Growth opportunities
  • Recommended action plan
Book a Strategy Call

Or schedule a meeting with Mohamed directly (opens in a new tab), arranged by text message through Boardy.

June

FriSatSunMonTueWedThu

Sat, June 2