Local search6 min read
LocalBusiness schema explained for owners, with a markup builder
Which fields to fill in, why your own star rating stays out, how to test it, and a builder that writes the JSON-LD for your business.
On this page
LocalBusiness schema is a short block of code on your website that repeats your name, phone, address and hours in a format search engines read without guessing. Google says it uses this kind of markup to understand what a page is about.[8] It works when it matches what customers see on the page, and it backfires when it claims things the page doesn’t show. This guide covers which fields to fill in, the one review rule that trips up most businesses, how to test the result, and a builder that writes the code for you.
The short version
- Two fields are required: your business name and your address, with as many address parts as you show.[1]
- Pick the specific type, such as HVACBusiness or Plumber, instead of the generic LocalBusiness.[1][6]
- Mark up only what the page shows. Hours, phone and towns in the code should be on the page too, word for word.[2]
- Leave your own star rating out. Google doesn’t show review stars for a business’s reviews of itself.[3]
- Test it with Google’s Rich Results Test before and after it goes live.[1][8]
What the markup is, and what it can do for a local business
Your homepage already says “Sample Creek Heating and Air, (817) 555-0142, open weekdays 8 to 5.” A person reads that easily. A search engine has to work out which line is the name, which number is the phone and which words are hours. Structured data removes the guesswork: the same facts, labeled, in a block of JSON-LD that visitors never see. Google recommends JSON-LD over the two older formats.[2]
Google’s local business guide says the markup can tell it about your hours, departments and other details used in business results on Search and Maps.[1] It is careful about promises: correct markup makes a page eligible for rich results, and Google decides case by case whether to show them.[2] When Google retired seven little-used markup features in 2025, local business wasn’t one of them.[9]
So the honest pitch for an owner is modest and useful: markup makes your basic facts unambiguous, and keeping it right is a small, one-time job.
The fields that matter, one by one
Google lists two required properties and a handful of recommended ones for local businesses. Here is what each one means for a service business, and where the same fact has to appear on your page.[1][5][7]
| Field | What to put in it | Where it shows on the page |
|---|---|---|
@type | The most specific type for your trade: HVACBusiness, Plumber, Electrician, RoofingContractor, HousePainter, Locksmith, MovingCompany, GeneralContractor. Several trades go in a list.[1][6] | Your headline and services say what you do |
name required | The name on your sign and Google profile. No towns or keywords added. | Header and footer |
address required | Street, city, state, ZIP and country if customers visit. A business that travels to customers lists what the page shows, usually city, state and ZIP.[1][2] | Footer or contact page |
telephone | The main number customers call, with country and area code, such as +1-817-555-0142.[1] | Call button and footer |
url | The full address of the page for this location.[1] | Your website address |
opening | Days with opening and closing times. Open around the clock is 00:00 to 23:59.[1] | Hours block |
areaServed | The towns you serve. A schema.org property; Google’s local guide doesn’t list it, so treat it as a clear label rather than a switch.[7] | Service area list |
sameAs, logo | Links to your profiles on other sites, and your logo file. Google’s Organization guide recommends both.[5] | Social links and header logo |
Two more fields exist mostly for other kinds of business. priceRange is short text such as “$$” that must stay under 100 characters, and geo takes map coordinates to at least five decimal places.[1] A business that hides its address on Google has no reason to publish exact coordinates of its base.
Build the markup for your business
Fill in your own details below. The code updates as you type, and the list under it shows which facts must also appear on the page you paste it into.
Same facts, two places: the page and the code
Google’s structured data rules come down to one idea: markup describes the page, not a wish list.[2] Here is what matching looks like on Thermsley’s plumbing demo, a fictional sample business. The hours customers read and the hours in the code are the same six lines, including the early Friday close.
"@type": "Plumber",
"name": "Sample Creek Plumbing",
"telephone": "+18175550163",
"openingHoursSpecification": [
{ "dayOfWeek": "Monday",
"opens": "07:30", "closes": "17:30" },
Tuesday to Thursday: the same
{ "dayOfWeek": "Friday",
"opens": "07:30", "closes": "16:00" },
{ "dayOfWeek": "Saturday",
"opens": "09:00", "closes": "13:00" }
]
The footer does the same job for name, phone and town. On the demo it shows the business name, “Arlington, TX” and the phone number, and the markup has the same three facts, with no street line because the sample business travels to its customers.
Star ratings: why your own reviews stay out of the markup
Review widgets and some website plugins can add rating markup on their own, so it is worth checking for. Google’s local business guide recommends aggregateRating and review only for sites that collect reviews about other businesses.[1][4] In 2019 Google explained why: reviews of a business placed on that business’s own site are self-serving, whether they are typed into the markup or pulled in by a third-party review widget, so Google stopped showing review stars for them.[3]
Reviews still belong on your site. Show a few real ones as text with the customer’s first name and the job, link to your Google profile for the full list, and keep the rating out of the code. Our guide to getting more Google reviews covers asking and replying.
Four markup mistakes that make a page misleading
- Facts that aren’t on the page. Hours, towns or a phone number that only live in the code. Google’s rule is not to mark up content readers can’t see.[2]
- A street address for a business that travels. If your Google profile hides your address, the site and markup should too. Our service area guide shows what to show instead.
- Stale hours. Markup copied once and never updated drifts from your profile. Google asks for current information.[2] When you change hours on Google, change the page and the code the same day; our holiday hours checklist lists every place.
- A second business name or phone number. A tracking number in the code and a different number on the page is two identities for one business. Our NAP consistency guide covers keeping them in step.
Markup that breaks these rules can earn a structured data manual action. That removes the page’s eligibility for rich results, and Google says it doesn’t change how the page ranks in web search.[2]
Where the code goes and how to test it
- Paste it into the page it describes, usually the homepage or contact page, in the head or the body. Most website builders have a custom code or header field.[1]
- Run Google’s Rich Results Test on the live URL or the code. Fix errors; warnings about optional fields can wait.[1][8]
- Check the general syntax at the Schema Markup Validator, which reads every schema.org property, including ones Google doesn’t use, such as areaServed.
- Inspect the URL in Search Console and request indexing. Google notes it can take several days to recrawl a changed page.[1]
Where Thermsley fits
Thermsley sites ship with LocalBusiness markup written from the same facts the page shows: your name as it appears on your profile, your main phone, your hours and the towns you serve, with your specific trade as the type. When your hours change, the page and the code change together. We’ll build a free homepage preview within 24 hours, you pay nothing until you approve your site, and you can be live in as fast as 2 to 3 days after approval. After launch: 24/7 support, and changes live within hours.
Common questions
Does LocalBusiness schema help my business rank higher?
Google describes structured data as a way to help it understand what a page is about, and it doesn’t promise a rich result or a ranking change for adding it. Treat markup as a clear, machine-readable copy of facts your page already shows.
Do I need schema markup if I have a Google Business Profile?
They do different jobs. The profile is what Google shows on Maps and in the local pack. The markup sits in your website and restates the name, phone, address and hours your site shows, so search engines read those facts without guessing. Keep the two matching.
Can I put my Google star rating in my website’s schema?
You can mark it up, but Google stopped showing review stars for a business’s reviews of itself in 2019, whether the markup is typed in or comes from a review widget. Show real reviews on the page as text and link to your Google profile instead.
Which schema type should an HVAC company use?
HVACBusiness, a schema.org type under HomeAndConstructionBusiness. Plumbers use Plumber, electricians Electrician, roofers RoofingContractor. If you do several trades, Google accepts an array such as ["HVACBusiness", "Plumber"].
Where do I paste the JSON-LD code?
Inside the HTML of the page it describes, usually the homepage or contact page, either in the head or the body. Most website builders have a custom code or header field for it. Then run the page through Google’s Rich Results Test.
See your new homepage before you pay anything
Send us your business name and city. We’ll email you a free homepage preview within 24 hours. Pay nothing until you approve your site.
Sources
- Google Search Central. Local business (LocalBusiness) structured data. last updated 2026-09-08. Required: name and address (include as many address parts as possible). Recommended: telephone (primary contact number with country and area code), url, openingHoursSpecification, geo (at least 5 decimal places), priceRange (under 100 characters), department, menu; aggregateRating and review only for sites that capture reviews about other local businesses. Use the most specific LocalBusiness subtype; several types go in an array. All-day hours are 00:00 to 23:59.
- Google Search Central. General structured data guidelines. last updated 2026-07-10. Don’t mark up content that is not visible to readers of the page; don’t mark up misleading content such as fake reviews; structured data must be a true representation of the page; rich results may not show even when markup is correct; a structured data manual action removes rich result eligibility and does not affect ranking in web search; JSON-LD is the recommended format.
- Google Search Central Blog. Making Review Rich Results more helpful. 2019-09-16, updated 2019-09-18. Reviews about a business placed on that business’s own site, in markup or through an embedded third-party widget, are self-serving; Google stopped showing review rich results for LocalBusiness and Organization in those cases.
- Google Search Central. Review snippet (Review, AggregateRating) structured data. last updated 2026-09-08. LocalBusiness and Organization review snippets only for sites that capture reviews about other businesses; see the guidelines about self-serving reviews.
- Google Search Central. Organization structured data. last updated 2026-09-08. No required properties; focus on name, a real-world presence (address or telephone) and online presence (url or logo); sameAs is the URL of a page on another site with more about the organization, such as a social or review profile. For a LocalBusiness, follow the Local business guide too.
- Schema.org. HomeAndConstructionBusiness. checked 2026-12-04. More specific types include Electrician, GeneralContractor, HVACBusiness, HousePainter, Locksmith, MovingCompany, Plumber and RoofingContractor.
- Schema.org. areaServed. checked 2026-12-04. The geographic area where a service or offered item is provided; a property of Organization and its subtypes.
- Google Search Central. Introduction to structured data markup in Google Search. last updated 2025-12-10. Google uses structured data it finds on the web to understand the content of a page; check markup with the Rich Results Test during development and the rich result status reports after deploying.
- Google Search Central Blog. Simplifying the search results page. 2025-06-12, updated 2025-09-08. Google phased out seven little-used structured data features (Book Actions, Course Info, Claim Review, Estimated Salary, Learning Video, Special Announcement, Vehicle Listing); the change does not affect ranking. Local business is not on the list.
Sources checked December 4, 2026. Found an error? Email hello@thermsley.com and we will correct it.