Schema markup for local business: a copy-paste JSON-LD guide

Copy-paste LocalBusiness schema for 4 business types, the 2 properties Google requires, how to test it free, and why you can't mark up your own stars.

Get found on Google and AIBy The Stackmane teamPublished Updated 13 min read
Quick answerSchema markup for a local business is a JSON-LD block that states your business type, name, address, phone, hours and website in schema.org terms. Google requires only name and address and recommends phone, URL, hours, coordinates and price range. Use the most specific type, test it free, and never mark up your own star ratings.

Schema markup sounds technical, but for a local business it boils down to one small block of code that tells Google, in a format machines read without guessing, who you are, where you are, when you are open and how to reach you. It does not replace a good website or a good Google Business Profile. It makes the facts on your website harder to misread.

This guide gives you copy-paste JSON-LD examples for the most common local businesses, from plumbers and electricians to restaurants, salons and dentists, written against Google's own documentation and the schema.org vocabulary. You will also learn which properties Google actually uses, how to test your markup for free, the review-star trap that catches a lot of owners, and where to paste the code on WordPress, Wix, Squarespace or a hand-built site.

Good to know

Everything here follows Google Search Central's structured data pages and schema.org, both read on November 13, 2026. The business names, addresses and phone numbers in the code examples are placeholders: replace every one with your own real details, exactly as they appear on your site and your Google Business Profile.

What is schema markup for a local business?

Schema markup is a short piece of structured data, usually written in JSON-LD, that describes your business in a standard vocabulary from schema.org. For a local business it states your name, type of business, address, phone, hours, website and service area, so search engines can read those facts directly instead of inferring them from your page text.

Google puts it plainly in its introduction to structured data: it "uses structured data that it finds on the web to understand the content of the page", and the markup gives Google "explicit clues about the meaning of a page". The vocabulary itself lives at schema.org/LocalBusiness, which defines the LocalBusiness type and dozens of more specific types under it.

There are three formats: JSON-LD, Microdata and RDFa. You only need to know one. Google says that "in general, Google recommends using JSON-LD for structured data if your site's setup allows it", because it sits in one block, separate from your visible HTML, and is the easiest to add and maintain. Every example in this guide is JSON-LD.

It helps to think of schema as a label on a box. Your website is the box, full of photos and paragraphs. The label lists the essentials in a fixed format. People never see the label; Google, Bing and other machines read it first.

Does schema markup help local SEO?

It helps Google understand your business accurately, and it makes your pages eligible for some search features, but it is not a magic ranking switch. Google says it "does not guarantee that your structured data will show up in search results". Treat it as basic hygiene that removes doubt, not as a shortcut past reviews and a strong Business Profile.

What LocalBusiness markup can feed, according to Google's local business structured data page:

  • Knowledge panels. Google may show "a prominent Google knowledge panel" with your details when someone searches for your business.
  • Business carousels. Searches for a type of business can show "a carousel of businesses related to the query".
  • Restaurant carousels. A specialized feature limited to a small set of providers, so most single restaurants will not see it from markup alone.

Bookings and orders straight from Search run through a separate Google program (the Maps Booking API), not through markup on your site.

For local search specifically, your Google Business Profile, your reviews, your distance from the searcher and your website content carry far more weight than any schema block. Where schema earns its place is consistency: when your website, your markup and your profile all state the same name, address, phone and hours, there is less room for Google, or an AI assistant, to get them wrong. Our local SEO checklist puts schema in its right place among the other steps.

Is schema markup worth adding for a small local business?

Yes, because it takes under an hour, costs nothing and removes guesswork about your name, address, phone and hours. Do not expect a ranking jump from it alone. Reviews, a complete Google Business Profile and clear service pages matter more. Schema simply makes sure the facts on your site are read correctly.

Which LocalBusiness type should I use?

Use the most specific type that describes your business, such as Plumber, Electrician, Dentist, HairSalon or Restaurant, rather than plain LocalBusiness. Google's guidance says to "use the most specific LocalBusiness sub-type possible". If nothing fits exactly, choose the closest parent type, and only fall back to LocalBusiness as a last resort.

schema.org lists 30 direct sub-types of LocalBusiness on its LocalBusiness page, and many of those have their own sub-types. For trades, HomeAndConstructionBusiness lists Electrician, GeneralContractor, HVACBusiness, HousePainter, Locksmith, MovingCompany, Plumber and RoofingContractor. Here is a quick map for common small businesses:

Your businessType to useParent type
PlumberPlumberHomeAndConstructionBusiness
ElectricianElectricianHomeAndConstructionBusiness
RooferRoofingContractorHomeAndConstructionBusiness
Builder or handymanGeneralContractorHomeAndConstructionBusiness
Heating and coolingHVACBusinessHomeAndConstructionBusiness
RestaurantRestaurantFoodEstablishment
CafeCafeOrCoffeeShopFoodEstablishment
BakeryBakeryFoodEstablishment
Hair salon or barbershopHairSalonHealthAndBeautyBusiness
Nail salonNailSalonHealthAndBeautyBusiness
Day spaDaySpaHealthAndBeautyBusiness
DentistDentistLocalBusiness (also a medical type)
LawyerLegalServiceLocalBusiness
AccountantAccountingServiceFinancialService
Real estate agentRealEstateAgentLocalBusiness
ShopStore, or a specific type like ClothingStore or FloristLocalBusiness

If your business is genuinely two things, Google says you can use an array, for example "@type": ["Bakery", "CafeOrCoffeeShop"]. Do not pile on types you do not really offer. Google also notes that the additionalType property is not supported for this feature.

Barbershops have no dedicated type, so HairSalon is the usual choice. Cleaning businesses have no exact type either; HomeAndConstructionBusiness or plain LocalBusiness with a clear description is a reasonable fallback.

Which properties does Google require and recommend?

Google requires only two properties for local business markup: name and address. It recommends adding telephone, url, openingHoursSpecification, geo coordinates, priceRange and, for food businesses, menu and servesCuisine. Fill in every one that applies, using exactly the details shown on your page.

Here is the full list from Google's local business documentation, with what to put in each:

PropertyRequired or recommendedWhat to put in it
nameRequiredYour business name, exactly as on your sign and Business Profile
addressRequiredA PostalAddress with street, town, region, postcode and country ("include as many properties as possible")
telephoneRecommendedYour main number with country code, for example +1-512-555-0100
urlRecommendedThe full URL of this location's page
openingHoursSpecificationRecommendedDays, opening and closing times
geoRecommendedLatitude and longitude, with at least 5 decimal places
priceRangeRecommendedA short text range like "$$" or "$50-$200", under 100 characters
menuRecommended (food)The URL of your menu
servesCuisineRecommended (food)For example "Italian" or "Thai"
departmentRecommended (if relevant)Nested entries for departments, like a pharmacy inside a store
aggregateRating, reviewOnly for sites that review other businessesLeave these out for your own business (see below)

Beyond Google's list, schema.org offers more properties that describe you well even if Google does not name them for this feature: areaServed for the towns you cover, sameAs for your social and Business Profile links, hasMap for a map link, image and logo, email, paymentAccepted and currenciesAccepted. All of them are confirmed as valid on the schema.org LocalBusiness page. Add the ones that are true and shown on your site.

Copy-paste example: a plumber or electrician (service-area business)

For a trade that travels to customers, use Plumber, Electrician or your trade's type, list the towns you cover with areaServed, and include the address you show publicly. Google lists address as required, so give at least your town, region, postcode and country even if you hide your street address on your Business Profile.

Paste this into the <head> of your home page or contact page and replace every placeholder:

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Plumber",
  "name": "Example Plumbing Co",
  "url": "https://www.example.com/",
  "telephone": "+1-512-555-0100",
  "email": "hello@example.com",
  "image": "https://www.example.com/images/van.jpg",
  "logo": "https://www.example.com/images/logo.png",
  "description": "Licensed plumbers for emergency repairs, drains and water heaters in Austin and nearby towns.",
  "address": {
    "@type": "PostalAddress",
    "addressLocality": "Austin",
    "addressRegion": "TX",
    "postalCode": "78701",
    "addressCountry": "US"
  },
  "areaServed": [
    {"@type": "City", "name": "Austin"},
    {"@type": "City", "name": "Round Rock"},
    {"@type": "City", "name": "Pflugerville"}
  ],
  "openingHoursSpecification": [
    {
      "@type": "OpeningHoursSpecification",
      "dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"],
      "opens": "07:00",
      "closes": "18:00"
    },
    {
      "@type": "OpeningHoursSpecification",
      "dayOfWeek": "Saturday",
      "opens": "08:00",
      "closes": "12:00"
    }
  ],
  "priceRange": "$$",
  "sameAs": [
    "https://www.facebook.com/exampleplumbing",
    "https://www.instagram.com/exampleplumbing"
  ]
}
</script>

A few notes. Only include email and social links that really exist. If you show your street address on your site and your profile, add streetAddress inside address and a geo block too. If you take 24-hour emergency calls, do not mark the business as open around the clock unless you truly answer at 3am; put that in your page text instead. For how to set up the profile side, see our guide on service-area businesses on Google.

Copy-paste example: a restaurant or cafe

For a restaurant or cafe, use Restaurant, CafeOrCoffeeShop or Bakery, include your full street address and coordinates, and add servesCuisine, menu and acceptsReservations. Hours that run past midnight go in a single entry, as Google's documentation explains, so a Friday shift from 5pm to 1am is one block.

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Restaurant",
  "name": "Example Trattoria",
  "url": "https://www.example.com/",
  "telephone": "+1-415-555-0123",
  "image": [
    "https://www.example.com/images/dining-room.jpg",
    "https://www.example.com/images/pasta.jpg"
  ],
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "123 Example Street",
    "addressLocality": "San Francisco",
    "addressRegion": "CA",
    "postalCode": "94110",
    "addressCountry": "US"
  },
  "geo": {
    "@type": "GeoCoordinates",
    "latitude": 37.75912,
    "longitude": -122.41478
  },
  "servesCuisine": "Italian",
  "menu": "https://www.example.com/menu",
  "acceptsReservations": "True",
  "priceRange": "$$",
  "openingHoursSpecification": [
    {
      "@type": "OpeningHoursSpecification",
      "dayOfWeek": ["Tuesday", "Wednesday", "Thursday"],
      "opens": "17:00",
      "closes": "22:00"
    },
    {
      "@type": "OpeningHoursSpecification",
      "dayOfWeek": ["Friday", "Saturday"],
      "opens": "17:00",
      "closes": "01:00"
    },
    {
      "@type": "OpeningHoursSpecification",
      "dayOfWeek": "Sunday",
      "opens": "12:00",
      "closes": "21:00"
    }
  ]
}
</script>

Your menu should be real text on a web page, not only a PDF or a photo, so people and search engines can read it. That matters more than the markup. Our page on restaurant website design covers the rest of what a restaurant site needs.

Schema markup for local business: a restaurant dining room whose hours and menu are described in structured data
For a restaurant, the hours, address and menu link in your markup should match your sign and your Google Business Profile exactly.

Copy-paste example: a hair salon, barbershop or spa

For a salon, barbershop or spa, use HairSalon, NailSalon, BeautySalon or DaySpa, add your full address and hours, and link your booking page with url or in your page text. Barbershops have no type of their own, so HairSalon is the closest fit and is widely used.

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "HairSalon",
  "name": "Example Hair Studio",
  "url": "https://www.example.com/",
  "telephone": "+44-20-7946-0000",
  "image": "https://www.example.com/images/salon.jpg",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "10 Example Road",
    "addressLocality": "London",
    "postalCode": "N1 1AA",
    "addressCountry": "GB"
  },
  "priceRange": "£30-£120",
  "paymentAccepted": "Cash, Credit Card",
  "openingHoursSpecification": [
    {
      "@type": "OpeningHoursSpecification",
      "dayOfWeek": ["Tuesday", "Wednesday", "Thursday", "Friday"],
      "opens": "09:30",
      "closes": "19:00"
    },
    {
      "@type": "OpeningHoursSpecification",
      "dayOfWeek": "Saturday",
      "opens": "09:00",
      "closes": "17:00"
    }
  ],
  "sameAs": ["https://www.instagram.com/examplehairstudio"]
}
</script>

Leave out days you are closed, or mark a closed day by setting both opens and closes to "00:00", which Google's documentation describes. For salons, the booking button and a clear price list on the page usually do more for bookings than anything in the code. See our salon and spa website design page for the full picture.

Copy-paste example: a dentist or clinic

For a dental practice, use Dentist, give the full address, phone, hours and coordinates, and use department only if you truly have separately branded parts of the practice. For a medical or physio clinic, choose the matching medical type, such as MedicalClinic or Physiotherapy, from schema.org.

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Dentist",
  "name": "Example Family Dental",
  "url": "https://www.example.com/",
  "telephone": "+1-416-555-0199",
  "image": "https://www.example.com/images/reception.jpg",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "200 Example Avenue, Suite 4",
    "addressLocality": "Toronto",
    "addressRegion": "ON",
    "postalCode": "M5V 2T6",
    "addressCountry": "CA"
  },
  "geo": {
    "@type": "GeoCoordinates",
    "latitude": 43.64512,
    "longitude": -79.39543
  },
  "openingHoursSpecification": [
    {
      "@type": "OpeningHoursSpecification",
      "dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday"],
      "opens": "08:00",
      "closes": "18:00"
    },
    {
      "@type": "OpeningHoursSpecification",
      "dayOfWeek": "Friday",
      "opens": "08:00",
      "closes": "14:00"
    }
  ],
  "sameAs": ["https://www.facebook.com/examplefamilydental"]
}
</script>

Holiday hours can go in a separate entry with validFrom and validThrough dates. Google says that if you leave those two out, the hours are treated as applying all year. Keep any medical claims on the visible page accurate and within your professional rules; schema should never say more than the page does. Our dental clinic website design page and local SEO for dentists guide go further.

Can I add review stars to my own business schema?

No, not for your own business. Google's review snippet rules say that when a business controls the reviews about itself, its pages using LocalBusiness or Organization markup are ineligible for star ratings. That includes reviews you paste into your markup and reviews shown through an embedded third-party widget.

This is the most common schema mistake on small business sites, so it is worth reading Google's own words. Its review snippet documentation describes "self-serving" reviews: "If the entity that's being reviewed controls the reviews about itself", pages that use LocalBusiness or any other type of Organization structured data are ineligible for the star review feature. Google's own example is a review about a business placed on that business's website, "either directly in their structured data or through an embedded third-party widget".

Local business review markup is only for sites that review other businesses, such as a directory or a local guide.

So what should you do with your real reviews?

  • Show them on the page as normal text or a widget, because people do read them. Our guide on adding Google reviews to your website shows the honest ways.
  • Leave aggregateRating and review out of your own LocalBusiness markup.
  • Never invent a rating. Google's general structured data policies say: "Don't use structured data to deceive or mislead users." A fake rating in markup is exactly that.

Tip

If a plugin or a past web designer added a star rating to your markup, check it in the Rich Results Test (next section). If you see aggregateRating on your own business, remove it. Your stars will still show in your Google Business Profile, which is where Google takes them from for local results.

How do I test my schema markup?

Paste your page URL or your code into Google's free Rich Results Test at search.google.com/test/rich-results. It shows which structured data Google found, flags errors and warnings, and tells you whether the page is eligible for any rich result. For a general check against the full schema.org vocabulary, use the Schema Markup Validator at validator.schema.org.

Google calls the Rich Results Test "an easy and useful tool for validating your structured data" in its introduction to structured data. A simple routine:

  1. Before publishing, paste the code snippet into the Rich Results Test and fix any errors (missing commas and quotes are the usual culprits).
  2. After publishing, test the live URL so you know the code is really on the page.
  3. Check it in the Schema Markup Validator too, which catches schema.org issues the Rich Results Test ignores, like a misspelled property.
  4. Watch Search Console. Google points owners to its rich result status reports after deployment, and any structured data manual action also appears there.

Do not panic about warnings for optional properties. Errors matter; warnings simply mean you could add more detail. Note that LocalBusiness markup does not always show as an eligible "rich result" in the test, because the knowledge panel is not a classic rich result. The test still confirms Google can read it.

Where do I paste the code on WordPress, Wix or Squarespace?

The JSON-LD block can go in the page's head or body; it works in either. On WordPress, use a header-code plugin or your SEO plugin's local settings. On Wix, use custom code or the page's SEO settings. On Squarespace, use Code Injection. On a hand-built site, paste it into the head of your home or contact page.

Some specifics worth knowing:

  • WordPress. Popular SEO plugins can output organization or local business schema from a settings form. If you use one, do not also paste your own block for the same business, or you can end up with two conflicting versions. Pick one source.
  • Wix. Wix generates some structured data automatically for certain pages and lets you add your own custom markup in a page's SEO settings, under advanced options. Test afterwards to see whether you now have duplicates.
  • Squarespace. Use Settings, then Developer tools or Advanced, then Code Injection, and paste the block into the header for the whole site, or use page-level injection for a single location page.
  • Shopify and other builders. Most themes output product and organization markup. A local shop can add a LocalBusiness block through the theme code or an app.
  • Hand-built sites. Paste the script into the head of the page that represents the location, usually the home page for a single-location business.

Put the markup on one main page per location. A business with three branches should have three location pages, each with its own block and its own url, not one block listing all three addresses.

When we build a site, we add structured data for the business type, hours and location as part of the SEO setup, so owners do not have to touch the code. If you would rather do it yourself, the examples above are all you need.

Schema markup for local business on a small business website: code that states the business type, hours and location
Structured data is invisible to visitors; it simply restates the facts already on the page in a format search engines read without guessing.

What schema mistakes should local businesses avoid?

The big ones are marking up facts that are not on the page, adding star ratings to your own business, using a different name or phone number than your Business Profile, listing hours you do not keep, and choosing a generic type when a specific one exists. Each one either breaks Google's rules or creates the very confusion schema is meant to remove.

The fuller list:

  • Hidden or different facts. Google's policy is clear: "Don't mark up content that is not visible to readers of the page." If your markup lists a phone number or service area that the page does not show, fix the page or the markup.
  • Mismatched details. "Example Plumbing Co" in schema, "Example Plumbing LLC" on the profile and a different number in the footer send mixed signals. Copy the exact same details everywhere.
  • Fake ratings and self-serving reviews. Covered above. This can lead to a manual action, which Google says means a page "loses eligibility for appearance as a rich result".
  • Copy-pasted placeholders. It sounds obvious, but test pages full of "Example Street" and generator defaults turn up on real sites. Read every line before publishing.
  • Too-long priceRange. Google says it must be shorter than 100 characters, or the price range will not show.
  • Low-precision coordinates. Google asks for at least 5 decimal places. Copy them from Google Maps by right-clicking your location.
  • Stale hours. Change your markup when you change your hours, together with your profile and your contact page.
  • Duplicate blocks. A plugin, a theme and a hand-pasted block can all output LocalBusiness at once. Test the live page and keep just one.

Does schema help with AI search like ChatGPT and AI Overviews?

Indirectly at most. Google says there is no special schema needed to appear in AI Overviews or AI Mode; pages just need to be indexed and eligible for a snippet. Clean markup still helps any machine read your basic facts correctly, but clear text on the page, a complete Business Profile and genuine reviews matter far more.

Google's page on AI features and your website says there are "no additional technical requirements" and "no special optimizations necessary" to appear in its AI features. ChatGPT and other assistants read the visible page text when they browse. So the honest advice is: add schema because it is cheap and accurate, then spend your real effort on the words on your pages. Our guides on showing up in Google AI Overviews and getting your business on Google and ChatGPT go into that side.

Our verdict

Add LocalBusiness schema to your site: it takes under an hour, costs nothing and makes your name, address, phone and hours unambiguous to search engines. Use the most specific type, fill in Google's required and recommended properties with details that exactly match your page and Business Profile, test it in the Rich Results Test, and never mark up star ratings for your own business.

Then keep it in proportion. Schema is a label on the box, not the box. The things that actually win local customers are a complete Google Business Profile, a steady stream of genuine reviews, fast pages and service pages written in your customers' words. If you are building a new site anyway, ask your designer to include structured data as standard; Stackmane does, as part of the $299 one-time plan with a free preview first. You can see what is included or how our process works.

Get a free preview of a site with structured data already set up

A custom website for your business, designed and built in 7 days. See a free preview first, then pay once. No monthly fees. Questions? Email support@stackmane.com.

Get my free preview

Frequently asked questions

What is the best schema markup for a local business?

LocalBusiness markup in JSON-LD, using the most specific type that fits, such as Plumber, Restaurant, HairSalon or Dentist. Include your name and address (Google's two required properties), plus phone, website URL, opening hours, coordinates and price range. Every detail should match your page and your Google Business Profile exactly.

Does schema markup improve local rankings?

Not directly in any way Google promises. Google says structured data helps it understand a page and makes it eligible for some features, but it does not guarantee they will show. Reviews, a complete Business Profile, proximity and clear service pages carry more weight. Schema removes doubt about your basic facts.

Can I add star ratings to my own business schema?

No. Google's review snippet rules say that when a business controls reviews about itself, its LocalBusiness or Organization pages are ineligible for star ratings, whether the reviews are in the markup or in an embedded widget. Show real reviews on the page as normal content, and leave aggregateRating out of your own markup.

How do I test my local business schema?

Use Google's free Rich Results Test at search.google.com/test/rich-results with your code or live URL, then the Schema Markup Validator at validator.schema.org for a full vocabulary check. Fix errors first; warnings about optional properties are fine. After publishing, watch Search Console for structured data issues.

Where do I put schema markup on my website?

Put the JSON-LD script in the head of the page that represents the location, usually the home or contact page for a single-location business. On WordPress use a header plugin or your SEO plugin, on Wix use the page's SEO settings, and on Squarespace use Code Injection. Keep just one LocalBusiness block per location.

Do I need schema markup to appear in Google AI Overviews?

No. Google says there are no additional technical requirements or special optimizations to appear in AI Overviews or AI Mode. A page just needs to be indexed and eligible for a snippet. Schema still helps machines read your facts correctly, but clear page text and a strong Business Profile matter far more.

Related
Free preview

Want this done for you?

Tell us about your business. We design a preview of your new website and email you the link, usually within two days.

  • No card, no deposit
  • Changes until you’re happy
  • Pay $299 once, only if you love it
  • Live in 7 days, no monthly fees
Two businesses? Save 25% on both. Add a second business (yours or a friend’s) and each website costs $224 instead of $299.

Both get their own free preview. You pay only when both are approved: $448 together, or $224 each.