Home  /  Free Tools  /

LocalBusiness Schema Generator

Schema & Structured Data

LocalBusiness Schema Generator

Create LocalBusiness schema (JSON-LD) for your website from a simple form. Add your address or service area, opening hours and profiles, then copy valid code that helps Google understand your business.
1

Business details

Pick the most specific type that honestly fits. Not listed? Use the general option.

2

Location

Right-click your pin in Google Maps and click the numbers to copy them.

3

Opening hours

Leave every day unticked to skip opening hours. Use the hours customers can actually visit or call.

4

Official profiles

Only profiles you own: social pages, your Google Business Profile, directory listings.

Runs in your browser. Nothing you type is sent anywhere.

How to use LocalBusiness Schema Generator

  1. Enter your business details. Choose the closest business type, then add your name, website and contact details exactly as they appear on your site.
  2. Add your location. Enter your address, or tick the service-area option if you visit customers. Paste coordinates or a Google Maps link to add your map pin.
  3. Set your opening hours. Tick each open day and set its times, or use a preset. Days with the same hours are grouped automatically.
  4. Check and copy. The code updates as you type. Fix anything marked in red, consider the suggestions, then copy the code and test it with Google’s Rich Results Test.

What LocalBusiness schema does

LocalBusiness schema is a small block of code, written in a format called JSON-LD, that tells search engines the facts about your business in a way they can read reliably: your name, type of business, address, phone number, opening hours and official profiles. It doesn’t change how your page looks to visitors.

Schema helps Google connect your website with your business and understand details such as your hours and location. It doesn’t guarantee higher rankings or a special search result on its own, but it removes guesswork and supports everything else you do for local SEO.

Rules for accurate schema

  • Match what visitors can see. The name, address, phone and hours in the code should match your page and your Google Business Profile exactly.
  • Use one record per location. If you have several branches, give each branch its own page with its own schema.
  • Don’t publish a home address. If you work from home and visit customers, tick “I serve customers at their location”. The tool then leaves out your street address and map pin.
  • Never add fake ratings. Self-written star ratings for your own business aren’t eligible for review stars and can lead to a manual action from Google.

How to add the code to WordPress

Copy the code and paste it into the page that represents the business, usually your home or contact page. In Elementor, add an HTML widget anywhere on that page and paste the code into it. You can also use a header-and-footer code plugin and limit it to that page.

Before you add it, check whether your SEO plugin already outputs LocalBusiness schema. Rank Math, Yoast and others can do this. Two different business records on one page send mixed signals, so use either the plugin or this code, not both. Then run the page through Google’s Rich Results Test to confirm Google can read it.

LocalBusiness Schema Generator: FAQs

Not directly. Schema helps Google understand your business details and connect your website to your business, but it isn’t a ranking shortcut. Your Google Business Profile, reviews, content and links matter more.
No. The tool creates the code for you to copy. Paste it into an HTML widget or code block on the right page, then test it with Google’s Rich Results Test.
No. Tick “I serve customers at their location”. The code then keeps only your city, region and country, lists the areas you serve, and leaves out your street address and map coordinates.
Check first. If your plugin already outputs complete LocalBusiness schema for the page, you don’t need a second copy. Use this tool if the plugin doesn’t offer local business details or you want full control of the code.
Not for your own business. Google doesn’t show review stars from ratings a business adds about itself, and invented ratings can lead to a manual action. That is why this tool leaves ratings out.

Need a hand?

Want your local SEO set up properly?

I add schema, optimise Google Business Profiles and fix the technical details that help local customers find you.

Keep going

Related free tools.

Star icon

Google Business Profile

Turn your Place ID or Business Profile link into a direct Google review link, with ready-to-send WhatsApp and email messages.

Start a Conversation

Have a website project in mind?

Tell me what you need, what isn’t working, or what you want to improve. I’ll help you identify the right next step. No pressure, no jargon.

No newsletters, no spam. Your details are used only to reply.