Skip to content
Testimonial Widget
Menu

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).

  1. nameThe thing reviewed. Required since 2019.
  2. ratingValueThe average, on a 5-point scale unless you set bestRating.
  3. 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.

Which pages can show review stars in Google
The pageStars?Why
A product page in your online shop, with buyers' reviews of that productIt canProduct 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 businessNoThe business being reviewed controls the reviews about itself
The same page, with your Google or Facebook reviews in a widgetNoGoogle names these widgets as examples of reviews a business controls
A review site's page about a business it does not ownIt canLocal business and organisation reviews are allowed for sites that collect reviews of others
A blog's review of a book, film, course, game or appIt canAll are types Google lists for review snippets
A page listing many products, with one rating for all of themNoA review must be about one specific item, not a category or a list
Your Google Business ProfileYesThe rule is about markup on your website, not your listing on Google
From Google's review snippet guidelines, last updated on 8 September 2026, and its 2019 announcement. Read on 2 December 2026. Google does not guarantee stars even for pages that qualify.

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

Review and AggregateRating properties for Google's review snippets
PropertyOnNeeded?What it holds
name of the itemBothRequiredThe thing reviewed, in itemReviewed or in the parent type. Required since 2019.
itemReviewedBothRequired unless nestedThe item, when the review or rating is not inside the item's own markup
authorReviewRequiredA valid name for a person or organisation, shorter than 100 characters
reviewRating.ratingValueReviewRequiredThe 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
datePublishedReviewRecommendedThe date the review was written, as 2026-10-14
ratingValueAggregateRatingRequiredThe average, as a number, a percentage or a fraction
ratingCount or reviewCountAggregateRatingOne of the twoHow many ratings, or how many reviews
bestRating, worstRatingBothRecommendedThe top and bottom of your scale. Google assumes 5 and 1 if they are missing
From Google's review snippet guidelines. The product snippet guidelines add that a product needs its name and at least one of review, aggregateRating or offers.

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.
Structured data manual actions that involve reviews
Google's name for itWhat it means
Structured data does not match contentThe markup says something the page does not
Structured data found on hidden contentThe marked-up reviews are not visible to visitors
No mechanism for submitting a new reviewA 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 serviceThe business wrote or supplied reviews of itself
Company marked as productA business labelled as a product to qualify for stars
Structured data issues on list pageMany items' reviews gathered into one rating
From the Manual Actions report help page, read on 2 December 2026.

Test it

  1. 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.
  2. Check other schema.org markup in the Schema Markup Validator. It checks any schema.org markup, without Google's own rules.
  3. 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:

Case studies Google publishes on structured data
CompanyWhat it measured
Rotten Tomatoes25% higher click-through rate on 100,000 pages with structured data than on pages without
Food Network35% more visits after converting 80% of its pages
Nestlé82% higher click-through rate for pages shown as rich results
From Google's introduction to structured data, last updated on 10 December 2025. The companies measured these themselves, and Google gives no dates for them.

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?
Code, usually JSON-LD, that describes the reviews on a page using schema.org's Review and AggregateRating types. Google can use it to show stars, the average rating and the number of reviews under the page in its results.
Why don't my review stars show in Google?
Most often because the reviews are about your own business, on your own website; Google stopped showing stars for those in 2019, whether they are in your code or in a widget. Otherwise, check that the reviews are visible on the page, that the markup passes the Rich Results Test, and that the page is about one item. Google never guarantees stars.
Can I add schema markup to testimonials?
You can mark them up as reviews, but they will not bring stars: testimonials about your business on your website are what Google calls self-serving. Google said in 2019 that existing markup of this kind does not need to be removed and does not bring a manual action on its own.
Can I put my Google rating in my website's schema?
No. Google's guidelines forbid aggregating reviews or ratings from other websites, and the rating would be about your own business. Show the Google reviews themselves on the page instead, with a widget.
Does review schema help my rankings?
Google presents structured data as a way to become eligible for rich results, such as stars, not as a ranking boost. Its case studies measured clicks and visits. And it says a structured data manual action removes rich results without changing how the page ranks.
Should I use JSON-LD or microdata?
Google supports JSON-LD, microdata and RDFa equally, and recommends JSON-LD because it is the easiest to write and maintain. Use whichever your site's tools produce, as long as it describes what is visible on the page.

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.