Skip to content
RankX AI

Cookie settings

Choose which cookies we can use. You can change this at any time from “Cookie settings” in the footer.

Essential

Security, bot protection and remembering your choice. The site needs them to run, and they do not identify you. Always on.

Google Analytics cookies that tell us which pages are read and which links are followed, so we can improve them. Off until you switch it on.

Tells advertisers when their advert led to your visit. Includes the Meta (Facebook) pixel and the LinkedIn Insight Tag, which set cookies on this domain (LinkedIn also on linkedin.com) and can be told if you later start a trial.

More in the cookie policy and the privacy policy.

Generate product schema markup Google can use.

The free Product Schema Generator is a structured data generator for one product: it turns a short form into Product JSON-LD, the markup Google reads for merchant listings and product snippets. It adds the offer, variants, shipping and return policy as Google documents them, checks every value as you type, and gives you a Shopify Liquid version that fills itself in for every product.

FreeNo accountChecked as you type

The product
The offer
Variants optional, for colours or sizes of one product

With variants, the markup becomes a ProductGroup with each variant as its own Product and offer, the shape Google documents for product variants.

Shipping optional
Returns optional
Rating only with real reviews on the page

    Shopify Liquid fills in every product’s own name, images, price, stock and barcode, so one snippet covers the whole store. Test the page once it is live with the Schema Markup Checker.

    What it writes

    What is product schema markup?

    Product schema markup is a type of structured data in the schema.org vocabulary, usually a JSON-LD block, that states a product's name, images, price, stock and identifiers in a machine-readable form. Google uses it for merchant listings in Google Shopping and for product snippets with price and stars in search results.

    This free product schema generator writes that schema.org structured data from a short form, so you never write JSON syntax by hand. It uses JSON-LD, the format Google recommends over microdata, and flags every value Google would reject before you copy it.

    The product schema properties the generator writes, and when Google needs each one
    PropertyWhat it holdsFor Google merchant listings
    nameThe product name.Required
    imageOne or more full https image addresses.Required
    offers: price, priceCurrencyA plain number above zero, such as 45.00, and a currency code such as GBP.Required
    availability, itemConditionStock, such as InStock or PreOrder, and new, used or refurbished.Recommended
    brand, sku, gtin, mpnThe brand, your stock keeping unit and the barcode number. The GTIN is tested for a valid check digit.Recommended
    description, color, size, materialThe product description, and the details shoppers filter by.Recommended
    shippingDetailsShipping cost, destination country, and handling and delivery days.Recommended
    hasMerchantReturnPolicyThe return window, how to return and who pays.Recommended
    aggregateRatingAverage rating and number of ratings, only from real reviews shown on the page.Recommended, for stars

    Example

    A product schema example in JSON-LD

    This is the JSON-LD written for one linen shirt with a price, stock, a GTIN and a brand. It comes straight from the code the form above runs, so it is exactly what you would copy.

    <script type="application/ld+json">
    {
      "@context": "https://schema.org",
      "@type": "Product",
      "name": "Juniper Linen Shirt, Navy",
      "image": "https://juniper.example/images/shirt-navy.jpg",
      "description": "A breathable linen shirt cut for warm days.",
      "sku": "JN-SH-01",
      "gtin": "4006381333931",
      "brand": {
        "@type": "Brand",
        "name": "Juniper & Co"
      },
      "color": "Navy",
      "size": "M",
      "material": "Linen",
      "offers": {
        "@type": "Offer",
        "url": "https://juniper.example/products/linen-shirt",
        "price": "45.00",
        "priceCurrency": "GBP",
        "availability": "https://schema.org/InStock",
        "itemCondition": "https://schema.org/NewCondition"
      }
    }
    </script>

    How to

    How to use this free product schema generator

    Five steps take a product page from no markup, or broken markup, to valid markup: one Product block that Google can read.

    1. Step 1

      Check the page first

      Run the product page through the Schema Markup Checker. If it already has markup, open the result here and every value the page states is filled in for you.

    2. Step 2

      Fill in the product

      A name, an image and a price are the minimum. Each note beside the code says what is missing or would be rejected, such as a price with a currency sign or a GTIN with a wrong check digit. When the notes are clear, the code is valid JSON-LD.

    3. Step 3

      Add what applies

      Add variants, shipping, a return policy and a rating only where they are true for this product.

    4. Step 4

      Copy one version

      Copy the JSON-LD markup as a script tag for any site, as plain JSON for a plugin field, or as Shopify Liquid for your theme.

    5. Step 5

      Test it live

      Once the page is live, check it again with the same checker, then with the Google Rich Results Test for the final word on eligibility. The Rich Results Test tool and the Schema Markup Validator replaced Google's retired Structured Data Testing Tool.

    Where it goes

    One complete JSON-LD block per product page

    Most store platforms already print some product markup. The aim is one complete schema block, not two that disagree, so check what the page has before you add anything.

    Shopify

    Replace the theme’s block, do not add a second

    Shopify themes print Product markup from the product template, usually with a single structured_data line. Copy the Shopify Liquid version, then in Online Store, Themes, Edit code, put it in place of that line in the main product section. Every product then gets complete markup, variants included.

    WooCommerce

    Through your SEO plugin

    WooCommerce prints Product markup itself and SEO plugins such as Yoast and Rank Math extend it. Use the plugin’s schema settings for brand, GTIN, shipping and returns where it offers them.

    Any other site

    In the page head

    Paste the script tag into the product page template, inside the head or anywhere in the body, with the values filled from the product. Then run the page through the checker.

    Colours and sizes

    Structured data for product variants: one ProductGroup

    A shirt in three colours and four sizes is one product with twelve variants. Marking them up as one ProductGroup, with each variant’s own SKU, barcode, price and stock, tells Google they belong together, so it can show the right colour and size in shopping results instead of treating them as rival products.

    productGroupID

    What they share

    The parent product’s SKU, or a name of your choosing. It stays the same for every variant of the product.

    variesBy

    What changes

    Colour, size or both, worked out from the variant lines you enter.

    hasVariant

    Each variant

    Its own name, SKU, GTIN and offer, priced from its line or from the main price when the line leaves it empty.

    Shipping and returns

    Shipping details and return policy markup

    Shipping and return details let Google show a delivery cost, a delivery estimate and a returns line beside your product in shopping results. Both go inside the product's offer, as Google documents them.

    shippingDetails

    Cost and delivery time

    An OfferShippingDetails block with the shipping cost (0 for free), the destination country and a delivery time made of handling days and transit days. Without both sets of days, Google cannot show an estimate.

    hasMerchantReturnPolicy

    The return window

    A MerchantReturnPolicy for one country: returns within a set number of days, at any time, or not at all, with the return method and whether returns are free, paid by the customer or a set fee.

    One policy for the store

    Set it once instead

    Google reads shipping and returns from Merchant Center first, then from product markup, then from your Organization markup. If one policy covers every product, write it once with the store-wide Schema Markup Generator, which also writes your site name and FAQ markup.

    Questions

    About the Product Schema Generator

    What does the Product Schema Generator produce?

    A JSON-LD block describing one product: its name, images, description, brand, SKU, GTIN or MPN, colour, size and material, and an offer with price, currency, stock and condition. Shipping cost and delivery time, a return policy and an average rating are added when you fill them in.

    Where do I put the code on Shopify?

    Most Shopify themes already print Product markup on every product page, so adding a second block creates two descriptions that can disagree. Check the page with the Schema Markup Checker first. Then copy the Shopify Liquid version from this generator and put it in place of the theme’s own structured data line in the product template, so every product gets one complete block, variants included.

    Where do I put the code on WooCommerce?

    WooCommerce prints its own Product markup, and SEO plugins such as Yoast and Rank Math extend it. Add missing properties through your SEO plugin’s schema settings where it offers them, and check the result with the Schema Markup Checker so you do not end up with two Product blocks.

    Can it write markup for product variants?

    Yes. Enter one variant per line with its SKU, colour, size, price and GTIN, and the generator writes a ProductGroup with each variant as its own Product and offer, which is how Google asks for colours and sizes of one product to be marked up.

    What is the Shopify Liquid version?

    A snippet for your theme’s product template that reads each product’s own title, description, images, vendor, price, stock and barcodes from Shopify, so one block of code gives every product complete markup. Your shipping and return policy from the form are written in once. It covers multiple products at once: put it in place of the theme’s own structured data line and each page keeps a single Product block.

    Should I add a rating if I have no reviews?

    No. Mark up a rating only when the page shows real customer reviews with that average and count. Ratings that do not match the page break Google’s guidelines and can cost the page its rich results.

    Should shipping and returns go on every product?

    Only if they differ by product. Google reads shipping and returns from Merchant Center first, then from product markup, then from site-wide Organization markup, so a store with one policy for everything can set it once.

    Can I start from a page that already has markup?

    Yes. Run the page through the Schema Markup Checker and choose to open its result in the generator: every value the page already states is filled in for you, and the gaps are the empty fields.

    Does product schema guarantee rich results?

    No. Valid product schema makes a page eligible for rich results in Google, such as merchant listings and product snippets (often called rich snippets), and Google decides what to show. Markup that matches the visible page, tested with Google’s Rich Results Test, gives it the best chance.

    Start here

    Fix it once. Keep it fixed.

    These checks show you what is wrong today. RankX AI checks your store for you, fixes products with your approval, and shows whether ChatGPT and Google AI Mode recommend them.

    7-day free trial. No credit card required. On Shopify, install the app and Shopify bills your plan.