How to use this generator
- Pick your business type. Use the most specific subtype that applies. A dental office should be
Dentist, not genericLocalBusiness, because Google maps specific types to different features. - Fill in name, URL, and address. These are the fields that anchor your business as a real-world entity. Match them exactly to what shows on your Google Business Profile.
- Add hours, geo coordinates, and phone. Optional, but they make the markup more complete and give search engines more to work with.
- Copy the JSON-LD and paste it into the
<head>of the page the business lives on, usually your homepage or contact page. - Test before you ship. Run it through the Rich Results Test and the Schema.org Validator using the links above the output.
What is LocalBusiness schema?
LocalBusiness schema is structured data that tells search engines the concrete facts about a physical business: its name, address, phone number, hours, and the type of business it is. It is built on the schema.org LocalBusiness vocabulary, and Google reads it to understand your business as an entity rather than just a page of text.
Schema markup is not a direct ranking factor. Google has been consistent on that point. What it does is remove ambiguity, so the search engine can match your pages to the right queries and, where eligible, show richer results. For local businesses that mostly means clearer entity understanding and better-formed Knowledge Panel and Maps data, not on-page star ratings (more on that below).
Where to put the code
Paste the generated <script type="application/ld+json"> block into the <head> section of the relevant page. On WordPress you can drop it into the header with a free plugin like WPCode, or paste it into a custom-HTML block if your SEO plugin (Yoast, Rank Math) supports custom JSON-LD. The body of the page works too, but the head is the common convention and keeps everything in one place.
One location vs. many
If you run a single location, put LocalBusiness markup on the page that holds your business information, typically the homepage or contact page. If you run several, the cleaner pattern is one Organization for the brand plus a separate LocalBusiness on each individual location page, with each location pointing back to the parent using parentOrganization. Switch this tool to Build a page graph mode to wire those relationships automatically, with a unique @id on every node.
About review stars
A common mistake is adding an aggregateRating to your own LocalBusiness markup expecting star ratings to appear in search. Since 2019, Google does not show review stars for self-serving reviews, that is, a business rating itself, including reviews pulled in through an embedded widget. The rating field is available in this tool, but use it only when genuine, visible reviews exist on the page. For star ratings tied to your business in Maps and the Knowledge Panel, focus on your Google Business Profile instead, which uses a separate mechanism that does not rely on your site's markup.
Frequently asked questions
Is this Local Business schema generator free?
Yes. It runs entirely in your browser, requires no signup, and has no usage limits. Generate markup for as many pages as you need.
Will LocalBusiness schema get me star ratings in Google?
Not from your own site. Google stopped showing self-serving review stars for LocalBusiness and Organization markup in 2019. Reviews and ratings tied to your business appear through your Google Business Profile, which is separate from on-page schema.
Which LocalBusiness type should I choose?
The most specific one that fits. If a subtype like Dentist, Restaurant, or AutoRepair describes your business, use it. Google associates specific subtypes with specific features, and a more precise type gives it clearer signals than the generic LocalBusiness.
Do I need a developer to add it?
No. Copy the generated code and paste it into your page's head, or hand it to whoever manages your CMS. Most SEO plugins accept custom JSON-LD if you would rather not touch template files.
How do I know it's working?
Use the Rich Results Test and Schema.org Validator linked above the output. After the page is live, check the Enhancements and URL Inspection reports in Google Search Console to confirm Google has read your structured data.