Local Business Schema Generator
Generate LocalBusiness JSON-LD with address, opening hours and geo coordinates, using only your real details.
Everything you type here is processed on your own device. No input is sent to a server, logged, or stored.
What the Local Business Schema Generator does
The local business schema generator on this page will generate LocalBusiness JSON-LD with address, opening hours and geo coordinates, using only your real details. Paste your text in, pick the options you need, and copy the result straight back out. It is most often used for adding LocalBusiness markup to a business website. More utilities in this area are collected on FreeToolsWorld.org.
How to use it
- Pick the most specific business type that fits.
- Fill in the name, address, phone and website exactly as they appear on your Google Business Profile.
- Enter opening hours one rule per line, such as "Mo-Fr 09:00-17:30".
- Validate in the Rich Results Test, then check the details match your Business Profile.
How it works
LocalBusiness markup tells search engines the structured facts about a physical place: where it is, how to contact it, when it is open. For local search, the markup matters less than the Google Business Profile, and the most important thing about it is consistency — the name, address and phone number in your markup should match the profile character for character.
Pick the most specific type that fits. Restaurant, Store and MedicalClinic are all subtypes of LocalBusiness, and the more specific the type, the more Google can infer. The full hierarchy on schema.org has over a hundred business subtypes.
Opening hours use the OpeningHoursSpecification form rather than the older openingHours string, because the structured form handles multiple ranges in a day, seasonal variations and special closures. Days where you are closed are simply omitted.
Geo coordinates are worth including if you have accurate ones, particularly for a business that is hard to place from the address alone. Coordinates that disagree with the address are worse than none.
No aggregateRating is generated. Self-serving review markup — a business publishing structured data about reviews of itself — has been disallowed since 2019, and for a local business the ratings that appear in search come from the Google Business Profile rather than from your markup.
When to use it
- Adding LocalBusiness markup to a business website.
- Generating opening hours structured data.
- Checking which fields a LocalBusiness entry expects.
- Replacing hand-written JSON-LD that may be invalid.
Common mistakes to avoid
- Using the generic LocalBusiness type when a specific subtype exists.
- Letting the name, address or phone differ from the Google Business Profile.
- Adding review markup for the business itself, which is disallowed.
Frequently asked questions
Which LocalBusiness type should I use?
The most specific one that fits — Restaurant, Store, MedicalClinic and so on. Schema.org has over a hundred subtypes, and a more specific type tells search engines more.
Does LocalBusiness schema affect local rankings?
Less than the Google Business Profile does. What matters most is that the name, address and phone in your markup match the profile exactly.
Can I add star ratings to local business markup?
No. Self-serving review markup has been disallowed since 2019. Local ratings in search come from your Google Business Profile.