Skip to content
Koit Academy

Local business schema generator

Your details

With the country code, as customers would dial it from abroad.

Two letters: US, GB, DE, AL.

Days Mo Tu We Th Fr Sa Su, a range or a list (Mo,We), then opens-closes in 24-hour time.

The details filled in are an example. Everything runs in this browser; nothing you type is sent anywhere or stored.

JSON-LD for the page

Plumber markup with 7 properties.

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Plumber",
  "name": "Example Plumbing Co.",
  "url": "https://www.example.com/",
  "telephone": "+1-303-555-0142",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "1200 Example Street, Suite 4",
    "addressLocality": "Denver",
    "addressRegion": "CO",
    "postalCode": "80202",
    "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"
    }
  ],
  "priceRange": "$$",
  "areaServed": [
    {
      "@type": "City",
      "name": "Denver"
    },
    {
      "@type": "City",
      "name": "Aurora"
    },
    {
      "@type": "City",
      "name": "Lakewood"
    }
  ]
}
</script>
  • Note: Use the same name, address and phone number as your Google Business Profile and your site’s contact page.
  • Note: No rating or review fields are included: Google does not use a business’s markup of its own reviews.

How to use it · free, no signup

How to use the Local Business Schema Generator

Enter the business details and opening hours to get LocalBusiness JSON-LD for the site, checked against the fields Google requires and recommends. Runs in your browser.

  1. 01

    Choose the type

    The most specific type that fits, such as Plumber or Restaurant.

  2. 02

    Enter the details

    Name, address and phone exactly as on your Google Business Profile, plus opening hours.

  3. 03

    Copy the script

    Paste it into the page that describes the business, usually the home or contact page.

What local business markup describes

LocalBusiness structured data states facts about a business in a form search engines can read without guessing: its name, address, phone number, opening hours and the area it serves. Google’s LocalBusiness documentation lists name and address as required, and telephone, url, geo coordinates, opening hours and price range among the recommended properties. The generator writes them as JSON-LD, the format Google recommends for structured data.

Opening hours, written the way people write them

Typing openingHoursSpecification by hand is where most mistakes happen. Here each line is a rule in plain shorthand, and the generator expands it:

You typeThe markup says
Mo-Fr 07:00-18:00Monday to Friday, opens 07:00, closes 18:00
Sa 08:00-12:00Saturday, opens 08:00, closes 12:00
Tu,Th 09:00-17:00Tuesday and Thursday, opens 09:00, closes 17:00

Days the business is closed are simply left out. A line the generator cannot read is reported and left out rather than guessed at.

Matching the rest of the web

Markup is one of several places a business’s details appear, alongside its Google Business Profile, its contact page and directories. Use exactly the same name, address and phone number in all of them; a variant spelling or an old number in one place makes the others harder to trust. Add the profiles you control, such as a Facebook page, as sameAs links.

What the generator leaves out

  • Ratings and reviews. Google uses them for local businesses only from sites that review other businesses.
  • Anything you did not enter. Empty fields are omitted rather than filled with placeholders.
  • Several locations in one block. Each location needs its own markup, on its own page.

To check the page’s title and description at the same time, use the meta tag generator; for a site in several languages, the hreflang tag generator links the versions.

Published by Koit Academy. Who runs it, how it is paid and how its tools are checked.

Questions

What people ask about the Local Business Schema Generator

Which properties does Google require for a local business?
Google lists name and address as required. Telephone, url, geo, openingHoursSpecification and priceRange are among the recommended properties.
How do I write opening hours?
One rule per line: the days, then the opening and closing time in 24-hour form, such as “Mo-Fr 08:00-17:00” or “Sa,Su 10:00-14:00”. Leave closed days out.
Can I add my star rating to the markup?
The generator does not offer it. Google uses review and rating markup for local businesses only from sites that review other businesses, not from a business about itself.
Which business type should I choose?
The most specific one that is accurate. A plumber is a Plumber, which is a kind of HomeAndConstructionBusiness, which is a kind of LocalBusiness; the specific type says more.
Where does the markup go?
In the HTML of the page about the business, usually the home page or the contact page, once per location. It should match what that page shows.