LocalBusiness Schema Markup: How to Add It (With a Copy-Paste Example)
Quick answer
LocalBusiness schema is JSON-LD structured data that labels your business name, address, phone, opening hours, location and official profiles so search engines and AI tools can read them reliably. Add one block to your homepage or contact page, use the most specific business subtype, match your Google Business Profile exactly, and test it with Google's Rich Results Test. It does not boost rankings directly, but it removes doubt about your details.
Your website probably already shows your address, phone number and opening hours. LocalBusiness schema markup repeats those facts in a format machines can read without guessing. It takes about fifteen minutes to add, and it helps both search engines and AI assistants get your details right.
What is LocalBusiness schema?
Schema markup is structured data, a small block of code using the shared vocabulary at schema.org, that labels facts on your page: "this is the business name", "this is the phone number", "these are the opening hours". LocalBusiness is the type for businesses with a physical location or service area. It has more specific subtypes, such as AutoRepair, Dentist, Plumber, HairSalon and Restaurant.
Google recommends the JSON-LD format: a script block that sits in the page and does not change how it looks.
What it does and does not do
- It does help Google confirm your name, address, hours and contact details, and connect your website to your Google Business Profile and social profiles.
- It does give AI assistants clean, quotable facts about your business.
- It does not directly boost rankings or guarantee any special display in search results.
Think of it as removing doubt rather than adding points.
A complete example
Here is markup for a car repair garage. Replace the details with your own and choose the subtype that fits your business:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "AutoRepair",
"@id": "https://www.example-garage.com/#business",
"name": "Example Garage",
"url": "https://www.example-garage.com/",
"logo": "https://www.example-garage.com/logo.png",
"image": "https://www.example-garage.com/workshop.jpg",
"description": "Independent car servicing, repairs and tyre fitting.",
"telephone": "+352 000 000",
"email": "hello@example-garage.com",
"priceRange": "€€",
"address": {
"@type": "PostalAddress",
"streetAddress": "12 Rue de l'Exemple",
"addressLocality": "Bettembourg",
"postalCode": "L-3200",
"addressCountry": "LU"
},
"geo": {
"@type": "GeoCoordinates",
"latitude": 49.5167,
"longitude": 6.1000
},
"openingHoursSpecification": [
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"],
"opens": "08:00",
"closes": "18:00"
},
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": "Saturday",
"opens": "09:00",
"closes": "12:00"
}
],
"areaServed": ["Bettembourg", "Esch-sur-Alzette", "Luxembourg City"],
"sameAs": [
"https://www.facebook.com/examplegarage",
"https://www.linkedin.com/company/examplegarage"
]
}
</script>
The properties that matter most
- name, address, telephone: must match your Google Business Profile exactly.
- @type: the most specific subtype available. Check the list on schema.org.
- openingHoursSpecification: your real hours. Update them when they change.
- geo: the latitude and longitude of your entrance, with at least five decimal places for accuracy.
- areaServed: useful for businesses that travel to customers.
- sameAs: links to your official profiles elsewhere. This helps machines connect them as the same business.
- @id: a stable identifier (your URL plus
#business) so other markup on your site can refer to it.
Where to add it
Add the markup once, on your homepage or contact page. If you have several locations, give each location its own page with its own block. On WordPress and most website builders, an SEO plugin or a "custom code in head" setting does this without editing theme files.
Rules to follow
- Mark up only what is visible. The address, hours and phone number in the markup should also be shown on the page.
- Do not invent reviews. Google ignores self-written review ratings on your own LocalBusiness markup for rich results, and fake ones break its guidelines.
- Keep it up to date. Wrong hours in markup are worse than none.
How to test it
- Paste the page URL into Google's Rich Results Test to check Google can read it.
- Use the Schema Markup Validator at validator.schema.org for a full check against the vocabulary.
- Fix any errors (missing required fields, wrong formats), then re-test.
Beyond LocalBusiness
Once the basics are in place, consider Service markup on service pages, Product on product pages and FAQPage on pages with question-and-answer sections. See FAQ schema explained for what that one still does. And because consistent business details matter just as much off your site, pair your markup with an up-to-date Google Business Profile.
Frequently asked questions
Does LocalBusiness schema improve rankings?
Not directly. It helps Google and AI tools understand and trust your business details, which supports local visibility.
Which page should have LocalBusiness schema?
Usually the homepage or contact page. Businesses with several locations should add a separate block to each location page.
Can I add star ratings to my own LocalBusiness markup?
Google does not show review stars for reviews a business publishes about itself on its own site, so self-serving rating markup will not produce rich results.