How to Add Local Business Schema Markup to Your Website
By Adrian Chromenko, primarydm.com·November 30, 2026·8 min read
Quick answer
Copy your name, address, phone and hours exactly from your Google Business Profile. Pick the most specific LocalBusiness type (for example Plumber or Dentist). Fill in a JSON-LD script: name and address are required; telephone (with country code), url, geo (5+ decimal places) and openingHoursSpecification are recommended. Paste it into the page's head, publish, and test it in Google's Rich Results Test. Then use URL Inspection in Search Console to request indexing. Markup doesn't guarantee a rich result or a higher ranking.
Schema markup is a small block of code that spells out your business details (your name, address, phone number and hours) in a format search engines can read reliably. Adding it takes about 15 minutes, and you don't need to be a developer. Here's what it is, what to include, a ready-to-paste example, where to put it, and how to test it. Watch the video above, or follow the steps below.
What local business schema markup is
Your website already shows your address and hours to people. Schema markup (also called structured data) repeats those details in code, using a shared vocabulary from schema.org, so Google doesn't have to guess which number on the page is your phone number or which line is your street address.
For a local business, that code uses the LocalBusiness type, or a more specific one like Plumber or Dentist. Google says you can use it to tell Google about your business hours, different departments within a business, and more. Google recommends the JSON-LD format: a single <script> block that sits in your page's code and doesn't change how the page looks.
Set your expectations first. Google says it doesn't guarantee that structured data will show up in search results, even when the markup is valid. Markup helps Google understand your business; it isn't a shortcut to a higher ranking. For showing up on Google Maps and in the local results, your Google Business Profile matters far more.
How to add local business schema markup, step by step
Gather your details from your Google Business Profile
Open your Google Business Profile and copy your business details exactly as they appear there: name, full address, main phone number, website and hours. Your markup, your website and your profile should all say the same thing. If your profile says Unit 4 and your website doesn't, fix the difference first.
Also check that the same details are visible on the page you'll add the markup to (often your home page or contact page). Google's guidelines say not to mark up content that isn't visible to readers of the page, and that structured data must be a true representation of the page content.
Pick the most specific business type
Google's guide says to use the most specific LocalBusiness sub-type possible. Schema.org has types for many kinds of local business. A few common ones:
| If you're a… | Use this @type |
|---|---|
| Plumber, electrician, HVAC or roofing company | Plumber, Electrician, HVACBusiness, RoofingContractor |
| General contractor, painter, locksmith, mover | GeneralContractor, HousePainter, Locksmith, MovingCompany |
| Dental office | Dentist |
| Auto repair shop | AutoRepair |
| Hair salon | HairSalon |
| Restaurant | Restaurant |
To check for a better fit, search schema.org for your trade and look at the "More specific Types" list on the LocalBusiness page. If nothing fits, plain LocalBusiness is fine. Type names are case-sensitive and have no spaces: HVACBusiness, not HVAC Business.
Fill in the code
Copy the example below and replace every value with your own details. Google lists two required properties for local business markup, name and address, and several recommended ones. Here's what each part does:
| Property | What to put |
|---|---|
name (required) | Your business name, the same as on your Business Profile. |
address (required) | Your full address as a PostalAddress: street, city (addressLocality), province (addressRegion), postal code and country. Google says to include as many of these as possible. |
telephone | Your main customer phone number. Google says to include the country code and area code, for example +1-905-555-0142. |
url | The full web address of the page for this location, usually your home page. |
geo | Your latitude and longitude. Google says to use at least 5 decimal places. To find them, right-click your location in Google Maps on a computer; the latitude and longitude appear at the top of the pop-up, and clicking them copies them. |
openingHoursSpecification | Your hours: the days (dayOfWeek), and the opens and closes times in 24-hour format. Add one block for each set of hours. |
priceRange | Optional. A rough price level like $$, under 100 characters. |
Here's a complete example for a plumbing company in Mississauga, open weekdays 8 a.m. to 6 p.m. and Saturdays 9 a.m. to 2 p.m.:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Plumber",
"name": "Riverstone Plumbing",
"url": "https://riverstoneplumbing.example/",
"telephone": "+1-905-555-0142",
"image": "https://riverstoneplumbing.example/images/storefront.jpg",
"priceRange": "$$",
"address": {
"@type": "PostalAddress",
"streetAddress": "1250 Dundas St W, Unit 4",
"addressLocality": "Mississauga",
"addressRegion": "ON",
"postalCode": "L5C 1E4",
"addressCountry": "CA"
},
"geo": {
"@type": "GeoCoordinates",
"latitude": 43.56781,
"longitude": -79.63412
},
"openingHoursSpecification": [
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"],
"opens": "08:00",
"closes": "18:00"
},
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": "Saturday",
"opens": "09:00",
"closes": "14:00"
}
]
}
</script>
A few things trip people up:
- Keep every quote and comma. One missing comma or a curly "smart" quote from a word processor breaks the whole block. Edit it in a plain text editor, not Word.
- Remove lines you don't use. If you don't have a photo URL, delete the
imageline rather than leaving the example address in. - Hours: to show you're open 24 hours, Google says to use
"opens": "00:00"and"closes": "23:59". For a seasonal closure, Google usesvalidFromandvalidThroughdates. - Don't add reviews or star ratings about yourself. Google says the
reviewandaggregateRatingproperties are only for sites that capture reviews about other local businesses. - Service-area businesses: if you hide your address on your Business Profile because you go to customers, think about whether you want your street address in your site's code. You can list your city, province and postal code only, but leave out the street if you don't show it publicly.
Paste the script into your page's head
The script goes in the <head> of the page (Google also accepts it in the body). Where you paste it depends on how your site is built:
- Website builders usually have a setting for custom code or code injection, often under site settings or the page's advanced settings. Paste it in the "head" box for your home page (or contact page). The exact name varies by platform.
- WordPress: many SEO plugins can add local business schema for you from a form. If yours does, use that instead of pasting code, so you don't end up with two copies. Otherwise, a header-code plugin or your theme's settings can add it.
- Custom-built sites: ask your developer to add the block to the page template's
<head>.
Add it once, to the page about that location. If you have more than one location, each location page gets its own block with its own address, phone and hours. Then save and publish.
Test it with the Rich Results Test and the Schema Markup Validator
Go to Google's Rich Results Test. On the URL tab, paste your page address and click Test URL. (To check code before it's live, use the Code tab and paste the script instead.) Google says to validate your code here and fix any critical errors.
When it finishes, look for a line like 1 valid item detected and a Local business item. Click it to check the details Google read: your type, name, address, phone and hours. If it lists errors, fix those first. Warnings are about missing optional properties, so add them if you have the information.
For a second opinion, paste the same URL or code into the Schema Markup Validator run by schema.org. It checks your markup against the full schema.org vocabulary, not only the types Google uses for rich results, so it's good at catching typos in property names.
Ask Google to recrawl the page in Search Console
In Google Search Console, paste the page's full URL into the inspection bar at the top. If the page is indexed you'll see URL is on Google. Click Request indexing to ask Google to recrawl it with the new markup. It doesn't guarantee when Google will recrawl, and there's a daily limit, so you only need to do it once.
Don't go looking for a local business report: Search Console has rich result reports for some types (like breadcrumbs, events and products), but not for local business markup, and the URL Inspection tool doesn't list it either. The Rich Results Test is where you check it. If Search Console ever shows an Unparsable structured data report, it found markup with a serious syntax error, usually a missing comma, quote or bracket.
What schema markup won't do
It's worth being clear about this, because schema is often oversold:
- No guaranteed rich result. Google decides what to show. Valid markup is eligible, not promised.
- Not a ranking shortcut. Don't expect markup on its own to lift you above competitors. Google's local results are mainly based on relevance, distance and prominence, and your Business Profile, reviews and website content drive those.
- It has to stay accurate. Markup that doesn't match your page, or details that contradict your Business Profile, can do more harm than good. Google can treat misleading markup as a policy problem.
Common mistakes
- Details that don't match. An old phone number in the markup, a new one on your profile. Update all three places together.
- Leaving the example values in. Search the pasted code for example and the sample address before you publish.
- Pasting it on every page. One block on the page for that location is enough. A site-wide copy isn't needed for a single location.
- Two copies from two tools. If your SEO plugin or site builder already adds local business markup, the Rich Results Test will show two items. Keep one.
- Forgetting holiday or seasonal hours. Update your Business Profile and markup when your regular hours change.
- Skipping the basics. Schema helps once Google can find your site. If you're not showing up at all, start with why your website isn't showing on Google and your title tags and meta descriptions.
Want your local SEO set up properly?
Our SEO services cover the technical pieces like schema markup, along with your Google Business Profile and website content, so customers nearby find you when they search.
See our SEO servicesThe screens in this guide are simplified illustrations of a Business Profile, a website editor, the Rich Results Test and Search Console; Google updates its tools often, so labels may differ slightly. The recommendations here are general guidance, not a guarantee of results. Google's own guides: Local business (LocalBusiness) structured data, Introduction to structured data markup, General structured data guidelines, Rich Results Test, URL Inspection tool and Rich result reports. The plumbing business, its address, phone number and coordinates are examples.
Frequently asked questions
What is local business schema markup?
It's a small block of code, called structured data, that lists your business details (type, name, address, phone number, hours) using the schema.org vocabulary, so search engines can read them reliably. Google recommends the JSON-LD format: a single <script type="application/ld+json"> block in your page that doesn't change how the page looks.
Which properties does Google require for LocalBusiness markup?
Google lists two required properties: name and address (include as many address fields as you can). Recommended properties include telephone with the country and area code, url, geo coordinates with at least 5 decimal places, openingHoursSpecification and priceRange. Only add details that are true and also visible on your page.
Does schema markup help my Google ranking?
Don't count on it. Google says it doesn't guarantee that structured data will show up in search results, even when it's valid. Markup helps Google understand your details, but local rankings are mainly about relevance, distance and prominence, which your Google Business Profile, reviews and website content drive.
How do I test my schema markup?
Paste your page URL (or the code) into Google's Rich Results Test and look for a valid Local business item with no errors. For a second check, use the Schema Markup Validator at validator.schema.org. Search Console has no local business report, so the Rich Results Test is the main place to check it.
Where do I put the schema code on my website?
In the <head> of the page about that location, usually your home page or contact page (Google also accepts it in the body). Most website builders have a custom code or code injection setting, and many WordPress SEO plugins can add local business markup from a form. Add it once per location. If you'd rather have it done for you, see our SEO services.
More SEO guides
How to Write a Service Page That Ranks (Local Business Guide)
Give each main service its own page. Pick the main phrase customers type (for example water heater installation mississauga), put it in one clear main heading and the title tag, and write a meta description. Then answer what's included, where you work, a typical price range and how the job works. Mention your service area in a normal sentence, not a block of city names (Google's spam policies call that keyword stuffing). Add real photos with descriptive alt text, a few FAQs, customer reviews, a call button and a quote button, and links to related services. Google says there's no ideal word count: answer the customer's questions and keep the page up to date.
1:46 video · 9 min read
How to Write Title Tags and Meta Descriptions (With Examples)
Open the page's SEO settings in your site builder and write a title using Service + City | Business name, with the main term first and roughly 50 to 60 characters. Write the meta description like a short ad (what you do, where, and a reason to click) in roughly 150 to 160 characters. Give every page its own, publish, then check with a site: search or Search Console. Google has no fixed limit and may rewrite either one.
1:35 video · 7 min read
How to Find Keyword Ideas in Google Search Console
In Search Console, click Performance in the left menu and stay on the Queries tab. Click the Average CTR and Average position boxes above the chart so the table shows them. Click the Impressions heading to sort, and look for searches with lots of impressions, few clicks and a position of about 8 to 20. Click one of those searches, then open the Pages tab to see which page Google shows for it. Improve that page: use the search in the title tag and add a section that answers it. Check back in a few weeks with Compare in the date filter.
1:33 video · 7 min read
How to Check Your Website Speed with PageSpeed Insights
Go to pagespeed.web.dev, enter your page's address and click Analyze. Check the Mobile tab first, then Desktop. The top section shows real Chrome users over the last 28 days and a Core Web Vitals Assessment: it passes when LCP is 2.5 s or less, INP 200 ms or less and CLS 0.1 or less. Below that, the Performance score is a lab test (90+ is good). Use the Insights and Diagnostics to find fixes: usually compressing and resizing images, removing unused plugins and scripts, and turning on caching. For the whole site, use the Core Web Vitals report in Search Console.
1:45 video · 8 min read
How to Build Local Citations for Your Small Business
Copy your name, address, phone number and website from your Google Business Profile and use that exact version everywhere. At bing.com/forbusiness, choose Import Google Business Profile (Bing says this gives instant verification). At business.apple.com, go to Brands › Locations › Add to claim your Apple Maps place card. Then claim Yelp and Yellow Pages, match your Facebook Page, and join relevant industry or chamber directories. Search for your old phone number and address to find and fix outdated listings, and keep a simple tracker.
1:43 video · 8 min read
How to Set Up Google Search Console (and Submit Your Sitemap)
Go to search.google.com/search-console, open the property selector and click + Add property. Choose Domain, enter your domain (no https:// or www) and click Continue. Copy the TXT record, add it in your domain provider's DNS settings and click Verify. Then go to Indexing › Sitemaps, enter your sitemap address (often sitemap.xml) and click Submit. After a few days, open the Performance report to see your clicks, impressions and the searches that find you.
1:27 video · 7 min read
How to Optimize Your Google Business Profile (Step by Step)
Sign in, search Google for your business and click Edit profile. Use your real business name with no keywords, pick the most specific primary category, write a plain description (up to 750 characters, no links), and show your address or set a service area (up to 20 areas). Set your hours and special hours, check your phone number and website, then add services, real photos and the odd post. Google ranks local results mainly on relevance, distance and prominence, and you can't pay for a better spot.
1:25 video · 8 min read
How to Get More Google Reviews for Your Local Business
Search for your business on Google while signed in and click Ask for reviews (or go to business.google.com › Read reviews › Get more reviews). Copy the review link and, on a computer, right-click the QR code to save it. Ask every customer right after the job and send the link by text or email the same day. Put the link and QR code on receipts, emails and a counter sign. Reply to every review, good and bad. Never offer discounts or gifts for reviews, never ask only happy customers, and never post fake reviews.
1:35 video · 7 min read
Why Is My Website Not Showing on Google? (How to Find and Fix It)
Search Google for site:yourdomain.ca to see which pages are indexed. Then, in Google Search Console, paste the page's full URL into the inspection bar. If it says URL is not on Google, open Page indexing to see why (for example a noindex tag or a robots.txt block), fix it, click Test live URL, then Request indexing once. Check Indexing › Pages for the rest of your site. Indexing can take a few days to a few weeks, and Google doesn't guarantee it.
1:38 video · 7 min read









