LocalBusiness Schema: Copy-and-Paste Examples for Dentists, Plumbers, Restaurants, HVAC Companies and Lawyers
Published · 9 min read
Platform details checked against official documentation on November 10, 2026.
LocalBusiness schema is a short block of code, written in a format called JSON-LD, that states your business name, address, phone number and hours in a form search engines read directly. Below are five ready-to-edit examples: a dentist, a plumber, a restaurant, an HVAC company and a law firm. Pick the closest one, replace every value with your own, paste it into your homepage, and test it with Google's Rich Results Test.
What LocalBusiness schema is
Your website already shows your address and opening hours to people. Structured data repeats those same facts in a fixed vocabulary, published at Schema.org, so software does not have to work them out from the page layout. "LocalBusiness" is the general type, and there are more specific types under it, such as Dentist, Plumber, Restaurant, HVACBusiness and LegalService.
Google accepts three formats for structured data and recommends JSON-LD "if your site's setup allows it." JSON-LD is the easiest for a business owner to manage, because it sits in one block and does not change how the page looks.
Why it matters, and what it does not do
Structured data removes guesswork. Without it, a search engine has to infer which number on the page is your main phone line and which text is your address. With it, those facts are labeled.
It is not a ranking switch. Google states that it "does not guarantee that your structured data will show up in search results," and its local results are driven mainly by your Google Business Profile and by what Google calls relevance, distance and prominence. Treat schema as making your details easy to read, not as a way to move up.
Required and recommended properties
Google's local business documentation separates what it requires from what it recommends. Other Schema.org properties are valid but not part of Google's list for this feature.
| Property | Google's status | Notes |
|---|---|---|
name | Required | The business name as customers know it. |
address | Required | A PostalAddress. Google asks you to include as many parts as possible. |
telephone | Recommended | The main number customers should call. |
url | Recommended | The page for this location. |
openingHoursSpecification | Recommended | Days, opening and closing times. |
geo | Recommended | Latitude and longitude, at least 5 decimal places. |
priceRange | Recommended | Shorter than 100 characters, for example $$. |
servesCuisine, menu | Recommended | For restaurants. |
department | Recommended | For a business with separate departments, such as a car dealer's service center. |
review, aggregateRating | Recommended, with limits | See "Common mistakes" below. Usually leave these out. |
image, logo, sameAs, areaServed | Not in Google's list | Valid Schema.org properties that other systems may read. |
How to add it, step by step
- Pick the most specific type. Google asks for "the most specific LocalBusiness sub-type possible." Use the examples below as a starting point. For a type not listed here, search the Schema.org type list (for example
Electrician,RoofingContractororChiropractor). - Copy the example and replace every value. Every name, address, phone number, URL and time below is a placeholder. Use exactly what appears on your website and your Google Business Profile.
- Edit it in a plain text editor. Word processors turn straight quotes into curly ones, which breaks the code. Use Notepad, TextEdit in plain-text mode, or your website builder's code box.
- Paste it into your homepage. The block can go in the page's head section or body. Most website builders have a setting for adding code to the header: look for "custom code," "code injection" or "header scripts." If you use WordPress with an SEO plugin, check whether the plugin already outputs business schema, so you do not end up with two conflicting blocks.
- Test it. See "How to check that it worked" below.
Example: dentist
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Dentist",
"name": "Maple Street Family Dental",
"url": "https://www.example.com/",
"telephone": "+1-555-555-0142",
"image": "https://www.example.com/images/office-front.jpg",
"address": {
"@type": "PostalAddress",
"streetAddress": "123 Maple Street, Suite 200",
"addressLocality": "Springfield",
"addressRegion": "IL",
"postalCode": "62701",
"addressCountry": "US"
},
"geo": {
"@type": "GeoCoordinates",
"latitude": 39.78172,
"longitude": -89.65015
},
"openingHoursSpecification": [
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday"],
"opens": "08:00:00",
"closes": "17:00:00"
},
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": "Friday",
"opens": "08:00:00",
"closes": "13:00:00"
}
],
"sameAs": [
"https://www.facebook.com/example"
]
}
</script>Example: plumber that travels to customers
Many trades serve customers at the customer's address. Google's Business Profile guidance says that if you don't serve customers at your business address, you should hide it from your profile. If you also keep the street address off your website, leave streetAddress out of the schema rather than publishing something your site does not show, and use areaServed to list the places you cover.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Plumber",
"name": "Riverside Plumbing Co.",
"url": "https://www.example.com/",
"telephone": "+1-555-555-0167",
"priceRange": "$$",
"address": {
"@type": "PostalAddress",
"addressLocality": "Springfield",
"addressRegion": "IL",
"postalCode": "62704",
"addressCountry": "US"
},
"areaServed": [
{ "@type": "City", "name": "Springfield" },
{ "@type": "City", "name": "Chatham" },
{ "@type": "City", "name": "Rochester" }
],
"openingHoursSpecification": {
"@type": "OpeningHoursSpecification",
"dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"],
"opens": "07:00:00",
"closes": "18:00:00"
}
}
</script>Example: restaurant
Google recommends servesCuisine and menu for restaurants. Schema.org has since introduced hasMenu as the newer name for the menu property; Google's documentation still lists menu, so that is what this example uses.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Restaurant",
"name": "Lakeside Kitchen",
"url": "https://www.example.com/",
"telephone": "+1-555-555-0118",
"servesCuisine": ["American", "Seafood"],
"priceRange": "$$",
"menu": "https://www.example.com/menu",
"acceptsReservations": true,
"address": {
"@type": "PostalAddress",
"streetAddress": "45 Harbor Road",
"addressLocality": "Springfield",
"addressRegion": "IL",
"postalCode": "62702",
"addressCountry": "US"
},
"openingHoursSpecification": [
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": ["Tuesday", "Wednesday", "Thursday", "Sunday"],
"opens": "11:30:00",
"closes": "21:00:00"
},
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": ["Friday", "Saturday"],
"opens": "11:30:00",
"closes": "22:30:00"
}
]
}
</script>Example: HVAC company
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "HVACBusiness",
"name": "Northside Heating & Air",
"url": "https://www.example.com/",
"telephone": "+1-555-555-0190",
"address": {
"@type": "PostalAddress",
"streetAddress": "780 Industrial Drive",
"addressLocality": "Springfield",
"addressRegion": "IL",
"postalCode": "62703",
"addressCountry": "US"
},
"areaServed": [
{ "@type": "AdministrativeArea", "name": "Sangamon County" },
{ "@type": "City", "name": "Springfield" }
],
"openingHoursSpecification": {
"@type": "OpeningHoursSpecification",
"dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
"opens": "07:30:00",
"closes": "17:30:00"
}
}
</script>Example: law firm
Use LegalService for a law firm. Schema.org once had an Attorney type, but it is now marked deprecated because "LegalService is more inclusive and less ambiguous."
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "LegalService",
"name": "Harper & Lane Law Office",
"url": "https://www.example.com/",
"telephone": "+1-555-555-0135",
"address": {
"@type": "PostalAddress",
"streetAddress": "200 Court Street, Floor 3",
"addressLocality": "Springfield",
"addressRegion": "IL",
"postalCode": "62701",
"addressCountry": "US"
},
"openingHoursSpecification": {
"@type": "OpeningHoursSpecification",
"dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"],
"opens": "09:00:00",
"closes": "17:00:00"
}
}
</script>How to check that it worked
- Run the Rich Results Test on your homepage URL. It shows whether Google can read the markup and lists any errors or warnings. Errors need fixing; warnings about optional properties do not.
- Run the Schema Markup Validator. It checks against the full Schema.org vocabulary, including properties Google does not use.
- View the page source (right-click the page, then "View page source") and search for
application/ld+json. If you can't find it there but the tests above see it, a script is adding it after the page loads. Google can usually process that, but tools that read only the HTML your server sends, including our free check, will not see it. - Compare the details with your Google Business Profile. The name, phone number and hours should match.
Common mistakes
- Values that don't match the page. Google's rule is to mark up only content that is visible to readers. Don't put a phone number, address or hours in schema that your page doesn't show.
- Star ratings for yourself. Google states that pages using LocalBusiness or Organization markup are not eligible for review stars when the business controls the reviews about itself, including reviews shown through an embedded Google or Facebook widget. Leave
reviewandaggregateRatingout of your own business schema. Never include fake or undisclosed incentivized reviews. - Two conflicting blocks. A theme, a plugin and a hand-pasted block can each add their own. Keep one.
- Broken JSON. A missing comma, an extra comma after the last item, or curly quotes will stop the whole block from being read. The validators above point to the line.
- Expecting FAQ markup to add question boxes. Google stopped showing FAQ rich results in May 2026, so
FAQPagemarkup no longer produces them. - Using it once and forgetting it. Update the schema when your hours, phone number or address change.
Related reading
Schema works best when the same details are also visible as text on the page. See how to make your address and phone number visible to Google and AI. If AI assistants don't mention your business at all, start with why a website may not show up in ChatGPT.
Sources
- Google Search Central: Local business structured data
- Google Search Central: General structured data guidelines
- Google Search Central: Review snippet guidelines
- Google Search Central: Search updates (FAQ rich results retired, 2026)
- Schema.org: LocalBusiness, LegalService, Attorney, menu
- Google Business Profile Help: Manage your service areas