How-To Guide · October 27, 2026
How to Add LocalBusiness Schema to a Local Business Website
A short, step-by-step guide to adding LocalBusiness JSON-LD schema to a local business website, with a copy-ready template and an AI prompt.

Schema markup is a small block of code that tells search engines the basic facts about a business: its name, type, address, phone, hours, and where else it lives online. For a local business website, the one block that matters most is LocalBusiness schema. It won't push a weak site to the top of Google on its own, but it's quick to add, easy to get right, and it helps search engines and AI search tools read the business details clearly. This guide shows you how to add it in about 30 minutes.
What LocalBusiness schema does (and doesn't do)
Search engines read schema as structured data. Instead of guessing which number on the page is the phone number, they get it labeled. That can help Google match the website to the business and, in some cases, show richer details in search results.
What it won't do:
- It won't replace good service pages, reviews, or a strong Google Business Profile.
- It won't guarantee rich results. Google decides when to show them.
- It can't add facts that aren't true or aren't on the page.
Think of it as part of the foundation, alongside clear title tags and meta descriptions.
How to add LocalBusiness schema to a local business website
1. Gather the business facts
Collect the exact details the business already uses publicly:
- Business name, written the same way everywhere
- Street address, city, state, ZIP, and country
- Phone number
- Website URL and a logo or storefront photo URL
- Opening hours for each day
- Links to their Google Business Profile, Facebook, Instagram, and Yelp pages
These should match the Google Business Profile word for word. If the profile needs work first, follow how to optimize a Google Business Profile.
2. Pick the most specific business type
Schema.org has many subtypes of LocalBusiness, such as Restaurant, Dentist, Plumber, HairSalon, NailSalon, and AutoRepair. Google recommends using the most specific type that fits. Only fall back to plain LocalBusiness when nothing closer exists.
3. Write the JSON-LD block
JSON-LD is the format Google recommends. It's a script tag that doesn't change how the page looks. Here's a template with placeholder details you can copy and fill in:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "NailSalon",
"@id": "https://example.com/#business",
"name": "Example Nail Studio",
"url": "https://example.com/",
"image": "https://example.com/storefront.jpg",
"telephone": "+1-555-555-0123",
"priceRange": "$$",
"address": {
"@type": "PostalAddress",
"streetAddress": "123 Main St",
"addressLocality": "Merced",
"addressRegion": "CA",
"postalCode": "95340",
"addressCountry": "US"
},
"openingHoursSpecification": [{
"@type": "OpeningHoursSpecification",
"dayOfWeek": ["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],
"opens": "09:00",
"closes": "19:00"
}],
"sameAs": [
"https://www.facebook.com/example",
"https://www.instagram.com/example"
]
}
</script>
Use 24-hour time for hours, keep the address split into separate fields, and list each set of days that share the same hours as its own object.
4. Add it to the homepage
Paste the script into the homepage, inside the <head> or near the end of the <body>. On WordPress, an SEO plugin or a header-scripts plugin can hold it. On site builders, look for a custom code or header code setting. If you build sites with AI, you can ask the builder to add it with a prompt like this:
Add LocalBusiness JSON-LD schema to the homepage using @type "Plumber".
Use only these facts and don't invent anything: [paste fact sheet].
Put it in a script type="application/ld+json" tag in the head.
5. Test it
Run the live page through Google's Rich Results Test and the Schema Markup Validator at schema.org. Fix any errors, then check the warnings. Missing optional fields are fine, but typos in required fields are not.
6. Keep it in sync
When the business changes its hours, phone, or address, update the schema, the website, and the Google Business Profile at the same time. Mismatched details send mixed signals.
Common mistakes to avoid
- Facts that aren't on the page. Schema should match what visitors can see.
- Self-written review stars. Google doesn't show review stars for a local business that marks up reviews about itself.
- The wrong type.
Articleor genericOrganizationon a storefront's homepage misses the point. - Duplicate blocks. Two plugins each adding schema can create conflicting copies. Check the page source.
Use schema as an easy add-on when you sell
If you sell websites or monthly SEO work to local businesses, schema is a simple, concrete item to include. In Locasly, each prospect panel has an Immediate Opportunities section with a Local SEO Boost pitch you can generate, which is a natural place to mention fixes like this.

FAQ
Does LocalBusiness schema improve rankings?
Not directly. It helps search engines understand the business details, which supports the rest of your local SEO. Content, reviews, and the Google Business Profile still matter more.
Should schema go on every page?
For a single-location business, the homepage is enough. A business with several locations can put each location's schema on that location's page.
Can a service-area business without a storefront use it?
Yes. Use the most specific type and add areaServed with the cities they cover. Only include a street address if it's shown publicly.
How do I know it's working?
The Rich Results Test should show the business type with no errors.
Steps at a glance
- Gather the business facts
Collect the exact name, address, phone, URL, image, hours, and profile links the business uses publicly.
- Pick the most specific business type
Choose the closest schema.org subtype, like Restaurant or Plumber, before falling back to LocalBusiness.
- Write the JSON-LD block
Fill in a JSON-LD template with the address split into fields and hours in 24-hour time.
- Add it to the homepage
Paste the script into the homepage head or body using the site builder, a plugin, or an AI builder prompt.
- Test it
Run the live page through the Rich Results Test and the Schema Markup Validator and fix errors.
- Keep it in sync
Update the schema, website, and Google Business Profile together whenever details change.