Get star ratings in Google search results. Generate valid JSON-LD structured data markup for rich snippets.
This is what your search result could look like with star rating schema
Your average star rating (1.0 - 5.0)
Number of reviews/ratings
Actual appearance depends on Google's discretion
Click the "Copy Code" button above to copy the JSON-LD schema to your clipboard.
Paste the code in the <head> section of your HTML page, or just before the closing </body> tag.
Use Google's Rich Results Test to ensure your schema is valid.
Google needs to recrawl your page to detect the schema. This can take days to weeks. Use Google Search Console to request indexing.
Shoutjar helps you collect real reviews to back up your ratings. Authentic social proof from 20+ platforms, all in one place.
Start Free TrialNo credit card required
Schema markup is structured data code that helps search engines understand your content. Star rating schema specifically tells Google about your product or business ratings, enabling those eye-catching star ratings to appear directly in search results (called "rich snippets").
No, adding schema markup makes you eligible for rich snippets, but Google decides whether to display them. Having valid schema, real reviews, and an authoritative website increases your chances significantly.
Google's guidelines require that ratings reflect genuine user reviews. Using fake ratings or inflated numbers violates their policies and can result in penalties. Only use this schema with legitimate review data.
Choose based on what you're marking up: Product for items you sell, LocalBusiness for physical locations, SoftwareApplication for apps, Organization for company-wide ratings, Course for educational content.
After implementing schema, Google needs to recrawl your page. This can take anywhere from a few days to several weeks. Use Google Search Console to request indexing for faster results.
Yes! You should add relevant schema to each page. Product pages get Product schema, your business page gets Organization schema, etc. Each page can have its own ratings.