Product Schema Generator

Create Product JSON-LD with the name Google requires and either an offer or an aggregate rating, which is the other half of a product snippet.

Offer
Aggregate rating (optional if you add a price)

JSON-LD

Rich Results Test ↗

Missing required fields

  • Add the product name. Google requires it.
  • Price must be a number, including 0 for a free product. It was left out.
  • Product snippets require an offer, an aggregateRating, or a review. Add a price or a rating.
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Product"
}
</script>

Paste the script into the page HTML, in the head or before </body>. Then open Google's Rich Results Test, choose the code tab, and paste it again.

Product on schema.org · Google's documentation

Want the marketing handled too?

SEOchat publishes pages about your business, keeps your Google listing active, and reports results every week. Starter is $99/month. Growth is $179/month. Cancel anytime.

A business name and website you already typed are carried into checkout. They do not change the price.

Product snippets and merchant listings

Google documents two related uses. A product snippet is the text result with a price or a rating. A merchant listing is the shopping result, and it has stricter rules, including images and a currency. This generator follows the product-snippet requirements and points out the merchant fields so you can fill them when you sell the item.

The name is always required. The second required piece is one of three: an offer with a price, an aggregate rating with a value and a count, or a review. Filling a price is enough. Filling a rating as well is recommended, and the Rich Results Test may warn if an offer has no rating. That warning is Google's, not a second required field.

How to add this markup

  1. Use the product page, the one about this product only.
  2. Enter the name, the price customers see, and the currency. Add the rating only if the page shows the same average and count.
  3. Clear the required warnings. A price that is not a number is left out, so the offer is not invented.
  4. Copy the script onto that product page.
  5. Test it in Google's Rich Results Test.

Car is not picked up as a product subtype on its own. If you sell a car and want ratings attached, Google says to use both Car and Product. This tool writes Product. Add Car yourself only if that is the page.

A written review belongs in the review schema generator. The brand name here is a simple Brand node. The brand schema generator builds a fuller one. The seller, if it is a company rather than a product, belongs in the organization schema generator.

Questions

What does Google require on a product?

A product snippet needs a name, plus one of an offer, an aggregateRating, or a review. An offer needs a price, including 0 when the product is free. Currency is recommended for snippets and required for merchant listings.

Is an image required?

Not for a basic product snippet. Merchant listings do require one or more images. If you sell the product, add image URLs that Google can fetch.

Can I mark up a category page?

No. Google's product results support a page about one product, or variants of that product on their own URLs. A grid of many products is not one Product.

What if the price changes?

Update the markup when the price changes. A priceValidUntil date in the past can stop the snippet. Do not leave a sale price in the code after the sale ends.

Where do written reviews go?

Use the review schema generator for a full review with an author and review text. This form carries the average rating and the offer, which is enough for the product-snippet requirement.

More free tools

See all tools