How to use the local business schema generator
- Select the business type from the dropdown (e.g. Restaurant, Store, Dentist).
- Enter the required details: business name, street address, city, region, postal code, country and phone number.
- Optionally add latitude and longitude, price range, opening hours for each day and social profile URLs.
- Copy the generated
<script>block and paste it into the<head>of your web page.
How the LocalBusiness JSON-LD is built
The output follows the schema.org LocalBusiness specification. Every script starts with the @context set to https://schema.org and the @type matching the business category you select. Google requires name and address (as a PostalAddress object) and recommends telephone, so the phone number is optional here but a note appears if you leave it out.
When you provide latitude and longitude, the generator nests them inside a GeoCoordinates object under the geo property. Opening hours use the schema.org openingHoursSpecification array, where each entry contains a dayOfWeek, opens and closes value formatted as HH:MM. For example, Monday 09:00 to 17:00 becomes:
{ "@type": "OpeningHoursSpecification", "dayOfWeek": "Monday", "opens": "09:00", "closes": "17:00" }
Social profile URLs are collected into a sameAs array. Search engines use this to associate your website with your verified social accounts.
Common schema.org business types
Choosing the most specific @type helps search engines understand your business. Here are frequently used subtypes of LocalBusiness:
| Type | Best for |
|---|---|
| Restaurant | Dine-in food service, cafes that serve meals |
| Store | Retail shops selling physical goods |
| Dentist | Dental practices and oral surgery clinics |
| AutoRepair | Mechanics, tire shops, oil change services |
| HairSalon | Barbers, hairdressers, beauty salons |
| Pharmacy | Retail pharmacies and drug stores |
| Hotel | Accommodation providers |
| GroceryStore | Supermarkets and convenience stores |
If none of the specific types fit, use the generic LocalBusiness type. You can always refine it later without breaking existing markup.
Where to place the JSON-LD script
Paste the generated <script type="application/ld+json"> block inside the <head> element of the relevant page. For a single-location business, the home page is the standard placement. If you operate multiple locations, create a separate page for each branch and embed the corresponding schema on that page.
Search engines read JSON-LD regardless of its position in the document, but placing it in the head keeps your HTML body clean. Avoid duplicating the same markup across every page unless all pages represent the exact same entity.
After publishing, verify the markup using Google's Rich Results Test or the Schema Markup Validator. These tools confirm that the syntax is correct and that all required properties are present.
Opening hours format explained
Schema.org supports two ways to express hours. This local business schema generator uses openingHoursSpecification because it is the structure Google documents and it can carry seasonal dates (validFrom and validThrough) that the older comma-separated string format cannot.
Each day requires an open time and a close time in 24-hour HH:MM format. If a business is closed on a given day, simply leave both fields empty for that day and the generator will omit it from the output. For a business open 24 hours, Google documents opens 00:00 with closes 23:59. A closing time after midnight, such as 03:00, is valid in the same entry as the opening time.
If you need to calculate total weekly operating hours for staffing purposes, an hours calculator can help sum the durations once you have the open and close times.
Avoiding common structured data mistakes
Several errors routinely cause search engines to ignore LocalBusiness markup. First, avoid a P.O. Box as the street address, because local business markup describes a place customers can visit. Second, ensure the phone number includes the international dialing prefix (for example, +1 for North America).
Third, do not stuff keywords into the name field. Use the name your customers see on your storefront. Fourth, if you provide geo coordinates, they must actually point to your address. Google recommends at least five decimal places so the pin lands on the right building.
Finally, keep the sameAs URLs limited to profiles you control. Do not list profiles that belong to other businesses. If you also need FAQ markup for your site, consider pairing this with a dedicated FAQ schema generator for question-and-answer content.
Worked examples
| Example | Input | Result |
|---|---|---|
| Coffee shop | Business type: CafeOrCoffeeShop; Business name: Joe's Coffee; Street address: 123 Main St; City: Springfield; State / Region: IL; Postal code: 62701; Country code: US; Phone number: +1-555-010-0123; Latitude: 39.7817; Longitude: -89.6501; Price range: $$; Monday open: 07:00; Monday close: 18:00; Tuesday open: 07:00; Tuesday close: 18:00; Wednesday open: 07:00; Wednesday close: 18:00; Thursday open: 07:00; Thursday close: 18:00; Friday open: 07:00; Friday close: 20:00; Saturday open: 08:00; Saturday close: 20:00 | Type: CafeOrCoffeeShop; Name: Joe's Coffee; Hours: Mo 07:00-18:00, Tu 07:00-18:00, We 07:00-18:00, Th 07:00-18:00, Fr 07:00-20:00, Sa 08:00-20:00; Coordinates: 39.7817, -89.6501 |
| Plumber | Business type: Plumber; Business name: Quick Fix Plumbing; Street address: 45 Oak Ave; City: Austin; State / Region: TX; Postal code: 73301; Country code: US; Phone number: +1-555-019-8765; Price range: $$$; Monday open: 08:00; Monday close: 17:00; Tuesday open: 08:00; Tuesday close: 17:00; Wednesday open: 08:00; Wednesday close: 17:00; Thursday open: 08:00; Thursday close: 17:00; Friday open: 08:00; Friday close: 17:00 | Type: Plumber; Name: Quick Fix Plumbing; Hours: Mo 08:00-17:00, Tu 08:00-17:00, We 08:00-17:00, Th 08:00-17:00, Fr 08:00-17:00 |
| Restaurant with socials | Business type: Restaurant; Business name: Bella Italia; Street address: 78 Elm Blvd; City: Miami; State / Region: FL; Postal code: 33101; Country code: US; Phone number: +1-555-012-3456; Latitude: 25.7617; Longitude: -80.1918; Price range: $$$; Monday open: 11:00; Monday close: 22:00; Tuesday open: 11:00; Tuesday close: 22:00; Wednesday open: 11:00; Wednesday close: 22:00; Thursday open: 11:00; Thursday close: 22:00; Friday open: 11:00; Friday close: 23:00; Saturday open: 11:00; Saturday close: 23:00; Sunday open: 12:00; Sunday close: 21:00; Social profiles (one per line): https://facebook.com/bellaitalia / https://instagram.com/bellaitalia | Type: Restaurant; Name: Bella Italia; Hours: Mo 11:00-22:00, Tu 11:00-22:00, We 11:00-22:00, Th 11:00-22:00, Fr 11:00-23:00, Sa 11:00-23:00, Su 12:00-21:00; Coordinates: 25.7617, -80.1918; Profiles: 2 |
FAQ
What is a local business schema generator?
It is a tool that produces JSON-LD structured data following the schema.org LocalBusiness specification. The output tells search engines your business name, address, phone number, hours and other details in a machine-readable format.
Which fields are required for LocalBusiness JSON-LD?
Google requires the business name and a postal address. This tool asks for the street, city, region, postal code and country so the address is complete. A telephone number, geo coordinates, opening hours, price range and social profiles are recommended but optional.
Can I use this schema generator for local businesses with multiple locations?
Yes. Generate a separate JSON-LD block for each location and place it on the corresponding landing page. Do not combine multiple addresses into a single LocalBusiness object.
What format should opening hours use?
Enter times in 24-hour HH:MM format, such as 09:00 for 9 AM and 17:30 for 5:30 PM. Leave a day blank if the business is closed. The generator converts these into schema.org openingHoursSpecification entries automatically.
Is the data sent to a server?
No. This localbusiness JSON-LD generator processes everything in your browser. Nothing you type is uploaded or stored.
How does this differ from a general schema markup generator?
A general-purpose tool covers many schema types like Article, Event or Product. This tool focuses exclusively on LocalBusiness and its subtypes, providing tailored fields for addresses, hours and geo coordinates without extra noise.
Should I validate the output before publishing?
Always test the generated script with a structured data testing tool such as the Rich Results Test. Validation catches typos in URLs, missing brackets or incorrect time formats before search engines crawl the page.
Is this the right schema generator for a local business website?
Yes. If you need a schema generator local business owners can use without writing code, this tool covers the name, address, phone, hours, coordinates and profile links and outputs a ready-to-paste script tag.