Create valid LocalBusiness structured data for any business
A LocalBusiness schema generator is a free online tool that builds the JSON-LD structured data code that tells Google and AI engines who your business is, where it is located and when it is open. Pick the business type, fill in the name, address, opening hours and contact details, and copy the ready markup into your site. The code updates live as you type, and everything runs in your browser with no registration.
How to create LocalBusiness schema
- Choose the business type that best matches your business, for example Restaurant, Dentist or Store.
- Fill in the business name, address and country code. These four fields are required for valid markup.
- Add opening hours, phone, website, map coordinates and social profiles to make the markup richer.
- Copy the generated code into your page, or use the WordPress option to get a ready PHP snippet.
- Validate the result with the Test with Google button before you publish.
What each field adds to your markup
| Field | What it does |
|---|---|
| Business type | Tells search engines the exact category, such as Restaurant or Plumber, which improves matching for local queries. |
| Address | Connects the page to a physical location, the core requirement of LocalBusiness rich results. |
| Opening hours | Lets Google show “open now” and daily hours directly in search results. |
| Geo coordinates | Pins the exact map position, useful when the street address is ambiguous. |
| Price range | Shows the $ to $$$$ indicator next to your business in results. |
| Social profiles | Links your official profiles so engines connect the business to one identity. |
Common uses
- Marking up a clinic, law office or salon website so it appears correctly in local search.
- Helping a restaurant show opening hours and price range in Google results.
- Strengthening a Google Business Profile with matching structured data on the website.
- Giving AI assistants clean, machine readable facts about a business they can cite.
Tips for local business structured data
- Keep the name, address and phone identical to your Google Business Profile and site footer.
- Use the most specific business type available instead of the generic LocalBusiness.
- Place the markup on your homepage or contact page, not on every page of the site.
- Update the markup when your hours change, stale hours hurt trust in your listing.