Your contact page already tells visitors who you are, where you are and when you open. A person reads that in seconds. A search engine reading the same page sees ordinary paragraphs; nothing labels one line as your address, another as your phone number and a third as your opening hours. LocalBusiness schema is that label. It is a small block of structured data, written in JSON-LD, that restates the business details in a format machines can parse without guessing.
This guide adds it the careful way, using the free Schema Markup Generator on Ovatly, which runs in your browser. The generator builds JSON-LD for six common types: Article, FAQPage, HowTo, Product, LocalBusiness and BreadcrumbList. This guide works through the LocalBusiness type end to end. For the wider picture first, see the companion explainer What Is Schema Markup?.
Contents
- Quick answer
- What LocalBusiness schema actually is
- The one rule: markup must match the visible page
- How to add Local Business schema, step by step
- Worked example: a bakery contact page
- Limitations: what schema cannot promise
- Common mistakes
- FAQs
- Conclusion
- References
Quick answer
Open the Schema Markup Generator, choose the LocalBusiness type, and fill in the fields with your page's real information: name, address, phone number and opening hours exactly as the page shows them. Copy the generated script block into the page, inside the <head> or just before the closing </body> tag, keeping one block per type per page. Read the guidance note for missing recommended properties, then test the live URL with Google's Rich Results Test or the Schema.org validator. The markup makes your page eligible for rich results; it does not guarantee Google will show them.
What LocalBusiness schema actually is
Schema markup is structured data: a standard vocabulary, maintained at schema.org, for describing things on a page so that software does not have to infer them from prose. LocalBusiness is the type for a business with a physical presence: a shop, a salon, a cafe, a tradesperson's office. Where a paragraph says "find us at 14 Market Lane, open weekdays from eight", the JSON-LD block says the same thing as labelled fields: a name, a postal address, a telephone number, opening hours.
The generator's job is narrow and useful. You pick the type that matches the page, fill in guided fields based on what is actually on the page, and it outputs a validated JSON-LD block plus a note about which recommended properties are still empty. It validates that the output is well-formed JSON, and it escapes closing script tags inside your text so the block cannot break the page. What it cannot do is judge whether the details you typed are true. That part stays with you.
The one rule: markup must match the visible page
Structured data must describe content that is visible on the page. That sentence from the tool's own notes is the whole discipline of schema work. Your LocalBusiness block should be a restatement of your contact page, not a brochure for a business you wish you had.
The sharp edge of the rule is invention. Marking up hidden or invented content, including fake ratings and review counts, breaches search engine guidelines. The generator guards one version of this on the Product type: its form only includes a rating when you supply both a rating value and a review count. Nothing stops you typing numbers you invented, though, and mismatched markup is exactly the kind of thing that leads to manual actions or to Google ignoring the block. If a detail is worth marking up, it is worth showing to visitors on the page itself.
How to add Local Business schema, step by step
- Open the Schema Markup Generator and choose the LocalBusiness type, the one that matches a business page.
- Fill in the fields with the page's real information. Use the name, address, phone number and opening hours exactly as they appear on the page, not a tidier version from memory.
- Copy the generated script block into the page. Place it inside the
<head>of the page, or just before the closing</body>tag; both placements are accepted. Keep one block per type per page. - Check the guidance note for missing recommended properties. Fill any you genuinely have, and leave the rest empty rather than inventing values.
- Publish, then test the live URL with Google's Rich Results Test or the Schema.org validator. The generator verifies the JSON is valid, but only the live tests see your real page as Google sees it.
Worked example: a bakery contact page
Imagine a small bakery, Fernwood Bakery, whose contact page shows its name, its address at 14 Market Lane, a phone number and its opening hours, Monday to Saturday, 8 in the morning to 5 in the afternoon. Every detail in the block below is invented for this example; on your site, each value would be copied from your own page. Choosing LocalBusiness in the generator and filling the fields with those details produces a block in this shape:
{
"@context": "https://schema.org",
"@type": "LocalBusiness",
"name": "Fernwood Bakery",
"address": {
"@type": "PostalAddress",
"streetAddress": "14 Market Lane",
"addressLocality": "Fernwood",
"postalCode": "FW2 4QT",
"addressCountry": "GB"
},
"telephone": "+44 20 7946 0301",
"openingHours": "Mo-Sa 08:00-17:00",
"url": "https://fernwoodbakery.example/"
}
Two things are worth noticing. First, there is nothing in the block that a visitor cannot also read on the page; the schema adds labels, not claims. Second, if the bakery later changes its Saturday hours on the page, the same change has to happen in the block, or the markup stops matching the page. Treat the block as part of the page's content, maintained with it.
Limitations: what schema cannot promise
Schema makes a page eligible for rich results; Google decides whether to show them, based on quality, relevance and its current feature set. Adding a correct LocalBusiness block does not guarantee a richer listing, a map placement or any particular display, and it is not a ranking promise. The tool's own wording for its guidance note makes the same point: the note is guidance based on schema.org's required and recommended properties for the type, not a promise that Google will show a rich result.
There is also a scope limit. The generator checks the block itself: the JSON is well-formed and the fields are complete against its guidance. It does not fetch your page, so it cannot see whether the pasted block survived your CMS intact or whether the page's details have drifted away from the markup. That is what the live tests are for.
Common mistakes
- Marking up details the page never shows. An address, phone number or set of hours that exists only in the JSON-LD breaks the match rule, however accurate it is in real life. Put it on the page first, then in the block.
- Inventing ratings or review counts. Fake ratings and review counts are named in the tool's notes as a guidelines breach. If the numbers are not real and visible, leave them out entirely.
- Pasting the block twice. Keep one block per type per page. Duplicated blocks from a theme and a plugin create contradictions nobody intended.
- Letting the markup go stale. Hours change, businesses move, phone numbers get replaced. When the page changes and the block does not, the two disagree.
- Skipping the live test. Valid JSON in the generator is not proof the published page is valid. Run the Rich Results Test or the Schema.org validator on the live URL before you call the job done.
FAQs
Does adding LocalBusiness schema guarantee a better listing? No. Schema makes a page eligible for rich results; Google decides whether to show them based on quality, relevance and its current feature set. The markup states your details clearly, but no display is promised.
Where do I paste the JSON-LD block?
Inside the <head> of the page, or just before the closing </body> tag. Both placements are accepted; keep one block per type per page.
Can I mark up details that are not on the page? No. The markup must match the visible page. Structured data must describe content that is visible on the page, and marking up hidden or invented content breaches search engine guidelines and can lead to manual actions or ignored markup.
What does the missing properties note mean? It is guidance based on schema.org's required and recommended properties for the LocalBusiness type, telling you which recommended fields are still empty. It is not a promise that Google will show a rich result.
How do I test the markup after adding it? Use Google's Rich Results Test or the Schema.org validator on the live URL. This tool verifies the JSON is valid and complete against its field guidance, but only the live tests see your real page.
Conclusion
LocalBusiness schema is a short, honest restatement of what your contact page already says, labelled so machines can use it: name, address, phone, hours, copied exactly and kept in step with the page. Build it with the Schema Markup Generator, heed the missing-properties note without inventing values, and verify the result live. When your pages also carry a visible breadcrumb trail, the companion guide How to Add Breadcrumb Schema covers the matching markup. More guides like these live in the SEO Tools guides archive.
References
- Schema.org, the LocalBusiness type and its properties: https://schema.org/LocalBusiness
- Google Rich Results Test, for checking structured data on a live URL: https://search.google.com/test/rich-results