Quick Takeaway
LocalBusiness schema is JSON-LD code that tells Google your business name, address, phone, hours and location in a structured way. Google requires only name and address, and recommends telephone, url, geo, openingHoursSpecification and priceRange. Add it to your homepage or location page, test it in the Rich Results Test, and keep it identical to your visible page details.
Key takeaways
- Structured data helps Google understand your business details. Google says it does not guarantee any rich result and passing a test does not mean the feature will show.
- For LocalBusiness, Google requires only name and address. Telephone, url, geo, opening hours and priceRange are recommended.
- Use the most specific type you can, such as Plumber, Dentist or Restaurant, instead of plain LocalBusiness.
- Every value in the markup must match what visitors can see on the page. Marking up hidden or false information breaks Google's guidelines.
- FAQ rich results were limited to government and health sites in 2023, and Google's documentation now says they are no longer shown in Search at all.
Google reads your website like a stranger would. It can usually work out your phone number and hours from the footer, but it has to guess. LocalBusiness schema markup removes the guessing: a small block of code that states your name, address, phone, hours and location in a format search engines read reliably.
It is worth doing, but it is often oversold. This guide covers what it actually does, which fields Google uses, a template you can copy, how to add it on any platform and how to test it before and after it goes live.
- LocalBusiness schema markup
- LocalBusiness schema markup is structured data, usually written in JSON-LD, that uses the schema.org LocalBusiness type (or a more specific subtype) to describe a physical business: its name, address, phone number, opening hours, geographic coordinates and related details.
What does LocalBusiness schema do, and what does it not do?
Structured data gives Google explicit facts about a page so it can understand it and, in some cases, show enhanced results. Google's general guidelines are direct about the limits: it does not guarantee your structured data will show up in results, even when your markup passes the Rich Results Test.
| It can | It cannot |
|---|---|
| Tell Google your exact business name, address, phone and hours | Guarantee a rich result or a knowledge panel |
| Reduce confusion between similar businesses or locations | Move you up the rankings on its own |
| Give consistent details to other tools that read schema.org | Replace your Google Business Profile, which controls your map listing |
| Help describe departments or multiple locations clearly | Fix thin pages, missing content or a slow site |
Your map pack presence depends mainly on your Business Profile, so set that up first with our Google Business Profile checklist. Schema is the website side of the same facts. The two should match exactly.
Which LocalBusiness properties does Google support?
Google's Search Central documentation lists two required properties and a set of recommended ones. Add every recommended property that is true for your business.
| Property | Status | Notes |
|---|---|---|
| name | Required | Your business name as customers see it |
| address | Required | A PostalAddress with as many fields as possible: streetAddress, addressLocality, addressRegion, postalCode, addressCountry |
| telephone | Recommended | Main number including country and area code, for example +1 for the US |
| url | Recommended | The working URL of this specific location |
| geo | Recommended | latitude and longitude with at least 5 decimal places |
| openingHoursSpecification | Recommended | dayOfWeek, opens and closes in hh:mm:ss; add validFrom and validThrough for seasonal hours |
| priceRange | Recommended | Short value such as $$, under 100 characters |
| menu, servesCuisine | Recommended (food businesses) | A full menu URL and the cuisine type |
| department | Recommended | A nested LocalBusiness for each department, such as a pharmacy inside a store |
| review, aggregateRating | Recommended (limited) | Only for sites that capture reviews about other local businesses, not reviews of yourself |
Google also says to use the most specific subtype available. A plumber should use Plumber, a dental office Dentist, a café CafeOrCoffeeShop. You can browse the full list of subtypes on schema.org. If you need more than one type, use an array. Because LocalBusiness is a subtype of Organization, Organization properties such as logo and sameAs are also welcome.
What does a complete LocalBusiness JSON-LD template look like?
Here is a full example for a fictional plumbing company. Replace every value with your own, and remove any line that does not apply. Do not leave sample values in place.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Plumber",
"@id": "https://www.ridgelineplumbing.example/#business",
"name": "Ridgeline Plumbing",
"url": "https://www.ridgelineplumbing.example/",
"telephone": "+1-555-010-0142",
"image": "https://www.ridgelineplumbing.example/images/storefront.jpg",
"logo": "https://www.ridgelineplumbing.example/images/logo.png",
"priceRange": "$$",
"address": {
"@type": "PostalAddress",
"streetAddress": "120 Market Street, Suite 4",
"addressLocality": "Springfield",
"addressRegion": "IL",
"postalCode": "62701",
"addressCountry": "US"
},
"geo": {
"@type": "GeoCoordinates",
"latitude": 39.80172,
"longitude": -89.64371
},
"openingHoursSpecification": [
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"],
"opens": "07:00:00",
"closes": "18:00:00"
},
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": "Saturday",
"opens": "08:00:00",
"closes": "12:00:00"
}
],
"sameAs": [
"https://www.facebook.com/ridgelineplumbing.example",
"https://www.yelp.com/biz/ridgeline-plumbing.example"
]
}
</script>- @id gives this business a stable identifier, so other markup on your site (for example, on service pages) can refer to the same entity.
- geo: get your coordinates by right-clicking your pin in Google Maps. Keep at least 5 decimal places.
- Days you are closed can simply be left out. Google's documentation also explains how to mark 24-hour days and hours that run past midnight.
- sameAs lists your official profiles. Only include profiles you control.
Multiple locations
Give each location its own page with its own LocalBusiness block, its own address, phone, hours and url. Do not list five addresses in one block on the homepage.
How do you add schema markup to your website?
Google recommends JSON-LD because it sits in one script block and is easy to maintain. Put the LocalBusiness block on your homepage, or on each location page if you have several. How you add it depends on your platform.
Step 1: WordPress
SEO plugins such as Yoast SEO, Rank Math and All in One SEO generate business schema from their settings screens, and some local features need a paid add-on. Fill in every field the plugin offers. If your theme or another plugin also outputs schema, turn one of them off so you do not ship two conflicting blocks.
Step 2: Website builders (Wix, Squarespace, Shopify)
Builders usually generate basic business data from your site settings. Check what they output with the testing tools below first. If you need more, most let you paste custom code into the page header or a code block.
Step 3: Custom code or a framework
Render the script block in the server HTML of the page, ideally from the same data that fills your footer and contact page, so they can never drift apart. Our technical SEO checklist for Next.js shows where structured data fits in a React site.
Step 4: Google Tag Manager (last resort)
You can add JSON-LD as a Custom HTML tag. Google says it can read structured data that is in the page when it renders, but warns that typing values into GTM risks a mismatch with your page. Use GTM variables that read values from the page, and test with the URL option in the Rich Results Test, not pasted code.
Match the visible page
Google's guidelines say not to mark up content that is not visible to readers. Your schema hours, phone and address must be the ones printed on the page. If you change your hours, change both on the same day.
How do you test LocalBusiness schema?
Use two free tools, because they check different things.
| Tool | What it checks | Use it when |
|---|---|---|
| Rich Results Test (search.google.com/test/rich-results) | Whether Google can read your markup and whether it qualifies for Google rich result types | Before and after publishing; test the live URL |
| Schema Markup Validator (validator.schema.org) | Whether the markup is valid schema.org, including types Google does not use for rich results | To catch typos and wrong property names |
| Search Console URL Inspection | Whether Google found the structured data on its crawled version of the page | A few days after launch |
LocalBusiness on its own may not show a rich result card in the Rich Results Test. That is fine. What you want from the tests is no errors, and every value read back exactly as you intended. If you are new to Search Console, our Google Search Console for beginners guide explains URL Inspection.
What are the most common LocalBusiness schema errors?
- JSON syntax errors: a missing comma, a trailing comma after the last item or curly quotes pasted from a word processor. The validators point to the line.
- Address as one string: use a PostalAddress object with separate fields, not "120 Market St, Springfield IL".
- Wrong time format: write 07:00:00, not "7am". Days are names like Monday.
- Details that do not match the page or your Business Profile: an old phone number in the plugin settings is very common after a move.
- Two or three conflicting blocks: theme, SEO plugin and a pasted snippet all describing the business differently.
- Reviews of yourself: Google limits LocalBusiness review and aggregateRating markup to sites that review other businesses. Do not mark up testimonials about your own business.
- Sample values left in: "Your Business Name" or a template phone number shipped live.
Which other schema types are worth adding?
- Organization: on your homepage or about page. Google says it has no required properties and helps it understand details like your logo, which can appear in results and knowledge panels. If you already use LocalBusiness, its Organization properties are covered there.
- FAQPage: be careful here. In August 2023 Google limited FAQ rich results to well-known, authoritative government and health websites. Google's FAQPage documentation now says the FAQ rich result is no longer shown in Google Search. Writing real FAQs on your pages still helps visitors, but do not add FAQ markup expecting a rich result.
- BreadcrumbList: helps Google show your site hierarchy for location and service pages.
- Product or Service details: only if they match visible content. Shops should follow Google's product documentation instead.
Does LocalBusiness schema improve rankings?
Not directly. Google describes structured data as a way to understand pages and enable certain search features, and says it does not guarantee those features appear. It helps Google trust your details, which supports local SEO, but it will not outrank stronger content on its own.
Where should I put LocalBusiness schema?
On your homepage if you have one location, or on each location page if you have several. Each block should describe the location on that page.
Do I need schema if I have a Google Business Profile?
Yes, they do different jobs. Your Business Profile controls your Maps and local pack listing. Schema describes your website. Keep the name, address, phone and hours identical in both.
Can I add LocalBusiness schema with Google Tag Manager?
You can, using a Custom HTML tag, and Google can read it once the page renders. Google warns that retyping details in GTM risks mismatches, so pull values from the page with variables and test the live URL.
My service-area business has no public address. What do I do?
Google lists address as required for LocalBusiness markup. If you do not show an address on your site, do not invent or hide one in the markup. Use Organization markup with your name, url, logo and telephone instead, and set your service area in your Business Profile.
Why does the Rich Results Test show no rich result for my LocalBusiness markup?
It may simply mean LocalBusiness is not shown as a separate card for your page. Check that there are no errors and that the detected items list your business details correctly. The Schema Markup Validator will confirm the markup itself is valid.
Schema is a small job that is easy to get slightly wrong and leave wrong for years. If you want it built into your site from the same data as your pages, so it never drifts, our web development team can set it up.