Free local business schema generator
How do I add local business schema to my website?
Fill in your business details below and copy the generated JSON-LD into the <head> of your homepage or contact page. It tells Google and AI assistants your exact name, address, phone and opening hours, matching your Google Business Profile.
Your schema code
Add your business name, street address and city, phone number, website URL for complete local business markup.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "LocalBusiness",
"name": "Your business name",
"openingHoursSpecification": [
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": [
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday"
],
"opens": "09:00",
"closes": "17:00"
}
]
}
</script>Paste into the <head> of your homepage or contact page, then check it with Google's Rich Results Test.
Connected to Google? LocalRanks Pro generates this code from your verified profile and keeps it in step with your hours.
See Website Widget & SchemaFree profile auditFrequently asked questions
Where do I put the schema code?
Paste it inside the <head> of your homepage or contact page. In WordPress use a header-code plugin, in Wix use Custom Code, in Squarespace use Code Injection.
Why is there no star rating in the code?
Google doesn't show review stars for reviews a business publishes about itself, and marking them up can be treated as spammy structured data. The generator leaves ratings out on purpose.
How do I check it works?
Paste your page address into Google's Rich Results Test (search.google.com/test/rich-results) after adding the code.
Should the details match my Google Business Profile?
Yes, exactly: same business name, address and phone number. Consistent details everywhere help Google trust your listing.