When someone searches for a product, the results often show more than a title and a description: a price, whether the item is in stock, a star rating and a review count. Those details come from structured data on the product page, and they can make a listing far easier to compare at a glance.
This guide explains how product markup is organised, what each important field means, the mistakes that most often make it invalid, and how to generate a correct block for a single product page.
How product markup is organised
Product structured data uses several schema.org types nested inside each other:
- Product describes the item itself: name, description, images, brand and identifiers.
- Offer sits inside the product and describes one way to buy it: price, currency, availability, condition and the page URL.
- AggregateRating summarises all reviews: the average rating and how many reviews there are.
- Review describes an individual review, with its author, rating, text and date.
A simplified outline looks like this:
{
"@type": "Product",
"name": "Trailblazer 30L Hiking Backpack",
"brand": { "@type": "Brand", "name": "Example Outdoor" },
"sku": "TB-30-BLK",
"offers": {
"@type": "Offer",
"price": 89.95,
"priceCurrency": "USD",
"availability": "https://schema.org/InStock"
},
"aggregateRating": { "@type": "AggregateRating", "ratingValue": 4.6, "reviewCount": 128 }
}
Google describes two groups of product results. Product snippets are the enhanced listings with ratings and price that can appear for review and editorial pages as well as shops. Merchant listings are for pages where the product can actually be bought, and they have stricter requirements, including a price in the offer. If you sell the item, aim to meet the merchant requirements.
The fields shops get wrong
Price with a currency symbol
price must be a plain number such as 89.95. Writing $89.95 or 89,95 makes the value invalid. The currency goes in priceCurrency as a three-letter ISO 4217 code: USD, EUR, GBP, INR and so on.
Availability as plain text
Availability values are schema.org URLs such as https://schema.org/InStock or https://schema.org/OutOfStock. The status must match what the page says. Marking a sold-out product as in stock is misleading and is one of the most common reasons listings get flagged in Merchant Center.
Identifiers
Three identifiers are common, and they are not interchangeable:
| Identifier | What it is | Who assigns it |
|---|---|---|
| GTIN | Global Trade Item Number, printed under the barcode (UPC, EAN, ISBN) | GS1, via the manufacturer |
| MPN | Manufacturer Part Number | The manufacturer |
| SKU | Stock Keeping Unit | You, the retailer |
If a product has a GTIN, include it. GTINs are 8, 12, 13 or 14 digits long. Never invent one.
Reviews that are not on the page
Only mark up reviews and ratings that visitors can read on the same page. Ratings pulled from another site, or an average you calculated from reviews you do not display, do not belong in the markup.
Generate product JSON-LD with our tool
The Product Schema Generator validates the fields above as you type.
- Open the Product Schema Generator and enter the Product name, Description and Image URLs (one per line).
- Fill in Brand, SKU, and if you have them, GTIN (UPC / EAN / ISBN) and MPN.
- In the Offer section, enter the Product URL, Price (numbers only) and Currency (three letters). Add Price valid until if the price is a time-limited offer.
- Choose the Availability (for example InStock, PreOrder or OutOfStock) and Condition (NewCondition, UsedCondition, RefurbishedCondition or DamagedCondition).
- Under Aggregate rating, keep Include switched on if the page shows a rating, and enter the Rating (1-5) and Review count. Switch it off if you have no reviews.
- Add visible reviews under Individual reviews with the author, rating, date and text. Rows without an author or rating are left out.
- Check the Checks panel for errors such as a missing price, a currency symbol in the price, an invalid GTIN length or a rating outside 1-5.
- Copy or download the script and test the live page with the Rich Results Test link.
Other approaches
E-commerce platforms. Most shop systems output product markup automatically from the catalogue. That is usually the best option, because price and stock stay in sync when they change. Use a generator to understand what correct markup looks like, then compare it with your platform's output by viewing the page source.
Merchant Center feeds. If you advertise products on Google, a product feed in Merchant Center provides the same kind of data directly. Feeds and on-page markup complement each other; Google may compare them, so keep prices consistent.
Templates for custom shops. On a hand-built store, render the JSON-LD from the same database fields that show the price and stock on screen. A hard-coded block will eventually drift out of date.
Tips and pitfalls
- One product per page. Category pages that list many products should not carry a separate Product block for each item as if each were the main subject of the page.
- Variants. For a product in several sizes or colours, schema.org and Google support describing variants. If your platform supports it, use its built-in variant markup rather than hand-writing many offers.
- Review stars for your own business. Google does not show review stars for markup where a business reviews itself, for example a company rating itself in
OrganizationorLocalBusinessmarkup. Product reviews from customers on a product page are a different case. - Keep dates realistic. An expired
priceValidUntildate tells search engines the price may no longer apply. - Share links well too. Product pages are shared on social networks, so pair the schema with good Open Graph tags from the Open Graph Generator. You can check how the listing might look in search with the SERP Preview Tool.
If your business sells from a physical location rather than online, the Local Business Schema Generator is the better starting point.
Frequently asked questions
Is Product schema required to show prices in Google?
Google relies on structured data or Merchant Center data for price and availability details. Without either, Google may still show a normal result, but rich product details are much less likely.
Can I use Product markup without reviews?
Yes. Reviews and ratings are optional. A product with name, image and a complete offer is valid. Only include ratings if they are shown on the page.
What if my product has no GTIN?
Leave the field empty and use SKU or MPN instead. Handmade items and private-label products often have no GTIN, and that is acceptable.
Should the price include tax?
Use the price a customer sees on the page. In regions where prices are shown including tax, include it; where they are shown before tax, follow the displayed price.
How often should the markup be updated?
Whenever price, stock or reviews change. Automatic generation from your catalogue is the reliable way to keep it current.