AutoReview logoAutoReview
PricingFree ToolsHelp
Log inGet Started
HomeFree ToolsStar Rating Schema Generator

Star Rating Schema Generator

Generate JSON-LD structured data markup to display star ratings in Google search results. Fill in your details, copy the code, and paste it into your website's <head>.

Rich Snippet Preview

Your Business Name - Official Website

https://yourbusiness.com

Business description would appear here in the search result...

Generated JSON-LD

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "LocalBusiness"
}
</script>

Paste this snippet inside the <head> of your page. Google may take a few days to show the star rating in search results.

Get more reviews to put in that schema

AutoReview helps you collect the reviews your schema will display

Rich snippets are only as powerful as the reviews behind them. AutoReview automates the process of asking every customer for a review — so your rating improves, your review count grows, and your structured data stays accurate.

Automated review requestsMulti-platform monitoringRating trend tracking
See AutoReview plans

What is JSON-LD structured data?

JSON-LD (JavaScript Object Notation for Linked Data) is Google's preferred format for structured data. It's a block of machine-readable code you embed in your page's <head> that tells Google what type of content your page contains — including things like business name, rating, and review count. Google uses this data to enhance your search result with rich snippets like star ratings.

Will this guarantee star ratings in Google?

Adding valid structured data is a necessary step, but Google decides whether to display rich snippets based on several factors: page quality, relevance, and whether the data accurately reflects the page content. Google also requires that the ratings displayed in schema be collected from actual users — not self-assigned. Use your real aggregate rating from Google or another verified review platform.

How to add the schema to your website

  1. Copy the generated code using the button above.
  2. Open your website's HTML or CMS theme editor and find the <head> section.
  3. Paste the <script type="application/ld+json"> block before the closing </head> tag.
  4. Validate your markup with Google's Rich Results Test.

Which schema type should I use?

  • LocalBusiness — general catch-all for physical locations.
  • Restaurant — for food & beverage businesses.
  • Hotel — for accommodation properties.
  • Product — for e-commerce product pages.
  • MedicalBusiness — for clinics, dentists, and healthcare providers.
  • Use the most specific type that fits — Google rewards accuracy.

Star rating schema FAQ

How do I add star ratings to Google search results?

Generate AggregateRating structured data with this tool, then add it to the page you want to rank. Star ratings appear when Google detects valid, eligible review markup that accurately reflects content on the page — paste the generated JSON-LD into your page's <head>, then request indexing. There's no setting inside Google to toggle stars on; the markup is the mechanism, and Google decides whether to render the snippet.

What does a LocalBusiness or Product AggregateRating example look like?

For a LocalBusiness, the JSON-LD wraps an "aggregateRating" object inside your business node: { "@type": "LocalBusiness", "name": "Acme Plumbing", "aggregateRating": { "@type": "AggregateRating", "ratingValue": "4.8", "reviewCount": "126" } }. For a Product page, swap "@type" to "Product" and keep the same aggregateRating block. This generator builds the full, correctly nested block for whichever type you choose — you don't write it by hand.

Where do I put the JSON-LD — in the head or the body?

Either works for Google, but the <head> is the convention and what this tool recommends. JSON-LD is wrapped in a <script type="application/ld+json"> tag, which is inert, so placing it in the head keeps it out of your visible layout. If your CMS or theme only lets you inject code into the body or footer, that's fine too — Google parses the script wherever it appears in the rendered HTML.

What's the difference between Review and AggregateRating markup?

A Review represents one individual rating with an author and body text. AggregateRating is the summary — the average score and total count across all reviews. For a star-rating snippet on a business or product page you almost always want AggregateRating, which is what this generator produces. Use individual Review markup only when you're displaying specific, real, on-page customer reviews you want to mark up separately.

Do star rating rich snippets still work in 2026?

Yes — review and AggregateRating snippets are still a supported rich result. The important change is enforcement: Google no longer shows stars for "self-serving" reviews, meaning ratings a business collects about itself and posts on its own site for the express purpose of earning the snippet. Generate the markup from genuine, independently collected ratings (such as your real Google or platform average) and it remains eligible.

AutoReview logoAutoReview

Put your review collection on autopilot with AutoReview.

AutoReview - Put Your Review Collection on Autopilot. | Product HuntAutoReview - Featured on Startup Fame

Product

  • Pricing
  • Widgets
  • Alternatives
  • Roadmap

Free Tools

  • All Tools
  • Google Review Link Generator
  • Reputation Scorecard
  • Google Business Profile Audit
  • Review Response Generator
  • QR Code Generator

For Your Industry

  • Med Spas
  • Dentists
  • Chiropractors
  • Restaurants
  • HVAC Companies
  • Plumbers

Resources

  • Help Center
  • Contact

Company

  • About
  • Security
  • Privacy Policy
  • Terms of Service
  • Imprint

© 2026 AutoReview. All rights reserved.

OpenHunts Club MemberFeatured on LaunchIgniterUneed Embed Badge