Local business schema markup: what it is and how to add it step by step
Local business schema markup is a short block of code that gives search engines your business name, address, phone number and opening hours in one standard format. You add it once, test it with a free Google tool and only change it when your details change.
Zmienka team · · updated · 8 min read
Local business schema is a block of code, usually in JSON-LD format, that tells search engines exactly what your business is called, where it is, what its phone number is and when it is open. Google requires only two properties, the name and the address, and recommends the rest. You can add local business schema markup in about an hour: pick the right type, fill in the example below, add it to your website and test it.
What is local business schema?
Local business schema is structured data that describes a business with premises or a service area in a format machines can read without guessing. A person reading "Open Monday to Friday, 9 to 5" understands the hours straight away. A search engine crawler has to work them out. Structured data hands them over ready made.
The vocabulary used to write this data is called schema.org, which is why people call it schema markup. Google's introduction to structured data says it accepts three formats and recommends JSON-LD in most cases. JSON-LD is a separate block of code in the page that does not change how the page looks.
Do not expect a jump in your search results. Google states that it does not guarantee that structured data will show up in search results. Its documentation says results may show a knowledge panel with details about a business that matched the query, and the code helps Google match the details on your page to your business.
LocalBusiness or Organization schema: which one to use
A business that customers visit or that serves a local area should use LocalBusiness, while Organization is for companies without a public location. Google's documentation on Organization structured data says that for a physical location you should give your details using the most specific LocalBusiness subtype, and that an online only shop can use the OnlineStore subtype instead.
| Your situation | Type to use |
|---|---|
| Salon, garage, restaurant or shop with an address customers visit | The most specific LocalBusiness subtype |
| Plumber or cleaner who visits customers | A LocalBusiness subtype with areaServed |
| Online shop without a shop customers can visit | OnlineStore, a subtype of Organization |
| Company with several branches | A LocalBusiness block on each branch page |
LocalBusiness is itself a subtype of Organization, so you do not need both blocks for the same business on the same page.
Which LocalBusiness type to choose
Google's documentation tells you to use the most specific LocalBusiness subtype possible. A hair salon should be HairSalon and a garage AutoRepair rather than a general business. The full tree of types is on the schema.org LocalBusiness page.
| Business | schema.org type | Parent type |
|---|---|---|
| Hair salon | HairSalon | HealthAndBeautyBusiness |
| Garage or car repair shop | AutoRepair | AutomotiveBusiness |
| Plumber | Plumber | HomeAndConstructionBusiness |
| Electrician | Electrician | HomeAndConstructionBusiness |
| Heating and air conditioning installer | HVACBusiness | HomeAndConstructionBusiness |
| Restaurant | Restaurant | FoodEstablishment |
| Dental practice | Dentist | MedicalBusiness |
If there is no exact type for your trade, use the closest parent type. Plain LocalBusiness is the last resort.
A JSON-LD example for a business with premises
The example below describes a garage with an address, phone number and opening hours. All the details are placeholders. Replace them with your own and make sure they are exactly the same as on your website and in your Google Business Profile.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "AutoRepair",
"name": "Your Business Name",
"url": "https://www.example.com/",
"telephone": "+1 555 010 0123",
"address": {
"@type": "PostalAddress",
"streetAddress": "1 Example Street",
"addressLocality": "Springfield",
"postalCode": "00000",
"addressCountry": "US"
},
"openingHoursSpecification": [{
"@type": "OpeningHoursSpecification",
"dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"],
"opens": "08:00",
"closes": "17:00"
}],
"sameAs": ["https://www.facebook.com/yourbusiness"]
}
</script>
According to Google's documentation on local business structured data, only name and address are required. The recommended properties include telephone, a working url, openingHoursSpecification, geo with coordinates to at least five decimal places and priceRange, which Google will not show if it is 100 characters or longer. The sameAs property comes from schema.org and points to pages that clearly identify your business, such as your social media profiles.
Special hours, departments and several locations
Google's documentation has a fixed way of writing opening hours that do not fit a normal week, and getting them wrong is a common reason for odd hours in search. These are the cases a small business meets most often:
- Open 24 hours: set
opensto 00:00 andclosesto 23:59. - Closed all day: set both
opensandclosesto 00:00 for that day. - Seasonal hours or a seasonal closure: add
validFromandvalidThroughin the format YYYY-MM-DD. Without them, the hours apply all year. - Departments: a shop with a separate service desk or pharmacy can use the
departmentproperty, with each department named as the store name followed by the department name, unless the department has its own brand.
For one off closures over the holidays, update your Google Business Profile as well, as described in our guide to Google Business Profile holiday hours. If you have several locations, give each one its own page with its own block, address and hours, rather than listing every branch on the home page.
How to add structured data to your website
You can add structured data through a plugin or setting in your website platform, or by pasting the JSON-LD block into the page code yourself. If you prefer not to write the code by hand, our free schema markup generator can help.
- WordPress: most SEO plugins have a section for business details. Fill it in there and do not add a manual block as well, so the page does not end up with two different descriptions of the same business.
- Shopify, Wix and similar builders: some themes add part of this data on their own, which the test below reveals. If you want your own block, add it as custom code following your platform's instructions.
- A custom built website: put the block on the home page or the contact page.
Google's structured data guidelines say the markup must be a true representation of the page content and that you should not mark up content readers cannot see. If the code lists hours that are not on the page, or a different phone number, it does more harm than good.
How to test and monitor your structured data
Testing takes a few minutes and costs nothing. Google's Rich Results Test (search.google.com/test/rich-results) shows whether Google found the LocalBusiness type and whether there are critical errors, and the Schema Markup Validator (validator.schema.org) checks the code against schema.org. After publishing, the URL Inspection tool in Search Console confirms that Google can access the page. Our Google Search Console guide shows where to find it.
Once the code is live, Search Console keeps watching it for you. Its Unparsable structured data report lists blocks Google could not read because of a serious syntax error, such as a missing comma or bracket. After you fix them, click Validate Fix in the report and wait: the help page says validation can take about two weeks. If you cannot find the error, the same page suggests starting from an empty block and adding your code back piece by piece.
For a quick look at whether your home page has local business schema at all, run the free website check. It also looks at your title, meta description, robots.txt and sitemap.
The most common structured data mistakes
Most problems come from details that do not match reality or other sources. The code is written correctly, but it says something different from the website and the Google profile.
- Old hours or phone number: the website and profile get updated after a change, but the code does not. If you are moving or renaming the business, update the website and profile first, then the code.
- Your own rating in the code: a business cannot get review stars with
aggregateRatingfor reviews about itself. - Two different blocks: a plugin and a manual block on the same page, each with a different name or address.
- A general type: LocalBusiness where a more specific subtype exists.
- A different business name: the registered company name with "Ltd" or "LLC" in the code and the trading name on the website. Choose one form and use it everywhere.
Structured data is a good second step once the basics are in place: a website Google can index, with a proper title and description. The same details on your website, in your code and in your Google Business Profile help search engines and AI assistants avoid mixing up your business with another one.
Frequently asked questions
Should local business schema be on every page?
No. Put it on the page that describes the business, usually the home page or the contact page. If you have several locations, give each location page its own block with its own address and hours.
Will local business schema give me review stars on Google?
No. Google's review snippet guidelines say that if a business controls the reviews about itself, its pages that use LocalBusiness or other Organization structured data are not eligible for star review results.
Do I need structured data if I have a Google Business Profile?
The two complement each other. Your profile appears on Google Maps, while structured data describes the business on your own website. What matters most is that the details in both places are the same.
Will structured data help ChatGPT or other AI assistants recommend my business?
Nobody can promise that. Structured data helps machines read your business details correctly, but which businesses an AI assistant names depends on many sources outside your website.
Check your website for free
Enter your address and in a few seconds you will see what is fine on your website and what to fix. No sign-up.