A free local business schema generator.

The short answer

This local business schema generator turns a short form into LocalBusiness JSON-LD you can paste into your page. Your details must match your Google Business Profile, and service-area businesses shouldn’t publish a home address, so that option leaves the street out. It runs in your browser, and schema alone won’t get you a rich result or better rankings.

Reviewed by Anubhav Gupta, Bespoke Devs · Updated

Use the local business schema generator

Nothing you type leaves your browser. The code updates as you go.

Before you paste this:

  • Your name, address and phone number must match your Google Business Profile exactly.
  • If you run a service-area business from home, don’t publish your home address. Google says to clear it from your profile too.
  • Only mark up what’s true and visible on the page.
How do customers reach you?
Your address
Opening hours (optional)
Leave a day blank to leave it out. Split shifts and public holidays aren’t covered, so add those by hand.
  • Add your business name, exactly as it appears on your Google Business Profile.
  • Add at least your suburb or city. Google lists address as a required property.
  • You said customers visit you, so add your street address.

Your code

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "LocalBusiness"
}
</script>
Add your business name and suburb or city to copy the code.

What goes in local business schema markup

This local business schema markup generator covers the properties below. Google lists name and address as required for its local business feature, and the rest as recommended or optional.

PropertyWhat to enterGoogle’s listing
nameYour real trading name, with no added keywordsRequired
addressA postal address. See the service-area section belowRequired
telephoneA number customers can callRecommended
urlThe page or site for this businessRecommended
openingHoursSpecificationYour real hoursRecommended
priceRangeA rough range, such as $$Recommended
areaServedPlaces you really work inNot listed by Google, but valid on schema.org
sameAsYour official profile pagesNot listed by Google, but valid on schema.org

If you work from home or travel to customers

Google’s Business Profile help says a home-based business, such as a plumber working from a home address, should clear the address from its profile. Don’t undo that privacy by putting it in your code.

  • Choose “I go to customers”The street field goes away, and the code keeps only your suburb, state, postcode and country if you enter them. Use a general area that you’re comfortable publishing.
  • List real service areasOnly add places you actually serve. The areas are for accuracy, and listing more won’t make you appear in more places.
  • Know the trade-offGoogle lists address as required for its local business feature, and that page doesn’t cover service-area businesses. A partial address is valid schema.org markup, but it may not qualify for that feature, which is a fair price for keeping your home private.
  • If customers visit you tooChoose “Both” only if the location is staffed and can receive customers during your posted hours, which is the test Google sets for showing an address with a service area.

How to use the code

  1. 1Compare it with your profileCheck the name, address and phone against your Google Business Profile, character by character.
  2. 2Paste it into the pageAdd it to the page it describes, in the head or body. Most site builders have a custom code option.
  3. 3Test itUse the Schema validator and Google’s Rich Results Test, then run our local page checker.

Common questions

  1. Yes, with no signup. It runs in your browser, so we never see what you type. Only anonymous usage events are recorded.

  2. We can’t promise that, and neither can anyone else. Schema describes your business to machines, and it doesn’t guarantee a rich result or a higher ranking.

  3. The most specific one that’s true, which is what Google recommends. If nothing fits, use the general option.

  4. Add it where the page is really about the business, such as your homepage or contact page. Each location with its own address should have its own details. Don’t repeat one address on pages for places you have no office.

  5. This tool leaves them out on purpose. Google says review markup is only recommended for sites that capture reviews about other local businesses.

  6. Split shifts, public holiday hours, geo coordinates and menus. You can add those by hand, using schema.org as your guide.

Keep reading

Free audit

Find the local pages your website is missing.

We review your website, services and service areas, then show you which pages to build first and what may block indexing.

No obligation. Response within 24 hours.