Skip to content

How do you add LocalBusiness schema to your website?

Local business schema is a block of code that tells Google your name, address and hours. Here is how to add it, test it, and what it will not do.

By , Founder, Propty · Austin, TX

Published

You add local business schema by pasting a small block of JSON-LD code into the page on your site that describes your business, filling it with the same name, address, phone and hours that visitors can see on that page. Then you test it with Google's Rich Results Test. Google's guide says to add the required properties for your type, and the more complete and accurate your details, the better. Schema helps Google read your page. It does not guarantee a rich result, a ranking or a mention in an AI answer.

Key points

  • Use the most specific LocalBusiness subtype you can, such as Restaurant, DaySpa or HealthClub, not the generic type.
  • Mark up only what visitors can see on the page, and keep it identical to your Google Business Profile and the rest of your site.
  • JSON-LD is the format Google recommends, and it is usually the easiest to maintain.
  • Test with the Rich Results Test, then give Google several days to recrawl.
  • Valid markup does not guarantee any feature will appear. It is one small piece of keeping your business facts consistent.

What local business schema does and does not do

Structured data is a standardized way to give Google explicit clues about what a page means. Google's intro to structured data says adding it can enable more engaging results called rich results. Google's LocalBusiness guide says that with this markup you can tell Google about business hours, departments and more.

Here is the honest limit. Google's general structured data guidelines say: "Google does not guarantee that your structured data will show up in search results, even if your page is marked up correctly according to the Rich Results Test." Results depend on many variables, including search history, location and device type.

Schema can help with Schema cannot do
Giving Google a clean, labeled copy of your name, address, phone and hours Guarantee a rich result, a knowledge panel or any ranking
Making your page's business facts unambiguous Replace your Google Business Profile
Keeping the facts on your site consistent with other listings Fix thin or inaccurate page content
Making you eligible for enhanced display when required properties are present Make ChatGPT or other AI assistants recommend you

On that last point, I have no source showing that AI assistants read your schema. Treat any claim that schema "gets you into ChatGPT" as unproven. For how those systems work, see SEO vs AEO vs GEO.

Schema also does not replace your profile. Google's Business Profile help says profile information is compiled from several sources, including crawled web content such as a business's official website. Your website is one input among several, so you still need to manage the profile itself. The Google Business Profile optimization checklist covers that.

Step 1: Pick the right page and the right type

Page. Google says you can add LocalBusiness markup to any page, though "it may make more sense to put it on a page that contains information about your business." For one location, that is usually your home page or contact page. With several locations, give each its own page and its own markup. Google's guidelines say to put structured data on the page it describes.

Type. Google says to define each location as a LocalBusiness type and "use the most specific LocalBusiness sub-type possible." Its examples are Restaurant, DaySpa and HealthClub. Browse the subtypes on the schema.org LocalBusiness page and pick the closest match. Schema.org describes the type as "a particular physical business or branch of an organization," so it fits shops, studios, offices and restaurants. It may not fit a purely online business with no physical location.

Step 2: Gather facts that match your site

Collect these from the page itself and your Business Profile, and make sure they agree.

Property What to put Notes
name Your business name In Google's property table
address A PostalAddress with street, city, state, ZIP, country In Google's property table. Google says to include as many properties as possible
url The page that describes this location Use the full address, including https
telephone Main phone with country code Same number shown on the page
image One or more crawlable photo URLs Must be relevant to the page
geo Latitude and longitude In Google's example
openingHoursSpecification Days, opening time, closing time Use 24-hour times, like "09:00"
priceRange Something like "$$" In Google's example

Google's property tables are the final word on which properties are required and recommended, so check them for your subtype. Google also says it is more important to supply fewer but complete and accurate recommended properties than to cram in every possible one with sloppy data.

Step 3: Paste the JSON-LD

Google recommends JSON-LD, and says all three formats (JSON-LD, Microdata, RDFa) are fine as long as the markup is valid. Replace everything in capitals, delete lines you do not need, and swap LocalBusiness for your specific subtype (for example DaySpa).

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "LocalBusiness",
  "name": "YOUR BUSINESS NAME",
  "image": [
    "https://www.example.com/photos/storefront.jpg"
  ],
  "url": "https://www.example.com/",
  "telephone": "+15555550123",
  "priceRange": "$$",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "123 YOUR STREET",
    "addressLocality": "YOUR CITY",
    "addressRegion": "ST",
    "postalCode": "00000",
    "addressCountry": "US"
  },
  "geo": {
    "@type": "GeoCoordinates",
    "latitude": 0.000000,
    "longitude": 0.000000
  },
  "openingHoursSpecification": [
    {
      "@type": "OpeningHoursSpecification",
      "dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"],
      "opens": "09:00",
      "closes": "17:00"
    },
    {
      "@type": "OpeningHoursSpecification",
      "dayOfWeek": "Saturday",
      "opens": "10:00",
      "closes": "14:00"
    }
  ]
}
</script>

A few notes from Google's examples:

  • To show a business closed all day, set both opens and closes to "00:00". For open 24 hours, use "00:00" and "23:59".
  • Skip validFrom and validThrough and the hours count as valid year-round. Use both for seasonal hours.
  • Google's sample includes a review, but its guide describes reviews as for sites that capture reviews about other businesses. Do not add your own made-up or self-written reviews. Google's guidelines say not to mark up fake reviews.

Where it goes. If you edit HTML directly, paste the script into the page's <head> or <body>. If you use WordPress, Wix or Shopify, you may not be able to edit HTML. Google says your CMS may have a settings page or a plugin that lets you enter structured data, so search for instructions for your platform.

Step 4: Test it and give Google time

  1. Open the Rich Results Test. Google describes it as a way to "test your publicly accessible page to see which rich results can be generated by the structured data it contains." You can enter a URL or paste code.
  2. Fix critical errors. Google also suggests fixing non-critical warnings, though that is not necessary for eligibility.
  3. Publish, then use the URL Inspection tool in Search Console to see how Google views the page.
  4. Make sure the page is not blocked by robots.txt, a noindex tag or a login.
  5. Wait. Google notes it may take several days after publishing for it to find and crawl a page. Submitting a sitemap helps keep Google informed of changes.
  6. After launch, watch the rich result status reports. Templates and serving problems can break markup later.

Checklist before you publish:

  • The page is the one that describes this business or location.
  • I used the most specific subtype I could find on schema.org.
  • Name, address, phone and hours match the visible page text.
  • The same details match my Google Business Profile.
  • Image URLs are public and crawlable.
  • No placeholder text remains in the code.
  • The Rich Results Test shows no critical errors.
  • The page is not blocked from Google.
  • I set a reminder to update the markup when hours or contact details change.

Example (hypothetical)

A small day spa owner has one location and a WordPress site. Here is what she decides.

Decision Choice Why
Page The "Contact and hours" page It already shows the spa's name, address, phone and hours
Type DaySpa More specific than LocalBusiness, and one of Google's named examples
Properties name, address, url, telephone, image, hours These all appear on the page already
Skipped review Her site does not collect reviews about other businesses
Method A schema plugin field in WordPress She cannot edit the page HTML directly
Test Rich Results Test, then URL Inspection Confirms the code reads cleanly and Google can reach the page

Two weeks later she changes Saturday hours on the page. She updates the markup the same day, because markup that disagrees with the visible page is a problem, not a help.

Common mistakes

Mistake Why it hurts Fix
Using only the generic LocalBusiness type Google asks for the most specific subtype Find the closest subtype on schema.org
Marking up hours that are not on the page Google says not to mark up content that is not visible to readers Show the hours on the page, then mark them up
Leaving old hours or phone in the code Google asks for up-to-date information Update the markup when the page changes
Adding fake or self-written reviews Google says not to mark up fake reviews Leave review out
Blocking the page with noindex or robots.txt Google cannot read markup on a blocked page Check with URL Inspection
Assuming a passed test means a rich result Google does not guarantee display Treat a pass as eligibility, not an outcome
Putting one location's markup on every page Markup should describe the page it is on One page and one block per location

Frequently asked questions

Is local business schema required to show up on Google Maps?

Google says Business Profile information is compiled from several sources, and a business's official website is one of them. The profile you claim and manage is a separate task. Schema helps keep your site's facts clear, but it does not replace the profile. See how to rank higher on Google Maps for the profile side.

Should I use JSON-LD, Microdata or RDFa?

Google supports all three and says they are equally fine if the markup is valid. It recommends JSON-LD because it is the easiest to implement and maintain. JSON-LD sits in its own script block instead of being woven into your visible text.

How long until Google picks up my markup?

Google says it may take several days after publishing for it to find and crawl a page. You can ask for a recrawl after checking the page in URL Inspection, and submitting a sitemap helps. Even then, whether a feature appears is up to Google.

Does schema help AI assistants recommend my business?

I cannot point to a source that says so. Google says structured data gives it clues about a page, and nothing in these sources says ChatGPT or other assistants rely on it. Consistent, accurate business facts across your site and listings are still sensible. For the assistant side, see how to check if AI recommends your business.

Limitations

This guide covers Google's LocalBusiness documentation and schema.org's type definition as of the date checked. Google's property tables may change, and I did not reproduce them in full, so check the current tables for your subtype to see which properties are required and recommended. Search results vary by person and place, and nobody controls whether Google shows a rich result or an AI assistant names your business. Schema does not turn a thin page into a strong one. Industries with professional rules around advertising should confirm what they may publish with the right rule body before adding claims to their pages.

Where Propty fits

Propty gets a business found across AI search. Its AI agents check whether AI search engines recognize and recommend the business, diagnose and fix visibility gaps, and publish online content the owner approves. Every change gets the owner's one-tap approval, and approved pages publish directly to a connected WordPress site, or the owner gets the exact change ready to paste for any other site. Propty then opens the live page and checks it against the approved version, with a dated check. To see where you stand first, run the free AI visibility report, which needs no account or card. If you want to see the process, the demo page shows how it works. Propty makes this guide and is one of the options for help with this work, so a DIY pass using the steps above is a reasonable choice too. Whether you do it yourself or not, nothing guarantees rankings or AI recommendations. If you are weighing whether a text file helps AI crawlers, read Does a small business website need an llms.txt file?

Sources

Free AI visibility report

See if AI search names your business.

We check ChatGPT, Gemini, Perplexity, Google AI answers, Google Search and Maps, and show who appears instead. No account or card needed.

Get my free report →