Local business schema
generator.
Schema markup is a short block of code that tells Google and AI assistants exactly who you are, what you do, and where you work. Most generators assume a storefront. This one is built for businesses that drive to the customer.
Build your LocalBusiness schema
Fill in what applies. The code updates as you type, and nothing leaves your browser.
Separate with commas or new lines.
Full links to Facebook, Yelp, Instagram, Nextdoor, and so on. One per line.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Plumber",
"name": "Your Business Name",
"priceRange": "$$",
"openingHoursSpecification": [
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": [
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday"
],
"opens": "08:00",
"closes": "17:00"
}
]
}
</script>Paste this into the head section of your homepage, then check it with Google's Rich Results Test or the Schema Markup Validator.
What local business schema is, and what it is not.
Your website already says your business name, phone number, and service area in words a person can read. Schema says the same things in a structured format that software can read without guessing. It uses a shared vocabulary from schema.org, written in a format called JSON-LD, and it sits invisibly in the code of your page.
Search engines use it to confirm the basic facts about your business and connect your website to your Google Business Profile and other listings. AI assistants and answer engines use the same structured facts when they describe or recommend local businesses.
It is not a ranking shortcut. Google has said structured data helps it understand a page, not that it lifts rankings by itself. Think of it as removing doubt: when your website, your schema, and your Google Business Profile all state the same name, phone, and service area, search engines can be confident they are looking at one real business.
From form to live on your site.
- Step 1
Fill in the form
Use the exact business name and phone number shown on your Google Business Profile. Consistency is the whole point.
- Step 2
Copy the code
The script block on the right is complete. Copy all of it, including the opening and closing script tags.
- Step 3
Add it to your homepage
Paste it into the head of your homepage. On WordPress, Wix, and Squarespace, look for a custom code or header code setting.
- Step 4
Test it
Run your page through Google's Rich Results Test or the Schema Markup Validator and fix anything flagged.
Rules that keep your markup trustworthy.
Only mark up what is on the page: Google's guidelines require structured data to match content visible to visitors. Do not add hours, services, or areas your site does not mention.
Pick the most specific type: Plumber is better than LocalBusiness if you are a plumber. If your trade is not listed, a broader type like HomeAndConstructionBusiness is correct.
Do not invent ratings: Never add review or rating markup for reviews that are not shown on that page, and do not mark up your own reviews of yourself. Google ignores it at best.
Hide your address the same way everywhere: If your Google profile hides your street address, leave it out of your schema too. City, state, and ZIP are enough.
List real service areas: Add the cities you actually travel to. A list of fifty cities you have never worked in helps nobody.
Update it when things change: A new phone number or new hours needs to change on the website, in the schema, and on your Google profile at the same time.
Every website we build includes complete structured data, written by hand for your business and kept in sync when your details change. The build is $0 and the plan is $100/month.
More on getting found locally.
The basics in plain language.
The full picture.
Show up in cities where you have no office.
The other half of local search.
Another free tool.
We check your schema for you.
Schema markup questions.
What is LocalBusiness schema?+
LocalBusiness schema is structured data from schema.org that describes a local business to search engines: its name, type, phone number, address or service area, hours, and website. It is added to a web page as a JSON-LD script.
Does schema markup improve rankings?+
Not directly. Structured data helps search engines understand your business and can make your pages eligible for richer search results. It supports good local SEO, but it does not replace a complete Google Business Profile, real reviews, and useful pages.
Which schema type should a service-area business use?+
Use the most specific type that fits, such as Plumber, Electrician, HVACBusiness, or RoofingContractor. Leave out the street address if you do not serve customers at your location, and list the cities you cover with areaServed.
Where do I put the JSON-LD code?+
Paste it into the head section of your homepage. Google also reads JSON-LD placed in the body. Most website builders have a setting for custom header code.
Do AI assistants like ChatGPT use schema markup?+
AI systems read web pages in different ways, and none of them publish exact rules. Clear, consistent, structured facts about your business make it easier for any system, search engine or AI assistant, to describe you accurately.
Is this generator free?+
Yes. No signup, no email, no limits. The code is generated in your browser and nothing you enter is stored or sent to us.
Let's build the website your business deserves.
Tell us a bit about what you do. We'll come back with a proposal, at no cost.