ranknexusSEO, AI search & ads

Free tool / LocalBusiness Schema Generator

Local business schema, ready to paste.

Generate LocalBusiness structured data in JSON-LD: your business type, address, phone, opening hours and profile links, matched to what customers see on your site and your Google Business Profile. Copy it into your homepage or contact page.

Free, with no sign-up and no email.

Reviewed by M. NoumanCo-founder, RankNexus · Updated 17 October 2026

LocalBusiness JSON-LD
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "LocalBusiness"
}
</script>
  • Add a street address and town or city that match your Google Business Profile.
  • Add a phone number customers can call.
  • Add the business name exactly as it appears on your site.
  • Add your website address (https://…).

After publishing, check the page with Google's Rich Results Test and the Schema.org validator.

The guide

LocalBusiness schema: an example and the properties that matter.

A LocalBusiness schema example

This is the kind of code the generator writes, here for a fictional dental practice. The opening hours use the openingHoursSpecification format that Google documents.

LocalBusiness JSON-LD for a fictional dentist
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Dentist",
  "name": "Harbourline Dental",
  "url": "https://harbourlinedental.example",
  "telephone": "+1 303 555 0188",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "120 Market St",
    "addressLocality": "Denver",
    "addressRegion": "CO",
    "postalCode": "80202",
    "addressCountry": "US"
  },
  "openingHoursSpecification": [{
    "@type": "OpeningHoursSpecification",
    "dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"],
    "opens": "08:00:00",
    "closes": "18:00:00"
  }],
  "priceRange": "$$"
}
</script>

Which properties matter

Google requires two properties for LocalBusiness markup and recommends several more:

LocalBusiness properties, from Google's documentation
PropertyRequired?Note
nameRequiredYour business name, as on your Google Business Profile.
addressRequiredInclude as many parts as you can: street, town, region, postcode, country.
telephoneRecommendedThe main number customers should call.
urlRecommendedThe page for this location.
openingHoursSpecificationRecommendedDays with opening and closing times.
geoRecommendedLatitude and longitude, to at least five decimal places.
priceRangeRecommendedA relative range, such as $$, or a numeric range.
aggregateRatingOnly for review sitesGoogle recommends it only for sites that collect reviews about other businesses.

Use the most specific business type

Google asks for the most specific LocalBusiness type that fits, such as Dentist, LegalService or AccountingService rather than plain LocalBusiness. If more than one fits, list them as an array. Pick a type in the generator and it is used for the @type.

Service-area businesses and multiple locations

  • Several locations: give each one its own page with its own LocalBusiness markup, address and hours.
  • Departments with their own hours or phone numbers: Google supports nesting them as departments, named “{store name} {department name}”.
  • Service-area businesses without a public street address: include the town, region and country you show publicly, and list the areas you serve on the page itself.

Match your Google Business Profile

Search engines and AI assistants compare your markup with your Google Business Profile and directory listings. Use the same name, address, phone number and hours everywhere, and update all of them when anything changes. Local SEO covers the profile, reviews and location pages; the Schema Markup Generator writes Organization markup for your homepage.

The short answers

What you need to know.

What is LocalBusiness schema?

LocalBusiness schema is structured data that states your business name, type, address, phone number, opening hours and website in a format search engines read reliably. A more specific type, such as Dentist or LegalService, describes you more precisely.

Does LocalBusiness schema help local SEO?

It helps search engines confirm your details. Your Google Business Profile, reviews and consistent listings matter more for local results, so make sure the markup matches them exactly.

How do I write opening hours?

Type them in the short form, one range per line or separated by commas: Mo-Fr 09:00-17:00, Sa 10:00-14:00. The generator turns them into the openingHoursSpecification format Google documents, and tells you if a line can't be read. Leave the field empty if your hours vary.

Questions

LocalBusiness Schema Generator, answered.

What is local schema?

Local schema usually means LocalBusiness structured data: markup that states a business's name, type, address, phone number and opening hours for search engines. It should match your Google Business Profile exactly.

Which page should have LocalBusiness schema?

Your homepage or contact page, wherever the address and phone number are shown. If you have several locations, give each location page its own markup.

Should I use LocalBusiness or a specific type?

Use the most specific schema.org type that fits, such as Dentist, LegalService or Restaurant. It is still a LocalBusiness to search engines.

Can a service-area business use it without a public address?

Yes, but only include an address you show publicly. Many service-area businesses leave the street out and list the areas they serve on the page instead.

What are sameAs links?

Links to your official profiles, such as your Google Business Profile, LinkedIn, Facebook or a directory listing. They help search engines and AI assistants connect those profiles to your business.

Is my information stored anywhere?

No. The code is built in your browser, and nothing you type is sent to us.

A useful next conversation

Want to know what AI says about your business?

The tools show what is on your site. Our free audit looks at how ChatGPT, Google and Perplexity describe you, and what we would fix first. A specialist sends a recorded walkthrough within 2 business days.

WhatsApp us