Free local SEO tool
Local Business Schema Generator
Free LocalBusiness JSON-LD in about a minute.
Pick your exact business type, add your address, opening hours and service area, and copy schema code that is ready to paste into your website. No sign-up, nothing to install, and nothing you type leaves your browser.
Your LocalBusiness JSON-LD
Want me to check your whole local setup? Schema is one piece. I will review your Google Business Profile, citations and location pages and tell you what is holding you back in the map pack.
Get a free local SEO reviewHow to use this local business schema generator
- Choose your business type. Pick the narrowest type that is true, for example Plumber rather than Local business. Search engines learn more from a specific type.
- Fill in your details. Use exactly the same name, address and phone number as your Google Business Profile. If you visit customers and hide your address, tick the service-area box.
- Copy and test. Copy the code, paste it into your page, and run the page through Google's Rich Results Test. The tool flags common problems as you type, such as a phone number without a country code.
Watch the 26-second demo
Here is the tool filled in for a sample plumber in Leeds, from picking the business type to copying the finished code.
How to add the code to your website
The code goes in the <head> of the page that represents your business, normally the homepage or the contact page. How you get it there depends on your platform:
- WordPress: use a header code plugin such as WPCode, or the custom code or local SEO settings in your SEO plugin. If your SEO plugin already outputs LocalBusiness schema, use one or the other, not both.
- Wix, Squarespace and Shopify: paste it into the custom code or code injection area for the header of that page.
- A developer-built site: send your developer the code and ask them to place it in the head of the right page.
After it is live, request indexing for that page in Google Search Console so Google picks up the change sooner.
Which business type should you choose?
| If you are | Choose | Note |
|---|---|---|
| Plumber or electrician | Plumber / Electrician | Both have their own Schema.org type. |
| Heating or air conditioning engineer | HVACBusiness | Covers boilers, furnaces and AC. |
| Roofer or builder | RoofingContractor / GeneralContractor | Use the one that matches your main service. |
| Landscaper, cleaner or other trade | HomeAndConstructionBusiness or ProfessionalService | Schema.org has no exact type for every trade, so use the closest parent type. |
| Dentist, doctor or vet | Dentist / Physician / VeterinaryCare | Add each practice location separately. |
| Law firm or solicitor | LegalService / Attorney | LegalService for the firm, Attorney for an individual. |
| Accountant | AccountingService | Works for bookkeepers too. |
| Restaurant or cafe | Restaurant / CafeOrCoffeeShop | The tool adds menu and cuisine fields for food businesses. |
Common local business schema mistakes
- Marking up your own reviews. Google only recommends review and rating markup for sites that collect reviews about other businesses. Self-serving stars can lead to a manual action.
- Details that do not match your Google Business Profile. A different phone number, an old address or a shortened business name sends mixed signals. Keep them identical, and see my guide to local citations for why consistency matters.
- Using the generic type when a specific one exists. LocalBusiness is valid, but Dentist or Plumber tells Google more.
- Wrong or outdated opening hours. Update the schema when your hours change, including seasonal closures.
- Marking up things visitors cannot see. Google asks that structured data reflects information that is actually on the page, so show your address, phone and hours on the page too.
- Putting several locations in one block. Each location should have its own page and its own schema.
Schema works best alongside the rest of your local setup. My Google Business Profile optimization guide and local SEO checklist cover the other pieces, and my guide to structured data for SEO explains how schema fits into your site as a whole.
Frequently asked questions about local business schema
What is local business schema?
Local business schema is a short piece of code, usually in JSON-LD format, that tells search engines your business name, address, phone number, opening hours and type of business in a format they can read without guessing. It does not change how your page looks to visitors.
Should I use LocalBusiness or a more specific type?
Use the most specific type that is true for you, such as Plumber, Dentist or AccountingService. Only fall back to LocalBusiness or ProfessionalService when Schema.org has no closer match. This generator lists the common types for trades, health, legal and financial, food and retail businesses.
Can I add star ratings for my own business?
No. Google only recommends review and rating markup for sites that collect reviews about other businesses. Marking up your own reviews is outside its guidelines and can lead to a manual action, which is why this tool does not include a rating field.
I visit customers and do not show my address. What should I do?
Tick the service-area box. The generator then leaves out your street address and postcode, keeps your town, region and country, and lets you list the areas you cover. Use the same approach you use on your Google Business Profile.
Where do I put the code, and do I need one block per location?
Paste it into the head section of the page that represents the business, usually your homepage or contact page. If you have several locations, give each its own page and its own block with that location's details.
Will schema markup improve my rankings?
Not directly. Schema helps Google understand and trust your business details, which supports your local presence, but it is not a ranking shortcut. Accurate details, a strong Google Business Profile, reviews and relevant pages still do the heavy lifting.
How do I check that my schema works?
Paste your page URL or the code into Google's Rich Results Test, then check it in the Schema.org validator. Fix anything marked as an error. Warnings about optional fields are fine to ignore if the information does not apply to you.
Want a second pair of eyes on your local SEO?
I am a freelance SEO consultant who helps small businesses in the US, UK and Canada show up in the map pack. If your schema is in place but the calls are not coming, I will review your profile, citations and pages and tell you what to fix first. See my local SEO services.
Get a free local SEO review
