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 Implement?
Address
Map coordinates (optional)
Opening hours
Business name, street, city and country are required.
Business name, street, city and country are required.

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

FieldWhat it does
Business typeTells search engines the exact category, such as Restaurant or Plumber, which improves matching for local queries.
AddressConnects the page to a physical location, the core requirement of LocalBusiness rich results.
Opening hoursLets Google show “open now” and daily hours directly in search results.
Geo coordinatesPins the exact map position, useful when the street address is ambiguous.
Price rangeShows the $ to $$$$ indicator next to your business in results.
Social profilesLinks 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.

FAQ about the LocalBusiness schema generator

Is the LocalBusiness schema generator free?

Yes. It is completely free, with no registration and no limits. Fill in your business details, copy the code and use it on any site, including client projects.

Where should I put the code on my site?

Paste it in the HTML of your homepage or contact page, anywhere inside the page. On WordPress, switch to the WordPress option and the tool wraps the markup in a ready PHP snippet for your theme.

Which business type should I choose?

Pick the most specific type that matches your business, for example Dentist rather than the generic option. A specific type helps search engines match your business to relevant local searches.

Does this replace a Google Business Profile?

No. The two work together. Your Google Business Profile powers the map listing, while LocalBusiness schema confirms the same facts on your own website, which strengthens both.

How do I add opening hours for different days?

Each row covers a range of days with the same hours, for example Monday to Friday 9:00 to 18:00. Click Add hours to create another row for days with different hours, such as the weekend.

Is my business data sent anywhere?

No. The code is generated entirely in your browser. Nothing you type is sent to a server, saved or logged.