Local Business Schema Generator

Describe your business — address, phone, opening hours and location — and get free LocalBusiness structured data to paste into your website. No sign-up needed.
One line per schedule: Mo-Fr 09:00-18:00 · a lunch break: Mo-Fr 09:00-13:00, 14:00-18:00 · Sa 24h · Su closed.
For businesses that go to their customers: cities, regions or ZIP codes.

JSON-LD code

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "LocalBusiness",
  "name": "Acme Coffee Roasters",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "12 Main Street",
    "addressLocality": "Springfield",
    "addressRegion": "IL",
    "postalCode": "62701",
    "addressCountry": "US"
  },
  "openingHoursSpecification": [
    {
      "@type": "OpeningHoursSpecification",
      "dayOfWeek": [
        "Monday",
        "Tuesday",
        "Wednesday",
        "Thursday",
        "Friday"
      ],
      "opens": "07:00",
      "closes": "18:00"
    },
    {
      "@type": "OpeningHoursSpecification",
      "dayOfWeek": "Saturday",
      "opens": "08:00",
      "closes": "12:00"
    },
    {
      "@type": "OpeningHoursSpecification",
      "dayOfWeek": "Saturday",
      "opens": "13:00",
      "closes": "16:00"
    }
  ]
}
</script>
<!-- Created with Elfsight: https://elfsight.com/tools/local-business-schema-generator/ -->

Add the street, city and phone — exactly as on your Google Business Profile, so search engines can match them.

  1. Click Copy code above to copy it.
  2. Open the page’s HTML file or the template every page uses.
  3. Paste the code inside <head>, before the closing </head>.
  4. Save and upload the page.

Use the same name, address and phone everywhere

Your business details appear in three places Google reads: your website, your structured data and your Google Business Profile. When they match exactly, it’s clear they all describe the same business.

  • Name. Google’s Business Profile guidelines ask for your real-world name, “as used consistently on your storefront, website, stationery.” No extra keywords or city names in the name.

  • Address. Write it the same way in all three places: same street spelling, unit number and postal code.

  • Phone. Use the number that reaches this location, with country and area code in the markup, for example +1-555-010-0100.

  • Website. In url, link the page for this location, not a generic one, and make sure it loads.

When something changes, like a move, a new number or a new name, update all three on the same day. Markup that disagrees with the visible page breaks Google’s structured data guidelines.

Opening hours: tricky cases

Hours go in openingHoursSpecification, as a list of entries. Each entry has days, an opening time and a closing time (hh:mm). See Google’s guide.

  • Lunch break. Add two entries for the same days: one for the morning (for example 09:00–13:00) and one for the afternoon (14:00–18:00).

  • Open 24 hours. Google’s rule: opens 00:00 and closes 23:59.

  • Closed days. Leave regular days off out of your hours. Google’s way to mark a whole day as closed is opens and closes both 00:00.

  • Open past midnight. Use a single entry, for example Saturday 18:00–03:00.

  • Seasonal hours and holidays. Add an entry with validFrom and validThrough dates (YYYY-MM-DD), for example summer hours or a closure over the holidays.

Put your regular hours in your Business Profile too. Google Maps and the business panel show the hours from your profile.

Service-area businesses

If you visit customers instead of having them come to you, like a plumber or a cleaning service, Google’s profile guidelines say to hide your address in your Business Profile and set a service area.

  • Google’s structured data guide still lists address as required. Mark up only the parts you show on your site, such as city, region, postal code and country.

  • List the places you serve in areaServed: city or region names, or a GeoShape. It’s a schema.org property that Google’s local business guide doesn’t mention, so treat it as extra detail, not a ranking switch.

  • Use one profile and one set of markup for your central base, not one per town you serve.

How to add local business schema

  1. Choose the business type

    Pick the closest type; the generic Local business works for anything else.

  2. Match your Google Business Profile

    Use the same name, address and phone as on your profile and other listings.

  3. Paste the code

    Add it to your home or contact page and test it with Google’s Rich Results Test.

Frequently asked questions

More SEO & Schema Tools

Meta Tag Generator

Title, description, Open Graph and Twitter tags in one go.Meta Tag Generator

Favicon Generator

Make favicons and app icons in every size from one image.Favicon Generator