Review & AggregateRating Schema Generator

Pick what is being reviewed, switch between a single review and an aggregate rating, and get copy-paste JSON-LD. Validation flags the policy violations that get star ratings revoked, including the self-serving review rule.

     

    Where to paste this

    Copy the whole block, including the script tags, and paste it into the <head> or anywhere in the <body> of the page where the reviewed item is the main content. A product review belongs on the product page, not on your homepage or a category page. Google reads JSON-LD wherever it appears in the HTML, so placement inside the document does not matter, but placement on the right URL does.

    The self-serving review rule

    Since September 2019, Google ignores review markup that a LocalBusiness or Organization places about itself on its own site. Your own testimonials page cannot earn your business a star rating. The rule exists because self-published five-star averages carry no independent signal. Star eligibility survives for the things a business sells or publishes: products, recipes, courses, software, books, and movies, and for genuinely third-party reviews, such as a review site rating someone else's restaurant.

    Make the numbers match the page

    Whatever the markup claims must be verifiable by a human looking at the page. If your AggregateRating says 4.6 from 128 reviews, the page should display that average and give access to those reviews. Markup that disagrees with visible content is the fastest route to a structured data manual action, and recovering from one takes a reconsideration request, not just a code fix.

    Frequently asked questions

    Why did my star ratings disappear?

    The three most common causes are the self-serving review policy (a LocalBusiness or Organization marking up reviews of itself on its own site has been ineligible for stars since September 2019), markup placed on the wrong page (review markup must sit on the page where the reviewed item is the main content), and numbers that do not match what visitors can see (if your markup says 4.8 from 212 reviews, those reviews need to be visible on the page).

    What is the difference between Review and AggregateRating?

    A Review represents one person's opinion: one author, one rating, one review body. An AggregateRating summarizes many ratings into a single average plus a count. Use Review when you display an individual editorial or customer review, and AggregateRating when you display an average score collected from multiple reviewers. You can include both on the same item when both are shown on the page.

    Can I mark up third-party reviews, like my Google reviews?

    No. Google's guidelines require that the reviews you mark up were collected by you and are displayed on your own site. Importing star counts from Google Business Profile, Yelp, or Trustpilot into your markup violates the guidelines and risks a manual action. Mark up only first-party reviews that visitors can read on the page itself.

    Do review stars still show in search results in 2026?

    Yes, for eligible types. Products, recipes, books, movies, courses, software apps, and events can all still earn star ratings in results. What changed in 2019 is that self-serving reviews of LocalBusiness and Organization entities stopped being eligible, so a plumber cannot star-rate itself on its own homepage. Third-party review of someone else's business is still fine.