Home » SEO Tools » Local Business Schema Generator
Create LocalBusiness structured data for a local business, with its name, address, phone and opening hours in one clean block.
Last updated 13 November 2026
LocalBusiness structured data describes a local business in a format search engines can read. It states the business name, address, phone and opening hours, so local search results can show that information clearly.
This tool builds that data from your inputs. Paste it into the head of the business homepage or contact page, and make sure the values match the visible page and your real business details.
LocalBusiness schema is structured data that describes a local business in a format search engines can read. It gives the business name, address, phone and opening hours in named fields, so a search engine does not have to guess which text on the page is the address and which text is the phone number. When the values match the visible page, the business becomes eligible for richer local display in search results. Schema never guarantees a listing or a place in the map pack on its own. It is one signal among many, and it works best when the business details are real, complete and consistent everywhere they appear online.
This tool builds LocalBusiness schema from the details you type. It runs in your browser and the output is a JSON-LD block you paste into the head of your business homepage or contact page. The FAQ Schema Generator works the same way for questions and answers, and the Breadcrumb Schema Generator builds the trail that shows where a page sits on your site.
Google asks for two properties in LocalBusiness schema and recommends the rest. This table shows each one and whether this tool outputs it.
| Property | Google asks for it | In this tool |
|---|---|---|
| Name | Required | Yes, business name field |
| Address | Required | Yes, street, city, region, postal code and country fields |
| Telephone | Recommended | Yes, phone field |
| Opening hours | Recommended | Yes, as plain text |
| Website URL | Recommended | Yes, website URL field |
| Geo coordinates | Recommended | No, add latitude and longitude by hand after generating |
| Price range | Recommended | No, add a priceRange value by hand after generating |
| Social profiles | Recommended | No, add a sameAs list by hand after generating |
| Description and image | Recommended | No, add a description and an image URL by hand after generating |
Add by hand means open the generated block, paste the extra property inside it, and check the commas still line up. A field left blank is left out of the output. The tool never fills a blank field with a guess.
The tool has a type dropdown and nine inputs. Every field is optional except the business name, which the tool asks for before it generates anything.
| Field | What to enter |
|---|---|
| Business type | Pick the closest type: LocalBusiness, Store, Restaurant or HomeAndConstructionBusiness. One older type was removed from this list because schema.org deprecated it. A restaurant should pick Restaurant and a shop should pick Store. For most other local businesses, LocalBusiness is the right choice. |
| Business name | The real trading name, exactly as customers see it on the shop front and on other listings. |
| Street address | The full street address. Leave it blank if the business has no public address. |
| City, region, postal code, country code | The town or city, the state or region, the postal code and the country code, for example Chicago, IL, 60601, US. |
| Phone | The full phone number with country code, for example +1 312 555 0100. |
| Opening hours | One line of plain text, for example Monday to Friday 09:00 to 17:00. The tool outputs the legacy openingHours text property, not the fuller openingHoursSpecification format. |
| Website URL | The full URL of the business homepage, for example https://botixtech.com/. |
Here is what the tool outputs for a small business. The inputs are name BotixTech Tools, street 123 Main Street, city Chicago and phone +1-312-555-0100, with type LocalBusiness. Region, postal code, country, hours and website were left blank, so they are absent from the output rather than filled with placeholders.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "LocalBusiness",
"name": "BotixTech Tools",
"address": {
"@type": "PostalAddress",
"streetAddress": "123 Main Street",
"addressLocality": "Chicago"
},
"telephone": "+1-312-555-0100"
}
</script>
Copy the whole block, including the script tags, and paste it into the head of the business page. Then check that the name, street and city in the block match the visible text on that page word for word.
Plain HTML is the simplest case: paste the block inside the head section, before the closing head tag, on the business homepage or contact page. On WordPress, paste it into the head with a header code plugin or through your theme header file. If Yoast SEO or Rank Math already outputs LocalBusiness schema for the same page, use one source only, not both, so the page never carries two blocks that disagree. On Shopify, paste it into theme.liquid inside the head section. On Wix, use the custom code area for the homepage head. On Squarespace, use Code Injection in the site header. Wherever you paste it, keep the schema on the page that shows the same business details in visible text.
This tool does not check your input, so validate the output after you paste it. Paste the page URL into the Rich Results Test and the Schema Validator and fix any error either tool reports before you publish.
| Error | Fix |
|---|---|
| Schema does not match the visible page | Change the schema values or the page text so both agree on name, address and phone. |
| Invented address or phone | Remove invented details. Use real details only, and leave a field blank if it does not exist. |
| Hours in the wrong format | Keep one line of plain text. Do not mix two formats in the same block. |
| Two LocalBusiness blocks on one page | Keep one block per page. A plugin and a pasted block can both output schema, so check for a duplicate. |
| Missing name or address | Fill in both fields. These are the two required properties, so a block without them is incomplete. |
One LocalBusiness block describes one location. A business with three branches needs three blocks, one on each branch page, each with that branch name, address and phone. Do not put all three addresses in one block, and do not repeat the same block on every page. Each branch page should show its own address in visible text too, so the schema and the page agree.
Some businesses visit customers and have no shop or office the public can visit, such as a plumber or a roofing contractor. For a service area business, leave the street address blank and keep the city, region, postal code and country, so search engines still know the area served. The tool has no areaServed field, so add areaServed by hand after generating, listing the towns or areas the business serves. Never invent a street address for a business with no public address. A fake address can mislead customers and can cause problems with local listings.
No. Valid schema makes a page eligible for richer local display, but search engines decide whether to show it for a given search.
No. Use real details only. Never invent an address, phone number or hours.
Paste it inside the head section of the business homepage or contact page HTML.
No. Everything runs in your browser on your own device, so your text never leaves your computer.
Name and address are the two required properties. Phone, opening hours and website URL are recommended, and this tool outputs all three when you fill them in. Geo coordinates, price range, social profiles, description and image are also recommended, but this tool does not output them yet. Add them by hand after generating if you have them.
Pick the closest type the tool offers: LocalBusiness, Store, Restaurant or HomeAndConstructionBusiness. A restaurant should pick Restaurant and a shop should pick Store. For most other local businesses, LocalBusiness is the right choice. One older type was removed from the list because schema.org deprecated it.
Not in the tool yet. Generate the schema first, then add geo with latitude and longitude, priceRange with a short range, and sameAs with a list of profile URLs, by hand inside the JSON-LD block. Check the commas still line up and validate the result before publishing.
Leave the street address blank and keep the city, region, postal code and country, so search engines still know the area you serve. Add areaServed by hand after generating. Never invent a street address for a business with no public address.
The tool outputs the legacy openingHours text property, for example Monday to Friday 09:00 to 17:00. Google documents a fuller format called openingHoursSpecification, which can express each day, closed days and 24 hour opening. That format is not built into this tool yet. If you need it, add an openingHoursSpecification block by hand after generating.
No. Google does not accept aggregate ratings that come from a business own reviews, so adding them to your own schema can cause problems. Leave reviews and ratings out of the schema this tool generates.