Free Local Business Schema Generator
Create valid LocalBusiness JSON-LD in minutes with this free local business schema generator, complete with opening hours, geo coordinates, sameAs profiles and instant validation.
What is local business schema?
Local business schema is structured data, usually written in JSON-LD, that uses the Schema.org LocalBusiness type to describe a business’s name, address, phone, opening hours, location and profiles in a machine-readable format. It helps Google and other search engines understand and display accurate business information.
Search engines already read your page text, but structured data removes ambiguity. It states exactly which phone number is yours, which hours apply on Saturday and where your front door is on the map. Google lists LocalBusiness among its supported structured data types and uses it to understand business details, while AI search experiences and answer engines benefit from the same clear entity information.
Schema markup does not guarantee rich results or a higher Google Maps ranking. Its value is accuracy and clarity: it reinforces the NAP details on your website and links your site to your Google Business Profile, social profiles and directory listings through sameAs.
Features
More options than most free schema generators, with checks built on Google’s documented guidelines.
From Dentist and Plumber to Restaurant, Attorney, RealEstateAgent and HVACBusiness, all valid Schema.org LocalBusiness subtypes.
Set hours per day, mark 24-hour days, copy Monday to weekdays, and let the tool group identical days into clean openingHoursSpecification objects.
Add latitude, longitude and a hasMap link so search engines can pin your location precisely.
Connect your social and directory profiles, and list the cities or regions a service area business covers.
Errors and recommendations appear as you type, including missing address fields, invalid URLs, coordinate precision and country code format.
Copy the ready-to-paste script tag, download a .json file or an .html snippet, then test it in Google’s Rich Results Test.
How to use the local business schema generator
You can generate and install your markup in under ten minutes.
Pick your business type
Choose the most specific Schema.org subtype. Use generic LocalBusiness only if nothing fits.
Enter your NAP and details
Fill in the name, address, phone and URL exactly as they appear on your website and Google Business Profile, then add images, geo coordinates and profiles.
Set opening hours
Tick the days you are open, set times, and use the 24h option where needed. Review warnings and fix any errors.
Install and test
Copy the code into the head or body of the matching location page, publish, then run the Rich Results Test and the Schema.org validator.
Which LocalBusiness properties does Google require?
Google’s local business documentation lists two required properties and several recommended ones. This generator flags each one.
| Property | Status | Tip |
|---|---|---|
| name | Required | Your real-world business name, no keyword stuffing. |
| address | Required | A complete PostalAddress with street, city, region, postcode and country. |
| url | Recommended | The specific location page, not just the homepage, for multi-location businesses. |
| telephone | Recommended | Main number with country and area code. |
| geo | Recommended | Latitude and longitude with at least five decimal places. |
| openingHoursSpecification | Recommended | Hours for each day; omit closed days. |
| image | Recommended | Crawlable photos of the business. |
| priceRange | Recommended | Short text such as $$ or a price band, under 100 characters. |
Where should you add local business schema?
Place the markup on the page that represents the location, usually the homepage for a single-location business or each city page for multi-location SEO. Use one LocalBusiness block per physical location, and make sure every value matches the visible content on that page.
Service area businesses
If you serve customers at their address and hide your street address on Google Business Profile, you can still include your business address in schema, and use areaServed to list the cities and regions you cover.
How do you write opening hours in schema?
Opening hours use the openingHoursSpecification property. Each entry contains dayOfWeek, opens and closes, with times in 24-hour hh:mm format. Days that share the same hours can be listed together in one entry, which keeps the markup short and readable. This generator does that grouping for you automatically.
- Open 24 hours: use opens 00:00 and closes 23:59 for that day.
- Closed days: simply leave the day out of the markup.
- Open past midnight: a closing time earlier than the opening time, such as 18:00 to 02:00, means the business closes the next morning.
- Holiday hours: add a separate entry with validFrom and validThrough dates, and update your Google Business Profile special hours at the same time.
Whatever hours you mark up should match the hours shown on the page and on your Google Business Profile, so customers and search engines always see the same information.
Common schema mistakes to avoid
- Mismatched NAP: markup that differs from your page or Google Business Profile undermines NAP consistency.
- Self-serving reviews: do not add aggregateRating for reviews you collected about your own business; Google does not show review stars for them.
- Wrong type: using Organization or generic LocalBusiness when a specific subtype exists.
- Hidden content: marking up hours or services that visitors cannot see on the page.
- Duplicate blocks: several plugins outputting conflicting LocalBusiness markup. Check your page source after installing.
Structured data works best as part of a complete local SEO strategy that includes Google Business Profile optimization, consistent local citations and steady online reviews.
Frequently asked questions
Is LocalBusiness schema a ranking factor?
Not directly. Structured data helps search engines understand your business and can make you eligible for enhanced results, but relevance, distance and prominence remain the main local ranking factors.
Is JSON-LD better than Microdata?
Google supports both, but recommends JSON-LD because it is easier to add and maintain. It sits in a single script tag and does not change your visible HTML.
Can I use this schema on WordPress?
Yes. Paste the code into a Custom HTML block on the location page, or into a header code plugin limited to that page. Disable other plugins’ LocalBusiness output to avoid duplicates.
How do I find my latitude and longitude?
Open Google Maps, right-click your business pin and click the coordinates at the top of the menu to copy them. Paste the first number as latitude and the second as longitude.
How do I test my local business schema?
Use Google’s Rich Results Test to check eligibility and errors, and validator.schema.org to check general Schema.org validity. After publishing, monitor Google Search Console.
Is my data stored?
No. The generator runs fully in your browser and never sends your business information to any server.
Related free tools
Last updated: · By AM Digital Marketing Agency SEO Team
Want expert help with local SEO?
Our team can implement local business schema across every location page, fix conflicting plugins and connect your site to your Google Business Profile.
Get a free consultation