Star Rating Schema
Generator
Generate valid JSON-LD AggregateRating schema markup for your website in seconds. Make your business eligible for star ratings in Google search results — no coding knowledge required.
Configure Your Schema
Fill in your details to generate
Your Schema Code
Paste this into your website
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "LocalBusiness",
"name": "Your Business Name",
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4.5",
"reviewCount": 124,
"bestRating": "5",
"worstRating": "1"
}
}
</script>Where to paste this
Add inside <head> or <body> of your HTML. For WordPress: use a custom HTML block or SEO plugin. For Webflow: paste into Page Settings → Custom Code.
What star ratings in search results actually do
When your search result shows gold stars, it stands out from every plain blue link around it. Schema markup is what makes that possible.
35%
Higher click-through rate
Pages with rich snippet star ratings average 35% more clicks than those without. The visual difference is significant.
4.5+
Instant credibility before the click
Customers see your rating before they even visit your site. A strong rating removes hesitation at the very top of the funnel.
Free
No advertising spend required
Schema is a one-time implementation. Unlike paid ads, once it is live it keeps working — no ongoing cost.
How to add schema to your website
Platform-by-platform instructions for adding your generated schema code. Most take under 5 minutes.
WordPress
- 1Install a plugin like RankMath SEO or Yoast SEO
- 2Go to the page or post you want to add schema to
- 3Find the 'Schema' section in the plugin settings
- 4Select your schema type and fill in the details
- 5Alternatively, use a Custom HTML block and paste the script tag directly
Webflow
- 1Open the page settings for the page you want to update
- 2Scroll to the 'Custom Code' section
- 3Paste the script tag into the 'Head Code' field
- 4Publish the page
- 5Test with Google's Rich Results Test tool
Shopify
- 1Go to Online Store → Themes → Edit Code
- 2Open the theme.liquid file
- 3Paste the script tag before the closing </head> tag
- 4Save and publish
- 5For product-level schema, edit the product.liquid template instead
Plain HTML
- 1Open your HTML file in a code editor
- 2Paste the script tag inside the <head> section
- 3Save the file and upload it to your server
- 4Test using Google's Rich Results Test
- 5Google will crawl and index the schema on its next visit
Common schema mistakes that get your rich snippets removed
Google actively enforces its rich snippet policies. These are the mistakes that most commonly result in rich snippets being suppressed or penalised.
Using fake or inflated ratings
Google can penalise your listing and remove rich snippets entirely. Only use your real aggregate rating.
Mismatch between schema and visible content
If your page shows 4.2 stars but your schema says 4.8, Google may flag this as misleading and suppress your rich snippets.
Adding schema to pages without visible reviews
Google expects the page to actually display reviews to customers. Schema on pages with no visible ratings may be ignored.
Using the wrong item type
A restaurant using 'Product' schema instead of 'LocalBusiness' may not qualify for the right rich result format in Google Search.
schema shows your rating. Bragly helps you earn it.
Collect more genuine reviews so your rating keeps climbing and your schema stays accurate.
Frequently Asked Questions
AggregateRating is a Schema.org type that tells Google the average star rating and review count for your business or product. When correctly implemented, Google may show gold star ratings directly in search results as rich snippets.