Product schema is JSON-LD code that labels a page’s price, availability, and rating so Google can show them directly in search results as a rich snippet. Add it free in a few minutes, and an eligible product page can display its price and star rating right under the blue link, before a shopper even clicks.
What Is Product Schema and Why It Matters for E-commerce
Product schema uses the Product type from schema.org to describe an item for sale — its name, image, price, currency, availability, and optional rating — in a structured format search engines can parse directly. Instead of guessing the price from surrounding text, Google reads it straight from the offers field.
For online stores, this translates into a rich snippet that stands out in a results page otherwise full of plain blue links: a visible price, an in-stock indicator, and a star rating pull the eye and tend to earn a higher click-through rate than an unmarked listing at the same position.
How to Add Product Schema for Free
- Open the free Schema Markup Generator and select Product. Our free Schema Validator checks the same code against schema.org and Google’s required fields in one step.
- Fill in the product name, description, brand, and image URL.
- Add the price, currency, and availability (in stock, out of stock, or preorder).
- Optionally add an aggregate rating if the product has genuine customer reviews.
- Copy the generated JSON-LD and paste it into the product page’s HTML.
What Product Schema Code Looks Like
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Wireless Keyboard",
"image": "https://example.com/keyboard.jpg",
"description": "Compact wireless keyboard with backlit keys.",
"brand": "Example Brand",
"offers": {
"@type": "Offer",
"priceCurrency": "USD",
"price": "39.99",
"availability": "https://schema.org/InStock"
}
}Everything a shopper needs — name, price, and stock status — sits inside the nested offers object, exactly the format Google’s Rich Results Test expects. Not sure which tool Google uses? Our guide to the Google schema validator explains how the Rich Results Test differs from the Schema Markup Validator.
Required and Recommended Fields for Product Schema
| Field | Type | Why it matters |
|---|---|---|
| name | Required | The exact product title |
| image | Required | A direct URL to a real product photo |
| offers.price | Required | Must be a plain number, no currency symbol |
| offers.priceCurrency | Required | ISO currency code, e.g. USD, EUR, GBP |
| offers.availability | Recommended | InStock, OutOfStock, or PreOrder |
| aggregateRating | Optional | Only include if the product has genuine reviews |
Product Schema and Star Ratings: The AggregateRating Field
The aggregateRating field is what puts a star rating in the search snippet, but it comes with the strictest requirement in the whole schema: the rating must reflect real, verifiable reviews of that exact product, visible on the page. Google’s guidelines explicitly prohibit self-serving or fabricated ratings, and this is one of the more commonly enforced spam policies — a product page with a 5-star aggregateRating but zero visible reviews is a textbook example of markup that can trigger a manual action rather than just being ignored. If you don’t yet have genuine customer reviews, leave this field out entirely; add it once you have real ones to report.
Google’s Additional Requirements for Product Rich Results
Beyond basic schema validity, Google applies merchant-specific eligibility rules before a product snippet actually appears: your site generally needs a visible return policy, a way for shoppers to contact you, and secure checkout if you sell directly. A perfectly valid Product schema block on a page that fails these broader trust signals may still be denied the rich snippet, since Google is trying to protect shoppers from low-trust storefronts, not just reward correct code. Review your store’s policy pages alongside your schema, not instead of it.
Product Schema for Digital vs. Physical Products
The same Product type covers both, but a few fields behave differently. Digital products (software licenses, ebooks, courses) typically skip shipping-related fields entirely and rely more heavily on availability and pricing, since there’s no physical stock to track. Physical products benefit from adding shippingDetails where your platform supports it, which can surface estimated delivery information directly in the snippet. Neither type requires anything exotic — the core name, image, and offers fields cover both cases identically.
Product Schema vs. Google Merchant Center: Do You Need Both
They serve overlapping but distinct purposes. Google Merchant Center feeds product data directly into Google Shopping ads and free shopping listings through a structured product feed you upload separately. Product schema on your actual page is what makes that same page eligible for an organic rich snippet in regular search results, independent of any paid or Shopping-tab placement. Running both means your price and availability are correctly represented whether a shopper finds you through a Shopping listing or an ordinary organic search result — and keeping the numbers identical in both places avoids the kind of mismatch that can get a Merchant Center feed suspended.
Common Product Schema Mistakes to Avoid
- Adding a fake or inflated aggregateRating. This is the single most enforced Product schema violation — only mark up ratings that are real and visible on the page.
- Letting price or availability go stale. If a product sells out, the schema’s
availabilityfield needs to update at the same time as the visible page, or Google will show an inaccurate snippet. - Using a currency symbol instead of a plain number in the price field. “$39.99” is invalid; the price field expects
39.99with the currency specified separately. - Marking up a category or listing page as a single Product. Product schema describes one specific item, not a collection page showing many products.
Running a store with hundreds of products? Our technical SEO service can add and validate Product markup across your whole catalogue.
Frequently Asked Questions
Can I add a star rating to my Product schema?
Only if the product has genuine, visible customer reviews on the page. Fabricated or inflated ratings violate Google’s guidelines and can trigger a manual action.
Does Product schema guarantee my price will show in search results?
No. Valid schema makes the page eligible for a rich snippet, but Google decides whether to display it based on overall page quality and relevance, plus broader merchant trust signals like a visible return policy.
Do I need Google Merchant Center if I already have Product schema?
They serve different purposes. Merchant Center is required for Google Shopping listings and ads; Product schema makes your regular organic listing eligible for a rich snippet. Most serious online stores use both.
Is adding Product schema free?
Yes. The free Schema Markup Generator builds the code with no signup required.

