Product schema generator
Generate Product JSON-LD with offers, availability and ratings, and avoid the review markup that earns manual actions.
Numbers only, no currency symbol.
ISO 4217 code, e.g. GBP, USD, EUR.
Only if real review data backs it. Invented ratings are a manual action.
JSON-LD
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Product",
"offers": {
"@type": "Offer",
"availability": "https://schema.org/InStock"
}
}
</script>Before you ship this
- Error: Product name is required by Google for this type.
How to use it
- Enter the product name as it appears on the page.
- Add price, currency and availability. These are what produce the price and stock status in search.
- Add SKU, brand and image so the product can be matched to feeds and shopping surfaces.
- Only add ratings if real reviews are visible on the page, then copy the generated script tag and paste it into the page head, then confirm it with the Google Rich Results Test.
Price and availability earn the rich result
A Product with only a name is valid and useless. What produces the price, stock and star rating under a search result is the offers block: a price, an ISO 4217 currency code and an availability value.
Price goes in as a bare number. No currency symbol, no thousands separator, and the currency expressed separately as GBP or USD. A price field containing a symbol is invalid.
Markup has to match the page
If your markup says 49 and in stock while the page says 59 and sold out, that is a mismatch Google treats as a quality problem. Generate this from product data rather than by hand for anything that changes, and regenerate when it does.
Ratings you did not earn are a manual action
aggregateRating must come from real reviews visible on the page. Two things get sites penalised: inventing ratings outright, and self-serving reviews, which means review markup about your own business on your own site. Google stopped supporting those in 2019.
Reviews of a product you sell are fine. Reviews of your company, marked up on your own pages, are not eligible, and adding them anyway risks the rich results you do qualify for.
Product schema generator FAQ
Why is my price not showing in search?
The marked-up price has to match the visible price, the item has to be in stock, and the page has to be crawlable. A mismatch between the JSON-LD and the page is the most common cause.
Can I add an aggregate rating without reviews?
No. Ratings must come from reviews that appear on the page. Inventing them is the fastest route to a structured data manual action and losing every rich result on the site.
What is the difference between Product and Offer?
Product describes the thing; Offer describes the price and availability of a particular way to buy it. A product with no Offer is valid markup that produces no price in search.
Do I still need a Merchant Center feed?
Yes, if you want to appear in Shopping. The feed powers Shopping surfaces and ads; this markup powers the organic result. They overlap, and Google will cross-check them, so a price in the markup that disagrees with the feed is a problem in both places.
How do I mark up a product with variants?
Use a product group describing the family, with each variant as a product that names what it varies by — size, colour, capacity. The alternative, one page and one markup block per variant, is also valid and makes sense when each variant has its own URL. What does not work is one block with every price mushed together.
How do I show a price range?
With an aggregate offer carrying a low price, a high price and the number of offers. This is the right form for a product page covering several variants at different prices, and it produces a from-price in the result rather than nothing at all.
Should shipping and returns be in the markup?
Yes, both are now supported and both can appear in the result. Free delivery and a long returns window are exactly the details that win a click from a competitor, and they are otherwise invisible until someone reaches the basket.
Which availability values are valid?
The schema.org URLs — InStock, OutOfStock, PreOrder, BackOrder and a few others — written in full rather than as bare words. A typo here is one of the quieter failures: the markup validates structurally and the stock status silently does not show.
Are GTIN and MPN really necessary?
Not required, strongly recommended, and the difference shows. A global trade item number lets Google match your listing to the same product elsewhere, which is how a page joins the comparison surfaces at all. For own-brand products with no GTIN, brand plus MPN is the substitute.
What if prices change frequently?
Generate the markup from the same source as the page price rather than hand-writing it. A stale price is a mismatch, and a mismatch is both a lost rich result and, if it persists, grounds for a manual action. Hard-coded prices in a template are the usual cause.