Free Tool
Local business schema generator
Fill in your business details and get ready-to-paste LocalBusiness JSON-LD schema markup, the structured data Google and AI assistants use to understand who you are, where you are and when you're open. Test it in one click.
JSON-LD
"Copy & test" copies your code and opens Google's Rich Results Test. Choose the Code tab and paste (Ctrl/Cmd + V).
How to add LocalBusiness schema to your website
- Fill in your details. Use exactly the same name, address and phone number as your Google Business Profile.
- Copy the code and paste it into the
<head>of your homepage (or the page for that location). - Click Copy & test, paste into the Code tab of Google's Rich Results Test, and fix any errors.
LocalBusiness schema example
Here's what finished markup looks like for a plumber in Toronto. Yours will follow the same pattern with your own details and business type:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Plumber",
"@id": "https://example.com/#business",
"name": "Example Plumbing Co.",
"url": "https://example.com/",
"telephone": "+1-416-555-0123",
"priceRange": "$$",
"image": "https://example.com/team.jpg",
"address": {
"@type": "PostalAddress",
"streetAddress": "123 Main St",
"addressLocality": "Toronto",
"addressRegion": "ON",
"postalCode": "M5V 2T6",
"addressCountry": "CA"
},
"geo": {
"@type": "GeoCoordinates",
"latitude": 43.6532,
"longitude": -79.3832
},
"areaServed": [
{
"@type": "City",
"name": "Toronto"
},
{
"@type": "City",
"name": "Mississauga"
}
],
"openingHoursSpecification": [
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": [
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday"
],
"opens": "08:00",
"closes": "18:00"
}
],
"sameAs": [
"https://www.facebook.com/exampleplumbing"
]
}
</script>
WordPress
Most SEO plugins (Yoast, Rank Math, SEOPress) already output some schema. Use their local SEO settings where you can, or add this block with a header-scripts plugin such as WPCode (Code Snippets → Header & Footer → Header). Then check in the Rich Results Test that you don't have two conflicting LocalBusiness blocks.
Shopify
Go to Online Store → Themes → … → Edit code, open theme.liquid and paste the code just before </head>. Save, then test your homepage.
Wix
Go to Settings → Custom Code → Add Custom Code, paste the code, set it to load on your homepage (or all pages) in the Head, and apply. Wix also has a Structured Data Markup option under a page's SEO settings.
Squarespace
Go to Settings → Advanced → Code Injection and paste the code into the Header box. Code Injection needs a Business plan or higher.
Webflow
Open Project Settings → Custom Code and paste into the Head code area for site-wide schema, or use the page's settings for a single location page. Publish, then test.
Service-area businesses
If you travel to customers and don't want your home address public, tick the option to leave out your street address and list the towns and cities you serve instead.
Keep it accurate
Schema must describe what's actually on the page and in the real world. Wrong hours or an old phone number does more harm than no schema at all, so update it whenever your details change.
What is local business schema?
Where do I put the schema code?
<script type="application/ld+json"> block into the <head> of your homepage, or the page about that location. In WordPress you can use a header-scripts plugin or your SEO plugin's custom schema option. It doesn't change how the page looks.Does schema improve my rankings?
Will FAQ schema show FAQs in Google results?
How do I test my schema?
What is the difference between LocalBusiness and Organization schema?
Want your local SEO done properly?
We handle schema, technical SEO, Google Business Profile alignment and AI-search readiness as part of every site we build.
More free tools
All 18 free tools →AI Readiness Scanner
Check whether ChatGPT, Claude, Perplexity and Google's AI features can reach, read and understand your page. Score out of 100 with plain-English fixes.
Open tool → AI Searchllms.txt Generator
Create an llms.txt file that gives ChatGPT, Claude, Perplexity and other AI assistants a clean summary of your site.
Open tool → Ecommerce & DTCROAS & Break-Even Calculator
Find your break-even ROAS, maximum CPA and true profit per sale before you scale ad spend.
Open tool →