LocalBusiness Schema Markup: Copy-Paste Code for Service Companies

Local SEO & GBP
31.10.2025
Google doesn't read your "About Us" page the way a human does. It guesses — parses your HTML, pattern-matches your address, tries to figure out if that phone number in the footer is actually yours. LocalBusiness schema markup removes the guesswork. It's a block of structured data you drop into your site that tells Google (and increasingly, AI assistants like ChatGPT and Gemini) exactly who you are, where you're located, and how to reach you — in a format machines don't have to interpret.

Free Local SEO Scan

See how your website ranks for local search

Run a free, no-signup SEO audit — schema, title tags, mobile speed and NAP signals — in about 30 seconds.

Scan My WebsiteNo credit card required

What LocalBusiness schema actually is

LocalBusiness is a type defined by schema.org, a vocabulary that Google, Bing, and most AI crawlers use to understand web content. You implement it as JSON-LD — a small script tag containing structured JSON — and place it on your site. It's not visible to visitors. It's a direct message to crawlers and AI models that bypasses the ambiguity of parsing prose.

Without it, search engines have to infer your business name from a page title, your address from text in a footer, and your hours from a sentence buried in your contact page. Any of that can be wrong, outdated, or missing entirely. With schema markup, there's no inference step — you're stating the facts directly in a format built for machines.

Why it matters more now than it used to

Schema markup has been around for over a decade, mostly as a rich-snippets play — it's how local businesses used to get star ratings showing up in Google search results. That's still true, but the bigger shift is that AI assistants lean on the same structured data to answer questions like "find me a plumber near me that's open now." A model trying to recommend a business reads structured data far more reliably than it reads marketing copy. If your schema is missing, broken, or outdated, you're easy to skip over — not because you're a worse business, just because you're harder to verify.

The problem is schema breaks quietly. A field gets renamed during a redesign, a plugin update drops a required property, someone copy-pastes a competitor's example and forgets to swap the address — and nothing visibly changes on the page, so nobody notices until rankings slip. That's exactly the kind of issue our SEO product is built to catch broken schema automatically, instead of you finding out months later that Google has been ignoring your markup.

The copy-paste LocalBusiness example

Here's a complete, valid LocalBusiness JSON-LD block. Swap in your own business details — every field below is a realistic placeholder you can replace directly.

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "LocalBusiness",
  "name": "Riverside Plumbing Co.",
  "image": "https://www.riversideplumbingco.com/images/storefront.jpg",
  "@id": "https://www.riversideplumbingco.com/",
  "url": "https://www.riversideplumbingco.com/",
  "telephone": "+1-555-867-5309",
  "priceRange": "$$",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "412 Riverside Drive",
    "addressLocality": "Springfield",
    "addressRegion": "IL",
    "postalCode": "62704",
    "addressCountry": "US"
  },
  "geo": {
    "@type": "GeoCoordinates",
    "latitude": 39.781721,
    "longitude": -89.650148
  },
  "openingHoursSpecification": [
    {
      "@type": "OpeningHoursSpecification",
      "dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"],
      "opens": "08:00",
      "closes": "17:00"
    },
    {
      "@type": "OpeningHoursSpecification",
      "dayOfWeek": "Saturday",
      "opens": "09:00",
      "closes": "13:00"
    }
  ],
  "aggregateRating": {
    "@type": "AggregateRating",
    "ratingValue": "4.8",
    "reviewCount": "126"
  }
}
</script>

What each field is actually doing

  • @context / @type — tells the crawler you're using schema.org vocabulary and that this object is a LocalBusiness.
  • @id — a stable identifier for this business entity. Using your canonical URL here is standard practice and helps Google tie this markup to the same entity across pages.
  • image — Google prefers a real photo of your storefront or team over a logo. A generic logo gets ignored more often than a real photo does.
  • address — a full PostalAddress object, not a flat string. Each sub-field (streetAddress, addressLocality, addressRegion, postalCode, addressCountry) needs to match what you have listed in your Google Business Profile exactly — mismatches between your schema and your listing are a common source of trust problems. See NAP consistency for why this matters beyond just schema.
  • geo — latitude and longitude. If you don't know yours offhand, dropping your address into any map tool and reading the coordinates out of the URL works fine.
  • openingHoursSpecification — an array, because most businesses have different hours on different days. Group consecutive days with identical hours into one object, like the Monday–Friday block above, rather than repeating the same hours five times.
  • aggregateRating — covered in its own section below, because this one can backfire if you're not careful with it.

More specific types for specific trades

LocalBusiness is the generic parent type, and it's a safe default for any service business. But schema.org also defines dozens of more specific subtypes that inherit everything LocalBusiness has and add trade-specific context on top. If one matches your business, using it instead of the generic type gives search engines a slightly clearer signal:

  • HVACBusiness — heating, ventilation, and air conditioning contractors.
  • Plumber — plumbing services.
  • Dentist — dental practices.
  • Electrician — electrical contractors.
  • RoofingContractor, HousePainter, MovingCompany — and a long tail of other home-service and professional-service types.

To use one, just swap the "@type" value — the rest of the example above stays exactly the same, since these subtypes don't require any additional fields beyond what LocalBusiness already defines. If none of the specific subtypes fit your business, plain LocalBusiness is a perfectly valid and common choice.

Where to actually paste it

The script tag goes inside your page's <head>, or directly before the closing </body> tag if your CMS makes editing the head awkward. Both positions are treated the same by Google — it doesn't care where in the document the script sits, only that it's present and valid.

Schema.org actually supports three formats — JSON-LD, Microdata, and RDFa — and Google accepts all three. JSON-LD is what nearly every site uses today because it's a single self-contained script tag, decoupled from your HTML structure. Microdata and RDFa require weaving special attributes directly into the markup around your visible content, which means every time you touch that HTML you risk breaking the schema along with it. There's no upside to picking either of those over JSON-LD for a new implementation.

A few placement notes that matter in practice:

  • Put it on every page you want associated with the business — most sites place it site-wide via a shared header or footer template rather than hand-adding it page by page.
  • If you're on WordPress, most SEO plugins let you inject custom head scripts without touching theme files directly, which is usually the safer route than editing the theme.
  • Only include one LocalBusiness block per page for a single-location business. Multi-location businesses need a separate block per location page, each with its own @id.

Validating it after you publish

Once it's live, run your page through Google's Rich Results Test. Paste in your URL (or the raw code directly), and it'll tell you whether Google can parse the markup, which type it detected, and flag any missing or malformed required fields. It's the same tool Google's own documentation points people to, so it's a reliable way to catch syntax errors before they cost you anything.

A clean result there doesn't guarantee rich results will show up in search — that's always at Google's discretion — but it confirms the markup itself is valid and readable, which is the part actually within your control.

The aggregateRating trap

The example above includes an aggregateRating block, and it's worth being direct about this: only include it if the numbers are real and you can back them up. Google has explicit guidelines against markup that implies a rating you don't actually have, and sites caught publishing fake or unverifiable ratings can lose rich-result eligibility entirely, not just for that one field.

If you do have genuine reviews — on your own site, aggregated from Google, or collected directly — then ratingValue and reviewCount should reflect the real, current numbers, and you should update them as new reviews come in rather than letting the markup go stale. If you don't have review data yet, just drop the aggregateRating block entirely. LocalBusiness schema is completely valid without it.

Because review-based schema has its own set of rules and its own ways to get wrong, we built a separate, free review schema generator that builds a correct AggregateRating block straight from your real review numbers — so you're never guessing at the format or risking markup that looks fabricated.

Common mistakes that quietly break this markup

Most LocalBusiness schema problems aren't dramatic — nobody deletes the script tag on purpose. They happen in the background during normal site maintenance, and because the markup is invisible, nobody notices until something downstream looks off. A few patterns show up constantly:

  • Address drift. The business moves, or a typo gets fixed on the contact page, and the schema address never gets touched. Now your markup and your actual address disagree, which undercuts the exact trust signal this is supposed to build.
  • Copy-pasted placeholder data. Someone grabs an example from a tutorial (including this one) and forgets to swap out the sample phone number, coordinates, or business name on one of several pages.
  • Duplicate or conflicting @id values. Multi-location businesses sometimes reuse the same @id across every location page. Google ends up treating them as the same entity instead of distinct branches, which muddies location-specific results.
  • Invalid JSON from a template error. A CMS variable fails to render, a quote mark doesn't get escaped, a trailing comma sneaks in — and the entire block silently fails to parse. The page still loads fine for visitors, so this can go unnoticed for months.
  • Stale hours or ratings. Hours change for a holiday season or a renovation and the schema still reflects the old schedule. Same story with aggregateRating numbers that never get refreshed as new reviews come in.

None of these throw an error anywhere a human would see. They just quietly degrade how much a crawler or an AI model trusts what you're telling it — which is the whole reason it's worth validating this periodically rather than treating it as a one-time setup task.

Does this replace my Google Business Profile?

No — they do different jobs, and you need both. Your Google Business Profile is the listing that actually appears in Maps and local search results; LocalBusiness schema is metadata on your own website that reinforces and corroborates that listing. When the two sources agree — same name, same address, same phone number — Google has more confidence in both. When they disagree, it has to decide which one to trust, and there's no guarantee it picks the one you'd want.

Check your work

Schema markup is easy to get right once and then forget about, which is exactly when it tends to quietly break — a theme update strips a script tag, a migration drops the head injection, nobody notices until visibility drops. Run a free audit (no signup) and we'll check your site for exactly this schema, along with the rest of the local SEO basics that affect whether you show up at all.

Want more organic traffic, not just AI mentions?

How Tailwind improves your SEO rankings

  • Generate content — we improve your SEO rankings
  • AI Visibility — see how high you rank in AI answers and exactly what to do
  • Connect your business to LLMs — MCP connector
  • Online reputation — we grow your rating
  • …and other useful tools

All of it from $29/month

No credit card required. Cancel any time.

Subscribe to our newsletter

We send helpful materials once a month, along with information about discounts and special offers. No daily spam

We use your email only to send this newsletter. You can unsubscribe at any time from the link in every email. See our Privacy Policy.

How to unsubscribe from the mailing list?
LocalBusiness Schema Markup: Copy-Paste Code for Service Companies