← Back to Free Tools
Free Tool, No Sign-Up Required

LocalBusiness Schema Generator

Fill in your business details and this builds the structured data code that tells Google and AI assistants who you are, where you work and when you are open. Copy it, paste it into your site, and stop leaving your most important details to guesswork.

The basics

Pick the most specific one that fits. It tells Google what you do, not just that you exist.

Where you are

Separate with commas.

Work from home and would rather not publish your address? Leave the street blank and fill in the town and postcode. That is enough for Google to place you locally.

When you are open

Untick a day to mark it closed.

Your other profiles

These connect your website to your other listings, which helps Google work out they are all the same business. Your Google Business Profile link is the most valuable one here.

There is no star rating field, on purpose. Google does not allow a business to mark up its own review score, and doing it can earn a penalty rather than stars. Real ratings come from your Google Business Profile.

Your code

Copy all of this, including the script tags, and paste it into the head section of your home page.

Not sure where this goes on your site?

Pasting code into the head of a website puts a lot of people off, and getting it in the wrong place means it quietly does nothing. If you would rather it was just done properly, along with everything else holding your visibility back, that is what the Visibility Tune-Up covers.

Telling Google what you are, instead of hoping

Most of a website is written for people, which means a search engine has to interpret it. It reads "open till six" in a sentence and has to work out whether that is every day, or weekdays, or just that one bank holiday. Structured data removes the guessing. You state your hours in a fixed format and there is nothing left to interpret.

For a business that serves a particular area this matters more than almost anything else you can do to a page. It is the difference between being a website that mentions Bolton and being a business that Google understands to operate in Bolton, and only the second one competes properly in local results and map listings.

It has become more important again with AI assistants. When someone asks for a tradesperson in their town, the assistant reads what it can and prefers what is stated plainly. A business that has spelled out its details in a machine-readable block gets quoted. One that left it buried in a paragraph often does not.

Frequently asked questions

What is LocalBusiness schema and do I need it?

It is a block of code that states what your business is, where it works and when it is open, in a format search engines read directly rather than guessing at. If you serve customers in a particular area, it is one of the highest-value things you can add, because it is what puts you in the running for local results.

Where do I paste this code?

Into the head section of your home page, before the closing head tag. On WordPress most SEO plugins have a field for custom head code, and on Wix, Squarespace or Shopify look for custom code or header injection in the settings. Add it once on the home page, not on every page.

Why is there no field for my star rating?

Deliberately left out. Google does not allow a business to mark up its own average review score, because nothing stops anyone typing in five stars. Self-serving review markup is not eligible for star ratings and can attract a manual penalty. Real stars come from your Google Business Profile instead.

Which business type should I choose?

The most specific one that fits. Plumber beats LocalBusiness, because it tells Google exactly what you do rather than just that you are a business. If nothing on the list matches your trade, ProfessionalService is the safe general choice for a service business.

How do I check it worked?

Paste the code in, publish the page, then run it through our free schema checker. It will tell you whether the block parses, whether Google can see it as a local business, and what is still missing. Google's own Rich Results Test is worth running too.

Once it is live, check it

Broken structured data fails silently, so it is worth confirming rather than assuming.