How to Generate LocalBusiness Schema (JSON-LD) for Your Website
LocalBusiness schema is a block of machine-readable code (JSON-LD) that tells Google exactly what your business is: its name, type, address, phone number, opening hours and more. Search engines can read a web page, but schema removes the guesswork — and businesses that state these facts clearly are easier to show correctly in search and map results.
What schema does — and what it does not do
Schema is structured data: facts about your business written in a format search engines parse directly. It helps Google understand and display your details accurately, and it is one of the inputs behind rich results. It is not a ranking trick and it does not guarantee any special display — think of it as labelling your business clearly rather than hoping Google infers everything from your page text.
Step by step
- Gather the real facts first. Business name exactly as customers know it, the closest business type (Plumber, Dentist, Restaurant…), phone, website, full address and opening hours. Never invent details — schema must match what is visibly true on your site.
- Generate the JSON-LD. Open the LocalBusiness Schema Generator, fill in the fields and click Generate schema.
- Copy the code. Use the Copy schema button so nothing is lost or retyped.
- Add it to your website. Paste it inside a
<script type="application/ld+json">tag in the page's<head>, or just before the closing</body>tag. The homepage is the usual place for business-wide schema. - Test it. Run the page through Google's free Rich Results Test to confirm the code is valid and the details were picked up.
Common mistakes
- Details that do not match the website. A different phone number or address in schema than on your contact page undermines trust with both Google and customers.
- Adding reviews or ratings you do not have. Fake review markup can get the page's rich results removed. Only mark up genuine, visible content.
- Marking up every page with different business facts. Keep one consistent set of business details site-wide.
- Forgetting to update it. Changed hours or moved premises? Update the schema at the same time as the visible page.
Frequently asked questions
Do I need schema if I already have a Google Business Profile?
They do different jobs. Your Business Profile feeds Maps and the local panel; schema describes your business on your own website. Having both, with identical details, is the consistent approach.
Where exactly do I paste the code?
Inside a script tag of type application/ld+json, in the head section or at the end of the body of the page. Most website builders have a "custom code" or "header code" area that accepts it.
Will schema improve my rankings on its own?
No honest tool can promise that. Schema's job is clarity: it helps search engines understand and present your business correctly, which supports everything else you do for local SEO.
Do it now with the free tool
Skip the manual work — the LocalBusiness Schema Generator does this task in seconds, free, in your browser.
Open the LocalBusiness Schema Generator