spyc.ai

Free tool

Local Business Schema Generator

Create LocalBusiness JSON-LD with address, phone, opening hours and map coordinates.

How it works

What is the Local Business Schema Generator?

The Local Business Schema Generator is a free tool that writes LocalBusiness structured data in JSON-LD. Choose a business type, enter the name, address, phone, opening hours and coordinates, and copy the code into your site. It builds the nested PostalAddress and GeoCoordinates blocks for you and warns when the name or street address is missing.

How to use the Local Business Schema Generator

  1. Pick the business type closest to yours, such as Restaurant or Dentist.
  2. Enter the name, website, phone and full address.
  3. Add opening hours, one range per line, and the map coordinates.
  4. Copy the code, paste it into your home or location page, and validate it.

What is local business schema?

Local business schema is structured data that describes a business with a physical location or service area, using the schema.org LocalBusiness type or a more specific subtype. It states the name, address, phone number, opening hours and location in a form machines read exactly.

Google uses it alongside your Google Business Profile to understand who you are and where. It is also one of the plainest sources an AI assistant has when someone asks for a dentist or a restaurant in a named place.

Which properties does local business schema need?

Google requires two: name and address. It recommends telephone, url, geo, openingHoursSpecification, priceRange and image, and for food businesses servesCuisine and menu.

Use the most specific type that fits. Dentist says more than LocalBusiness, and schema.org has subtypes for most trades. If nothing fits, LocalBusiness is correct, not a fallback to apologise for.

Does local business schema improve local rankings?

Not directly. Google has said structured data is not a ranking factor. Local pack rankings come mostly from your Google Business Profile, reviews, distance and relevance.

What the markup does is remove doubt. When the name, address and phone on your site match your profile and your directory listings exactly, search engines and AI systems can merge them into one confident record. Mismatched details are the usual reason a business shows the wrong hours or an old address.

How do I write opening hours in schema?

This generator writes the compact openingHours form: two-letter days, then a 24-hour range, such as Mo-Fr 09:00-17:00. Put each different range on its own line, for example a second line Sa 10:00-14:00. Leave closed days out.

Google's documentation prefers the longer openingHoursSpecification objects, and reads both. If you need seasonal hours or hours past midnight, write the specification form by hand.

What if my business has several locations?

Give each location its own page with its own LocalBusiness block, each with that branch's address, phone and hours. Put Organization schema on the home page for the company as a whole. One block listing five addresses is not valid, and it leaves no way to tell which hours belong to which branch.

Questions

Where do I put local business schema?
On the page that represents the location: the home page for a single-location business, or each location page for a chain. It does not need to be on every page.
Can a service-area business without a storefront use it?
Yes. Use the address you registered with Google Business Profile, and add an areaServed property by hand to name the towns or regions you cover.
How do I find my latitude and longitude?
Right-click your location in Google Maps and click the coordinates at the top of the menu to copy them. Use at least five decimal places.
Can I add my own reviews to local business schema?
You can mark them up, but Google does not show review stars for reviews a business hosts about itself. It treats them as self-serving.
Is this schema generator free?
Yes, with a free spyc.ai account. The code is built in your browser as you type, so nothing you enter is sent to a server.

Technical SEO Tools

More in Technical SEO Tools

Opengraph Viewer

Paste a URL and see the card it produces when someone shares it — title, description, image.

View Opengraph

Open Graph Generator

Write the Open Graph tags, preview the card, copy the markup.

Generate Open Graph tags

Robots.txt Checker

Fetch any site's robots.txt and test one URL against it: allowed, or blocked by which rule.

View robots.txt

Ready when you are

Before your next buyer asks AI about you, ask AI about yourself

One check, four engines, about twenty seconds. We show you the answers before we ask for anything.