LocalBusiness Schema: A Complete Example You Can Copy and Edit
This guide gives you a complete LocalBusiness schema example to copy and fill in with your own details. You can have it on your website within an afternoon. It is for UK small business owners with a shop, an office or a service area who would rather not learn to code.
What is LocalBusiness schema?
LocalBusiness schema is a small block of code that gives search engines your business name, address, phone number, opening hours and trade in a format they can read without guessing.
It sits in your page's HTML and visitors never see it. It uses the vocabulary published at schema.org and is written in a format called JSON-LD. Google's own documentation recommends JSON-LD for structured data.
To be honest about what it does: the code will not push you up Google Maps by itself. Your Google Business Profile, reviews and the content of your site carry far more weight there. What schema does is remove doubt. Search engines and AI tools that read your page get your key facts in a clean form, so they are less likely to show the wrong phone number or the wrong hours.
The complete example to copy
Below is a full LocalBusiness example for a made-up plumber in Leeds. Copy it, then replace every value with your own.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Plumber",
"@id": "https://www.example.com/#business",
"name": "Example Plumbing",
"url": "https://www.example.com/",
"logo": "https://www.example.com/images/logo.png",
"image": "https://www.example.com/images/van.jpg",
"description": "Local plumber in Leeds for boiler repairs, leaks and bathroom fitting.",
"telephone": "+44 113 496 0000",
"email": "hello@example.com",
"priceRange": "££",
"address": {
"@type": "PostalAddress",
"streetAddress": "1 Example Street",
"addressLocality": "Leeds",
"addressRegion": "West Yorkshire",
"postalCode": "LS1 1AA",
"addressCountry": "GB"
},
"geo": {
"@type": "GeoCoordinates",
"latitude": 53.7997,
"longitude": -1.5492
},
"areaServed": ["Leeds", "Bradford", "Wakefield"],
"openingHoursSpecification": [
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"],
"opens": "08:00",
"closes": "18:00"
},
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": "Saturday",
"opens": "09:00",
"closes": "13:00"
}
],
"sameAs": [
"https://www.facebook.com/your-page",
"https://www.instagram.com/your-account"
]
}
</script>
Keep every comma, bracket and quotation mark exactly where it is. One missing comma breaks the whole block.
What does each part mean?
Each line states one fact about your business, and you only change the value on the right-hand side of each colon.
- @type: the kind of business you are (more on this below).
- @id: a permanent label for your business, usually your home page address followed by
#business. It does not need to be a real page. - name, url, telephone, email: these must match what your website and your Google Business Profile show, character for character if possible.
- logo and image: full web addresses of images that are already on your site.
- description: one plain sentence saying what you do and where.
- priceRange: optional. A rough guide such as
££is fine, or delete the line. - address: your postal address. Use
GBfor the country. - geo: your latitude and longitude. Right-click your premises on a map to copy them. Do not leave the Leeds numbers in.
- areaServed: the towns or areas you cover. This matters most for trades who go out to customers.
- openingHoursSpecification: your regular hours in 24-hour time. Holidays and one-off closures are covered in our guide to opening hours schema and special hours.
- sameAs: links to your official profiles elsewhere. List only accounts you own and keep active.
Which type should you use instead of LocalBusiness?
Use the most specific type schema.org offers for your business, and fall back to plain LocalBusiness if nothing fits.
Specific types include Plumber, Electrician, HairSalon, BeautySalon, Restaurant, Dentist, AutoRepair and AccountingService. They all inherit the same properties as LocalBusiness, so the rest of the example works unchanged. Search the schema.org site for your trade before you choose.
If you work from home and hide your address on your Business Profile, think before you publish it in schema. Google's Search Central documentation on local business structured data lists the address as required, so read Google's local business guidelines. Then publish no more than your contact page and Business Profile already show.
How do you add it to your site?
Paste the finished code into the one page that best represents your business, usually the home page or the contact page.
- Check first whether your SEO plugin or website builder already outputs LocalBusiness schema. If it does, edit that instead of adding a second block.
- On WordPress, add the code to the page header with a small snippet or your theme's header setting. Our guide on adding schema to WordPress without extra plugins walks through the options.
- On most other website builders, look for a custom code or header code setting for that page.
- Save, publish, then view the live page to confirm it still loads normally.
How do you check it works?
Run the live page through Google's Rich Results Test and the Schema Markup Validator, and fix anything they flag as an error.
- The Rich Results Test shows whether Google can read the block and which properties it found.
- The Schema Markup Validator checks the code against schema.org itself, which helps when a type is not one Google shows special results for.
- Errors need fixing. Warnings are usually optional properties you can add later.
If the results confuse you, our walkthrough on how to read the Rich Results Test explains each section. Google can take a while to recrawl the page, so do not expect changes in search the same day.
Common mistakes
- Details that do not match. If the phone number or hours in your schema differ from your page or Business Profile, you have created the confusion you were trying to remove.
- Two competing blocks. A plugin and a hand-added block can both describe your business slightly differently. Keep one.
- Leaving example values in. Search the finished code for
exampleand for the Leeds coordinates before you publish. - Marking up your own reviews. Google's guidelines do not allow star ratings for a business that come from reviews it collected about itself on its own site, so leave out rating properties.
- Forgetting to update it. When your hours or number change, change the schema on the same day.
Frequently asked questions
Does LocalBusiness schema help with ChatGPT or AI Overviews?
It can help AI tools read your facts correctly, but no one can promise it gets you mentioned or cited. Treat it as tidy groundwork, not a ranking trick.
Do I need it on every page?
No. One block on your home page or contact page is normally enough for a single-location business.
What if I have more than one location?
Give each location its own page with its own block, address, phone number, hours and a different @id. Do not put several branches into one block.
Is JSON-LD the only way to add schema?
No, but it is the format Google recommends and the easiest to edit, because it sits apart from your visible content.
This week, copy the example, swap in your own details from your Google Business Profile, and paste it onto your contact or home page. Then run it through the Rich Results Test. If you open on bank holidays or close over Christmas, add your special hours next.
Next step: learn this with others
Last reviewed 2 November 2026. Back to the blog.