A free local business schema generator.
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.
- 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.
| Property | What to enter | Google’s listing |
|---|---|---|
| name | Your real trading name, with no added keywords | Required |
| address | A postal address. See the service-area section below | Required |
| telephone | A number customers can call | Recommended |
| url | The page or site for this business | Recommended |
| openingHoursSpecification | Your real hours | Recommended |
| priceRange | A rough range, such as $$ | Recommended |
| areaServed | Places you really work in | Not listed by Google, but valid on schema.org |
| sameAs | Your official profile pages | Not 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
- 1Compare it with your profileCheck the name, address and phone against your Google Business Profile, character by character.
- 2Paste it into the pageAdd it to the page it describes, in the head or body. Most site builders have a custom code option.
- 3Test itUse the Schema validator and Google’s Rich Results Test, then run our local page checker.
Common questions
Yes, with no signup. It runs in your browser, so we never see what you type. Only anonymous usage events are recorded.
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.
The most specific one that’s true, which is what Google recommends. If nothing fits, use the general option.
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.
This tool leaves them out on purpose. Google says review markup is only recommended for sites that capture reviews about other local businesses.
Split shifts, public holiday hours, geo coordinates and menus. You can add those by hand, using schema.org as your guide.
Keep reading
- Location pagesWhen location pages help local SEO, and how to keep them useful.→
- Local page checkerCheck one service or suburb page for the basics a local page needs.→
- Service area vs location pagesWhich page type suits your business, using Google’s rules.→
- Local page plannerTurn your services and areas into a prioritised page plan.→
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.