spyc.ai

Free tool

Product Schema Generator

Write Product JSON-LD with price, availability, brand and ratings for your product pages.

How it works

What is the Product Schema Generator?

The Product Schema Generator is a free tool that writes Product structured data in JSON-LD for a product page. Enter the name, image, brand, price, currency, availability and rating, and copy the code. It adds the Offer and AggregateRating blocks only when you fill them in, and flags what a rich result still needs.

How to use the Product Schema Generator

  1. Enter the product name, description, image URL and brand.
  2. Add the price, the three-letter currency code and the availability.
  3. Add the average rating and review count if they are shown on the page.
  4. Copy the code, paste it into the product page, and validate it.

What is product schema?

Product schema is structured data that describes one product with the schema.org Product type: its name, image, brand, identifiers, price and reviews. The price and stock status sit in a nested Offer, and the star average sits in an AggregateRating.

It is what lets Google show price, availability and stars under a result, and what lets shopping surfaces and AI assistants read the same facts without scraping the page.

Which product schema properties are required?

For a product snippet, Google requires name plus at least one of offers, review or aggregateRating. For a merchant listing, which is the richer shopping result for pages that sell the product, it requires name, image and an offers block with price and priceCurrency.

Everything else is recommended: brand, sku, a gtin, description and availability. A GTIN is worth adding when you have one, because it is how the product is matched across sellers.

How do I get star ratings in search results?

Add an aggregateRating with the average in ratingValue and the number of reviews in reviewCount, and show the same figures on the page. Google only displays stars for ratings that visitors can see and that come from real customer reviews of that product.

Stars are never guaranteed. Google decides per query whether to show them, and it removes them from sites that mark up ratings the page does not display. To mark up a single written review, use the Review Schema Generator.

Do I need product schema if I use Shopify or WooCommerce?

Usually you already have it. Most Shopify themes and WooCommerce output Product markup on their own. Run a product URL through the Schema Markup Validator before adding more, because two Product blocks with different prices is worse than one.

This generator is for the cases those do not cover: custom-built stores, landing pages, a theme that omits brand or GTIN, or a product page on a platform with no schema support.

What are common product schema mistakes?

A price in the markup that differs from the price on the page, usually after a sale ends. A currency symbol inside price, which must be a plain number such as 89.00 with the code in priceCurrency. Product markup on a category page listing many products, which Google does not support for product snippets. And ratings copied from another site.

Questions

What format should the price be in?
A number with a dot as the decimal separator and no currency symbol or thousands separator, for example 1299.00. The currency goes in priceCurrency as an ISO 4217 code such as USD, EUR or INR.
How do I mark up a product with variants?
Either give each variant its own Offer inside an offers array, or use Google's ProductGroup type with one Product per variant. The generator writes a single offer, which suits a product with one price.
What availability values can I use?
The schema.org ItemAvailability values, written as URLs: InStock, OutOfStock, PreOrder, BackOrder and Discontinued are the common ones. The generator writes the full URL for you.
Can I add product schema to a category page?
Not for product rich results. Google asks for Product markup on a page about a single product. Category pages can use an ItemList instead.
Is this schema generator free?
Yes, with a free spyc.ai account. The code is built in your browser as you type, so nothing you enter is sent to a server.

Technical SEO Tools

More in Technical SEO Tools

Opengraph Viewer

Paste a URL and see the card it produces when someone shares it — title, description, image.

View Opengraph

Open Graph Generator

Write the Open Graph tags, preview the card, copy the markup.

Generate Open Graph tags

Robots.txt Checker

Fetch any site's robots.txt and test one URL against it: allowed, or blocked by which rule.

View robots.txt

Ready when you are

Before your next buyer asks AI about you, ask AI about yourself

One check, four engines, about twenty seconds. We show you the answers before we ask for anything.