Home » SEO Tools » Local Business Schema Generator

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

Use the tool

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.

How to Use This Tool

  1. Pick a business type: choose the closest type for the business.
  2. Enter name and address: use the real business name and full address.
  3. Add phone and hours: use the real phone number and real opening hours.
  4. Click Generate Schema: copy the output into the head of the business page.

Good Practice Tips

  • Use real details only: never invent an address, phone number or hours for a business that does not have them.
  • Keep details consistent: the name, address and phone in the schema should match other listings for the same business.
  • Update when details change: if hours or address change, update the schema on the same day.
  • Validate after pasting: use a structured data testing tool to confirm the output has no errors.

What Is LocalBusiness Schema

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.

Required and Recommended Properties

Google asks for two properties in LocalBusiness schema and recommends the rest. This table shows each one and whether this tool outputs it.

PropertyGoogle asks for itIn this tool
NameRequiredYes, business name field
AddressRequiredYes, street, city, region, postal code and country fields
TelephoneRecommendedYes, phone field
Opening hoursRecommendedYes, as plain text
Website URLRecommendedYes, website URL field
Geo coordinatesRecommendedNo, add latitude and longitude by hand after generating
Price rangeRecommendedNo, add a priceRange value by hand after generating
Social profilesRecommendedNo, add a sameAs list by hand after generating
Description and imageRecommendedNo, 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.

Field by Field Reference

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.

FieldWhat to enter
Business typePick 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 nameThe real trading name, exactly as customers see it on the shop front and on other listings.
Street addressThe full street address. Leave it blank if the business has no public address.
City, region, postal code, country codeThe town or city, the state or region, the postal code and the country code, for example Chicago, IL, 60601, US.
PhoneThe full phone number with country code, for example +1 312 555 0100.
Opening hoursOne 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 URLThe full URL of the business homepage, for example https://botixtech.com/.

Worked Example

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.

How to Add the Schema to Your Site

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.

Validation and Common Errors

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.

ErrorFix
Schema does not match the visible pageChange the schema values or the page text so both agree on name, address and phone.
Invented address or phoneRemove invented details. Use real details only, and leave a field blank if it does not exist.
Hours in the wrong formatKeep one line of plain text. Do not mix two formats in the same block.
Two LocalBusiness blocks on one pageKeep one block per page. A plugin and a pasted block can both output schema, so check for a duplicate.
Missing name or addressFill in both fields. These are the two required properties, so a block without them is incomplete.

Multiple Locations

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.

Service Area Business

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.

Frequently Asked Questions

Does LocalBusiness schema guarantee a local listing?

No. Valid schema makes a page eligible for richer local display, but search engines decide whether to show it for a given search.

Should I invent details for a business without a physical address?

No. Use real details only. Never invent an address, phone number or hours.

Where do I paste the generated schema?

Paste it inside the head section of the business homepage or contact page HTML.

Is my input uploaded to a server?

No. Everything runs in your browser on your own device, so your text never leaves your computer.

What details does Google require in LocalBusiness schema?

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.

Which business type should I pick?

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.

Can I add geo coordinates, price range or social profiles?

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.

What if my business has no public address?

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.

Why does the tool output opening hours as plain text?

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.

Can I add star ratings from my own customer reviews?

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.

↑