Picture a shopper asking an AI tool for a dog harness that holds up on long walks and does not rub. The tool can find a dozen harnesses with similar descriptions. What separates them is what real buyers said after using them: the average score, how many people rated it, and a couple of honest comments. Review schema is the labeled block of code that hands the tool those facts in a form it can read without guessing. Without it, the tool has to parse your review section as plain text and hope it counted right. With it, the average and the count are stated plainly.
It changes nothing your customers see. It lives in the code behind the page. It speaks a shared vocabulary from schema.org, so Google, Bing, and AI tools can all read the same block.
The example business here is a pet supply shop selling a padded dog harness. Swap in your own business, product, and web address.
Two types that do two different jobs
Review schema is really two types that work together, and mixing them up is the most common mistake.
A Review describes one single review written by one person. It carries the reviewer's name, the score that person gave, and the text of what they said.
An AggregateRating describes the average across many reviews. It carries the average score and a count: either the number of ratings, or the number of reviews, or both. Google requires at least one of the two counts.
Most product pages need the AggregateRating first. That is the number shoppers ask about: the average and how many people it is based on. A single Review or two adds the human detail behind the average, but the average is what lets a tool compare your harness against another harness in one line.
Both types usually sit nested inside the Product block, under the properties called review and aggregateRating. When a Review or an AggregateRating is nested inside the thing it rates, Google reads the parent product as the reviewed item, so you do not need a separate itemReviewed field inside them. If you write a Review as a standalone block instead, you do need itemReviewed to say what is being reviewed.
Here is a complete example for one product with an average rating and two individual reviews. The numbers and names here are made up teaching samples for your own store. Use your real numbers and your real reviewers.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Trailhead Padded Dog Harness, Medium",
"image": [
"https://example-shop.com/images/trailhead-harness-medium.jpg"
],
"description": "A padded dog harness with two clip points and a handle for steadying your dog on rough ground.",
"sku": "TH-HAR-M",
"brand": {
"@type": "Brand",
"name": "Trailhead Pet Supply"
},
"offers": {
"@type": "Offer",
"url": "https://example-shop.com/products/trailhead-padded-harness-medium",
"price": "38.00",
"priceCurrency": "USD",
"availability": "https://schema.org/InStock"
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4.6",
"reviewCount": "127"
},
"review": [
{
"@type": "Review",
"author": {
"@type": "Person",
"name": "Maya R."
},
"reviewRating": {
"@type": "Rating",
"ratingValue": "5",
"bestRating": "5"
},
"reviewBody": "Fits our spaniel well and the padding stops the rubbing we had with her last harness."
},
{
"@type": "Review",
"author": {
"@type": "Person",
"name": "Daniel K."
},
"reviewRating": {
"@type": "Rating",
"ratingValue": "4",
"bestRating": "5"
},
"reviewBody": "Solid harness. The front clip took a walk or two to get used to, but it holds well now."
}
]
}
</script>
What each part does, in plain terms:
- AggregateRating ratingValue: the average score across all the reviews for this product. Write decimals with a dot, such as 4.6, not a comma. Google says to use a dot for decimal numbers.
- reviewCount: the number of people who provided a review, with or without a rating. Use it when your reviews are written reviews. The other count, ratingCount, is the total number of ratings for the item on your site. At least one of the two is required. Pick the one that matches how your shop collects feedback, and keep it consistent.
- bestRating and worstRating: the top and bottom of your scale. If you use a 1 to 5 scale and leave these out, Google assumes 5 is the best and 1 is the worst. State them anyway when you write a single Review, so there is no doubt what the score means.
- Review author: the name of the person who wrote the review. Google requires an author, as a Person or an Organization, and the name must be a real name under 100 characters. A discount slogan is not a valid reviewer name, and Google says so plainly in its own guidance.
- reviewRating ratingValue: the score that one reviewer gave. The default scale is 1 to 5. If your shop uses a different scale, state bestRating and worstRating so the number can be read correctly.
- reviewBody: the text of the review, as the customer wrote it. Keep it word for word. Do not tidy it up in the code while the page shows the original.
Only mark up reviews shoppers can read
Google's rule here is blunt and worth quoting in plain terms: the review content you mark up must be readily available to users from the marked up page. It must be immediately obvious to users that the page has review content. If you mark up reviews, users should be able to see the text of the review and the rating. If you use an AggregateRating, users should be able to see that aggregate rating on the page.
That means the average in your code and the average on your page must be the same number, and the count in your code and the count on your page must be the same count. If the page shows 127 reviews at 4.6 and the code says 210 reviews at 4.9, the code is describing a page that does not exist. Google may ignore the block, and an AI tool that spots the clash may trust neither number.
It also means you cannot mark up reviews that sit somewhere else. Do not pull in ratings from another website and blend them into one average. Google says not to aggregate reviews or ratings from other websites. If your harness has 127 reviews on your own site and a separate set of ratings on a marketplace, mark up only the 127 on your own page. The marketplace ratings belong on the marketplace page.
And do not mark up reviews for a whole category or a list of items. Google requires review information about a specific item, not about a category or a list. The harness on this page gets its own reviews. The category page for all harnesses does not get a blended average across every harness you sell.
The self serving rule: your business is not a product
There is one more rule that trips up small businesses, and it is about what you are reviewing, not how you code it.
Google says that if the entity being reviewed controls the reviews about itself, its pages that use LocalBusiness or any other type of Organization structured data are ineligible for the star review feature. A review about your business, placed on your own website, either directly in your structured data or through an embedded third party widget, counts as self serving. Ratings must be sourced directly from users, and Google says not to rely on human editors to create, curate, or compile ratings information for local businesses.
What that means in practice is simple. Customer reviews of a specific product, collected and shown on that product page, are the fit for review schema. Reviews of your business itself, pasted onto your homepage or your about page to earn stars for your company, are not. Keep testimonials about your company as normal page content, without review markup on them. The stars in search for your business come from your business profile and from review sites, not from markup on your own homepage.
The same honesty rule covers how the reviews were earned. Do not include fake reviews, and do not include reviews written in exchange for a benefit such as money, discounts, vouchers, or free products unless the incentive is clearly and prominently disclosed. A review that is not based on a genuine experience of the product does not belong in your markup at all. AI tools are quieter about this than Google, but the effect is similar: a rating they cannot check against real buyers is a rating they will not quote.
What to do when you have no reviews yet
Leave the rating fields out entirely. An offer on its own still makes valid product markup, and a product with no reviews is an honest product page. Do not invent an average to fill the gap, do not borrow an average from a similar product, and do not mark up a single staff comment as if it were a customer review.
Google recommends only accepting ratings that come with a review comment and an author name. That is a recommendation, not a requirement, but it is good advice for a small shop: a score with a name and a sentence behind it is far more useful to a shopper, and to an AI tool, than a bare number with nothing behind it.
If you include several individual reviews in the code, Google says to also include an aggregate rating of those reviews. So the pattern is: a few real reviews plus the average across all of them, never a handful of reviews floating on their own with no average to anchor them.
When the first real reviews arrive, add them the same way you would add any product fact: from the same data that renders the page, so the average in the code and the average on the page move together. A review app that writes the visible reviews and the code from the same source does this for you. A hand typed block that you update once and forget will drift, and a drifted average is worse than no average.
Check for a block before you add one
Many shops already carry review markup from a theme or a reviews app. Open a product page, view the page source, and search for application/ld+json. If a block is already there, improve that block. Fill its gaps and fix its values. Adding a second block beside it creates two competing averages, and tools may pick one at random or drop both.
Watch for one specific clash: a reviews app that writes its own average while your theme writes a different one. If the two disagree, find which one matches the visible page and remove or fix the other. The visible page is the source of truth, not either block.
Test it before you trust it
Two free tools need no signup, and they check different things.
Google's Rich Results Test shows which review fields Google finds on a page, with errors and warnings per field. Paste a product address and read what it finds for the average, the count, and the individual reviews.
The Schema Markup Validator checks your JSON-LD against the schema.org vocabulary, which catches misspelled field names the Google tool may miss.
Run both on a few pages. Include a product with many reviews, a product with only two or three, and a product with none. The product with none is the important check: confirm the code carries no rating fields at all. Validators will not tell you an average is stale or borrowed from another site. Only a side by side read of the code against the visible reviews tells you that.
What review markup alone cannot do
Markup makes your reviews readable. It does not bring in more reviews, it does not make shoppers trust a thin review record, and it does not guarantee a rich result with stars. Google says it does not guarantee that structured data will show up in search results, and the same holds for AI tools: readable reviews are a requirement for being quoted with confidence, not a promise of being quoted.
The work that earns trust is separate: collecting real reviews from real buyers, showing them on the page, and keeping the average honest as it moves. Markup is the label on that work, not a substitute for it.
Frequently Asked Questions
Can I mark up reviews of my own business to get stars?
No, not for the business itself. Reviews of your business on your own site count as self serving, and Google says those pages are ineligible for the star review feature. Mark up customer reviews of a specific product on that product page instead.
What is the smallest review block that still works?
An AggregateRating nested in the Product, with a ratingValue and either a reviewCount or a ratingCount. Add individual Reviews with a named author and a rating when you have real ones to show.
My product has no reviews yet. What should I do?
Leave all rating fields out. An offer on its own still makes valid product markup. Add the average once real reviews arrive, from the same data that renders the page.
Can I combine ratings from other websites into one average?
No. Google says not to aggregate reviews or ratings from other websites. Mark up only the reviews collected and shown on your own page.
Does review schema guarantee stars in search results?
No. It makes your page eligible for a review snippet, and it makes your average checkable for AI tools. Google does not guarantee that structured data will show up in search results.
Verified Sources & Technical Documentation
- Google Search Central, Review snippet structured data Specific https://developers.google.com/search/docs/appearance/structured-data/review-snippet
- Google Search Central, Product structured data Specific https://developers.google.com/search/docs/appearance/structured-data/product
- Schema.org, Review type Specific https://schema.org/Review
- Schema.org, AggregateRating type Specific https://schema.org/AggregateRating
- Google Rich Results Test General Docs https://search.google.com/test/rich-results
- Schema Markup Validator General Docs https://validator.schema.org/
links marked specific point to the page that supports the claim in this guide. Links marked general docs point to the vendor's general docs section for that topic, not to a page that proves every step. Check the vendor docs for the current path before relying on a menu name or click path in this guide.