Review schema: how review stars get into Google, and when they can’t
Which pages can still show review stars, JSON-LD to copy for products and reviews, the properties Google needs, the mistakes that cost stars, and how to test.
Published
Review schema is code that tells search engines a page has reviews, what they are about, and how they rate it. With it, Google can show stars, the average rating and the number of reviews under a page in its results. This guide covers what the code looks like, which pages can still get stars (most businesses' own reviews cannot), code to copy for three kinds of page, the properties Google needs, the mistakes that lose the stars, and how to test it.
What review schema is
The vocabulary comes from schema.org, which search engines share. Three of its types do the work:
- Review: one person's review of one thing.
- AggregateRating: the average of many ratings, with how many there are.
- Rating: the score itself, on a 1 to 5 scale unless you say otherwise.
The code is usually written as JSON-LD, a block of data in a <script> tag that visitors never see. Google supports two other formats too, and says all three work equally well, but recommends JSON-LD as the easiest to get right. It can also read JSON-LD that a script or an embedded widget adds after the page loads (Google's introduction to structured data).
www.example.com › furniture › oak-bench
Oak bench, 120 cm
Rating: 4.638 reviews
A solid oak bench for a hall or a dining table.
nameThe thing reviewed. Required since 2019.ratingValueThe average, on a 5-point scale unless you set bestRating.reviewCount or ratingCountHow many reviews or ratings the average is from.
A sketch, not a screenshot. Google decides whether to show stars, and how the result looks.
Can your page show review stars?
It depends on what the reviews are about, and whose website they are on. Since September 2019, Google does not show stars for reviews a business controls about itself: a business's reviews on its own website, in its own code or through an embedded widget, are not eligible, (Google's 2019 announcement). Its guidelines today name Google and Facebook review widgets as examples (review snippet guidelines). Reviews of a product, a book, a course or a recipe are a different case.
| The page | Stars? | Why |
|---|---|---|
| A product page in your online shop, with buyers' reviews of that product | It can | Product is one of the types Google supports; the self-serving rule is written for local business and organisation markup |
| Your home page or services page, with testimonials or reviews of your business | No | The business being reviewed controls the reviews about itself |
| The same page, with your Google or Facebook reviews in a widget | No | Google names these widgets as examples of reviews a business controls |
| A review site's page about a business it does not own | It can | Local business and organisation reviews are allowed for sites that collect reviews of others |
| A blog's review of a book, film, course, game or app | It can | All are types Google lists for review snippets |
| A page listing many products, with one rating for all of them | No | A review must be about one specific item, not a category or a list |
| Your Google Business Profile | Yes | The rule is about markup on your website, not your listing on Google |
The full list of things that can carry review stars: books, courses, events, films, how-to guides, products, recipes, software apps, games, music recordings and playlists, series, seasons and episodes, media objects, and local businesses or organisations reviewed by someone else.
What about testimonials?
schema.org has no type for a testimonial; the nearest is Review. A testimonial on your website is a review of your business, on your business's site, so it falls under the self-serving rule and will not bring stars. If you already have markup for it, Google said in 2019 that you do not need to remove it and will not get a manual action just for having it. There is no need to add it for stars.
Do not get round the rule by marking your business up as a product. "Company marked as product" is one of the reasons Google lists for a structured data manual action (Search Console Help).
The code
Put the block anywhere in the page's HTML, in the head or the body. On a site builder, that is usually a custom code or HTML block for that page. Change every sample value to the page's own, and keep the numbers in step with what the page shows: Google ignores, or acts against, markup that does not match what visitors can see.
1. A product page
JSON-LD for a product page
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Oak bench, 120 cm",
"image": "https://www.example.com/images/oak-bench.jpg",
"description": "A solid oak bench for a hall or a dining table.",
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": 4.6,
"reviewCount": 38
},
"review": [
{
"@type": "Review",
"author": {
"@type": "Person",
"name": "Dana R."
},
"datePublished": "2026-10-14",
"reviewRating": {
"@type": "Rating",
"ratingValue": 5
},
"reviewBody": "Solid, heavy and well finished. It took ten minutes to put the legs on."
},
{
"@type": "Review",
"author": {
"@type": "Person",
"name": "Tomás G."
},
"datePublished": "2026-09-30",
"reviewRating": {
"@type": "Rating",
"ratingValue": 4
},
"reviewBody": "Lovely bench. The oil it came with ran out before the second coat."
}
]
}
</script>A shop's page for one product, with its buyers' reviews shown on the page. The average and the count must be the ones shown on the page, for the reviews on your own site. Google's guidelines ask that a page with several marked-up reviews also carries the aggregate rating, and that the reviews marked up are all the ones visible. A reviewer's name must be a valid name, shorter than 100 characters; Google's own example of what not to write is "50% off until Saturday".
2. One review of something you did not make
JSON-LD for a single review
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Review",
"itemReviewed": {
"@type": "Book",
"name": "The Small Shop Handbook",
"author": {
"@type": "Person",
"name": "Ann Example"
}
},
"author": {
"@type": "Person",
"name": "Marcus L."
},
"datePublished": "2026-11-02",
"reviewRating": {
"@type": "Rating",
"ratingValue": 4,
"bestRating": 5,
"worstRating": 1
},
"reviewBody": "Practical on pricing and stock, thin on hiring."
}
</script>A review article, here of a book; the same shape works for a film, a course or an app. A review that stands on its own names the thing it reviews in itemReviewed. When a review sits inside the thing it reviews, as in the product example, leave itemReviewed out: Google takes the parent as the item. bestRating and worstRating are needed only if your scale is not 1 to 5.
3. A review site's page about another business
JSON-LD for a review site's business page
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Bakery",
"name": "Harbour Street Bakery",
"address": {
"@type": "PostalAddress",
"streetAddress": "12 Harbour Street",
"addressLocality": "Example Town",
"postalCode": "EX1 2AB"
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": 4.3,
"ratingCount": 112,
"reviewCount": 64
}
}
</script>Only for sites that collect reviews of businesses they do not own. ratingCount is the number of ratings; reviewCount is the number of people who wrote a review, with or without a rating. Google needs at least one of the two. It also asks that ratings come straight from users, not from editors who compile them.
The properties Google looks for
| Property | On | Needed? | What it holds |
|---|---|---|---|
| name of the item | Both | Required | The thing reviewed, in itemReviewed or in the parent type. Required since 2019. |
| itemReviewed | Both | Required unless nested | The item, when the review or rating is not inside the item's own markup |
| author | Review | Required | A valid name for a person or organisation, shorter than 100 characters |
| reviewRating.ratingValue | Review | Required | The score, with a dot for decimals (4.5, not 4,5). Google allows it to be left out only if the review has an author and a date |
| datePublished | Review | Recommended | The date the review was written, as 2026-10-14 |
| ratingValue | AggregateRating | Required | The average, as a number, a percentage or a fraction |
| ratingCount or reviewCount | AggregateRating | One of the two | How many ratings, or how many reviews |
| bestRating, worstRating | Both | Recommended | The top and bottom of your scale. Google assumes 5 and 1 if they are missing |
Mistakes that cost the stars
Google's guidelines, and the reasons it gives for manual actions, come down to a few rules. Breaking them can make a page ineligible for stars. A structured data manual action removes the page's rich results; Google says it does not change how the page ranks (general structured data guidelines).
- Marking up what visitors cannot see. Every review and rating in the code must be on the page, and obviously so.
- Copying ratings from other websites. Google's rules forbid aggregating reviews or ratings from other sites, so your Google rating does not belong in your product markup.
- Fake or hidden-incentive reviews. Google names both, and asks that neither be on the page or in the markup.
- Reviews written by the business. Allowed only when they are customer, independent and unpaid editorial reviews.
- One rating for a whole list or category. Each rating is for one item.
| Google's name for it | What it means |
|---|---|
| Structured data does not match content | The markup says something the page does not |
| Structured data found on hidden content | The marked-up reviews are not visible to visitors |
| No mechanism for submitting a new review | A page with reviews must let people add one, or show clearly where the reviews come from |
| Review written by the site or person providing the service | The business wrote or supplied reviews of itself |
| Company marked as product | A business labelled as a product to qualify for stars |
| Structured data issues on list page | Many items' reviews gathered into one rating |
Test it
- Run the Rich Results Test. Give it the page's address, or paste the code. It shows which rich results the markup can produce, and a preview of how they can look.
- Check other schema.org markup in the Schema Markup Validator. It checks any schema.org markup, without Google's own rules.
- Give Google time. It reads new markup when it next crawls the page, and shows stars only if it decides to.
Neither tool can tell you about the rules above: Google says the Rich Results Test cannot find a problem that is not a syntax problem, such as a self-serving review. A page can pass the test and still never show stars.
Is it worth adding?
Google's own case studies suggest rich results bring more clicks and visits, though none of them is about review stars alone:
| Company | What it measured |
|---|---|
| Rotten Tomatoes | 25% higher click-through rate on 100,000 pages with structured data than on pages without |
| Food Network | 35% more visits after converting 80% of its pages |
| Nestlé | 82% higher click-through rate for pages shown as rich results |
For a business whose reviews are about the business itself, the markup brings no stars, whatever tool adds it. The reviews still do their work on the people who reach your website: see how to add customer reviews to your website for where they help most.
Show your testimonials to the people who visit
A widget shows reviews and testimonials on your pages, where visitors read them before they decide. Whether a widget writes review markup at all is a question for its maker; for reviews of your own business, it makes no difference to stars in Google. The builder below makes a testimonial wall without an account; you sign up with ReTestimonial only to publish it.
Loading the builder…
Builder not showing? Open it on ReTestimonial
This site earns money when visitors pay for the tools it features; how this site is paid explains.
Questions
What is review schema?
Why don't my review stars show in Google?
Can I add schema markup to testimonials?
Can I put my Google rating in my website's schema?
Does review schema help my rankings?
Should I use JSON-LD or microdata?
For asking customers for reviews in the first place, see how to ask for Google reviews, and for the rules on what reviews you may show, the guide to fake reviews.