Free tool

Product Schema Generator

Free JSON-LD structured data for product pages

Fill in your product details and get ready-to-paste Product schema in JSON-LD, the format Google recommends. Add prices, stock, ratings, shipping and returns so your products can show richer search results. Free, no signup.

Product
Identifiers
Price and stock

Availability

Condition

Ratings (optional)
Shipping and returns (optional)
  • • Add a product name. It's required.
  • • Add a price so Google can show it.
  • • Add at least one image URL; Google recommends it.
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "Product name",
  "offers": {
    "@type": "Offer",
    "priceCurrency": "USD",
    "price": "0.00",
    "availability": "https://schema.org/InStock",
    "itemCondition": "https://schema.org/NewCondition"
  }
}
</script>

Only mark up information that's visible on the product page, and keep the price and stock up to date. Valid markup makes a page eligible for rich results; Google decides whether to show them. Nothing you type is saved.

Embed

Add the Product Schema Generator to your site.

Free for blogs, newsletters, client sites and courses. Paste the code into an HTML or custom code block. Please keep the credit line under the tool.

<iframe id="am-product-schema-generator" src="https://www.ahmadmujtaba.com/tools/product-schema-generator?embed=1" title="Product Schema Generator" width="100%" height="950" style="border:0;max-width:100%;" loading="lazy"></iframe>
<p style="font-size:13px;margin:6px 0 0;">Free <a href="https://www.ahmadmujtaba.com/tools/product-schema-generator">Product Schema Generator</a> by <a href="https://www.ahmadmujtaba.com/">Ahmad Mujtaba</a></p>
<script>addEventListener("message",function(e){if(e.origin==="https://www.ahmadmujtaba.com"&&e.data&&e.data.amEmbed==="product-schema-generator"){var f=document.getElementById("am-product-schema-generator");if(f)f.style.height=e.data.height+"px";}});</script>

The script line resizes the frame to fit the tool. If your site strips scripts, the tool still works at the fixed height and scrolls inside the frame.

How it works

What product schema does.

Structured data is a block of code that describes a page in a format search engines read reliably. For a product page, it tells Google the product's name, price, currency, availability, brand and identifiers like the GTIN, and optionally its rating, shipping cost and return policy.

With valid Product markup, Google can show product details such as the price, stock status and star rating in search results, and use the page in shopping experiences. Markup makes a page eligible; it doesn't guarantee rich results.

Paste the generated script into the product page's HTML, then test the live page with Google's Rich Results Test. Only mark up information visitors can actually see on the page, and keep the price and stock in step with the page.

FAQ

Common questions.

Does Shopify already add product schema?

Most modern Shopify themes, including Dawn, output basic Product structured data automatically. Check your product page in Google's Rich Results Test first. Use this generator to add what's missing, such as GTIN, shipping and return details, or for themes and platforms that don't include it. Avoid publishing two conflicting Product blocks on one page.

What fields does Google require for product rich results?

A product name is required, plus at least one of an offer (price and currency), a review or an aggregate rating. Google also recommends availability, brand, GTIN or MPN, images, description, and shipping and return details for merchant listings.

Can I add star ratings with this generator?

Yes, if the page shows real customer ratings. Enter the average rating and the number of ratings. Google's guidelines don't allow ratings that aren't visible on the page or that you wrote yourself, and breaking them can get rich results removed.

Where do I paste the JSON-LD code?

Anywhere in the product page's HTML, usually the head or near the end of the body. On Shopify, it goes in the product template or a custom Liquid section. On WordPress or WooCommerce, an SEO plugin or a header code snippet works.

Do I need a different schema for each product?

Yes. Each product page needs its own markup with that product's details. For many products, use your platform's template so the values fill in automatically, and use this generator to get the structure right or for a few key pages.

Is anything I enter saved?

No. The code is generated in your browser and nothing is sent to a server.

Check what your store already outputs with the free Shopify Store Inspector, which lists the structured data on any store's home page. More SEO tools: UTM link builder and barcode generator.

Need help making your store more profitable?

I'm Ahmad Mujtaba, a Shopify Select Partner. My team builds and maintains Shopify stores, from speed and SEO to checkout and tracking.