Local business schema generator
Fill in your business details and get clean schema markup for local business websites. It helps Google match your site with your Google Business Profile.
Business details
Your schema code
Paste the code in your site’s head section, or in a custom HTML block on your contact page. Make sure name, phone and address match your Google Business Profile exactly.
Copy, paste, test
- Pick the most specific business type you can. MovingCompany is better than LocalBusiness for a mover.
- Type your name, phone and address exactly as they appear on your Google Business Profile.
- Add the cities you serve and links to your Google Maps listing and other profiles.
- Copy the code, add it to your site, then test it on validator.schema.org.
What this code does
Schema is a small block of code that tells Google, in its own language, who you are, where you are and when you are open. It does not show on the page, but Google reads it.
It will not push you to number one on its own. What it does is remove doubt: your site, your Google listing and your directory profiles all say the same thing, and that consistency helps Google trust your details.
Common questions
What is local business schema?
It is structured data that describes your business to search engines: your name, type, address, phone, hours, service area and profile links. It uses the LocalBusiness type from Schema.org, and Google reads it to understand who you are and where you work. Visitors do not see it on the page.
Do I need this if I use Rank Math or Yoast?
Those plugins add basic schema, but often as a generic Organization. A specific type with your hours, service area and profile links gives Google more to work with.
I hide my address on Google. What do I do?
Leave the street address empty and fill in city, state and areas served. That matches how a service area business shows on Google.
Where do I put the code?
On Shopify, paste it in theme.liquid before the closing head tag. On other platforms, add it to the head section of your home or contact page. WordPress steps are in the question below.
How to add local business schema to WordPress?
The simplest way is a code snippet plugin such as WPCode. Create a new header snippet, paste the code from this tool and set it to load on your home page or contact page. If an SEO plugin like Rank Math or Yoast already adds local business details, keep only one version so the two do not clash. You can also use a Custom HTML block on that page. After saving, test the live page with Google’s Rich Results Test.
Will schema improve my Google Maps rankings?
Google does not list schema as a local ranking factor. Its local ranking help page talks about relevance, distance and prominence. Schema helps Google read your details correctly, which supports the rest of your local SEO.
Local business schema markup: the fields that matter
Google’s local business structured data guide lists name and address as required, and many more fields as recommended. These are the ones I fill in for every client.
Name, address and phone
Written exactly as on your Google Business Profile. If you hide your address, leave the street out and use city, region and areas served.
The right business type
The most specific type that fits, like MovingCompany, Plumber or Dentist, instead of the general LocalBusiness.
Opening hours
Your real hours for each day. Leave closed days empty so the code does not say you are open.
Areas served
The cities or counties you work in. This matters most for businesses that travel to the customer.
Profile links
Your Google Maps link, Facebook, Yelp and other listings, so Google can connect them to your site.
Map location
Latitude and longitude of your address, if it is public. You can copy them from Google Maps.
Want your whole local setup checked?
Schema is one piece. I will look at your Google Business Profile, your service pages and your citations, then send a short Loom video with what to fix first.