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.

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.

  1. Check first whether your SEO plugin or website builder already outputs LocalBusiness schema. If it does, edit that instead of adding a second block.
  2. 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.
  3. On most other website builders, look for a custom code or header code setting for that page.
  4. 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.

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

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.