Free tool · Tools and workflow

Local Business Schema Generator (JSON-LD)

Generate paste-ready LocalBusiness JSON-LD for a client site, with address, hours, services and profiles.

  • Free
  • No signup
  • Checked against Google guidelines

Business

Pick the most specific schema.org type that fits.

Address and location

To get coordinates, right-click the business on Google Maps and click the numbers at the top of the menu to copy them.

Opening hours

Monday
to
Tuesday
to
Wednesday
to
Thursday
to
Friday
to
Saturday
Sunday

Services, area and profiles

One service per line.

One city or town per line.

One URL per line: Google Business Profile, Facebook, Instagram, Yelp and similar.

Aggregate rating

Your JSON-LD

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Plumber",
  "address": {
    "@type": "PostalAddress",
    "addressCountry": "US"
  },
  "openingHoursSpecification": [
    {
      "@type": "OpeningHoursSpecification",
      "dayOfWeek": [
        "Monday",
        "Tuesday",
        "Wednesday",
        "Thursday",
        "Friday"
      ],
      "opens": "09:00",
      "closes": "17:00"
    },
    {
      "@type": "OpeningHoursSpecification",
      "dayOfWeek": [
        "Saturday",
        "Sunday"
      ],
      "opens": "00:00",
      "closes": "00:00"
    }
  ]
}
</script>

Checks against Google's guidelines

  • Required: Add the business name. Google requires name.
  • Required: Add the street address and city. Google requires address and asks for as many address parts as possible.
  • Recommended: Add the website URL. Google recommends url for the business location.
  • Recommended: Add a phone number. Google recommends telephone.
  • Recommended: Add latitude and longitude. Google recommends geo coordinates.
  • Recommended: Add a price range, such as $$ or $50 to $150. Google recommends priceRange.

Building the whole site? When SiteSeeker's AI website builder makes a site from a business listing, it adds LocalBusiness structured data from the details that listing has, such as the name, address, phone number and hours.

How it works

How to use the local business schema generator (json-ld)

Fill in the business details once and get LocalBusiness structured data for the site you are building, with the most specific schema.org type and checks against what Google requires and recommends.

  1. 1

    Pick the business type

    Search for the trade and choose the most specific schema.org type that fits.

  2. 2

    Fill in the details

    Add the name, address, phone with country code, coordinates and opening hours.

  3. 3

    Fix flagged items

    The checks under the code list anything Google requires or recommends that is missing.

  4. 4

    Copy it into the site

    Paste the script tag into the page, then run the Rich Results Test.

Good to know

What LocalBusiness schema is

LocalBusiness schema describes a business in a format search engines read without guessing. It uses the schema.org vocabulary, usually as JSON-LD: a small script tag with the name, address, phone, hours, coordinates and profile links.

There are dozens of specific types, such as Plumber, Dentist and HairSalon. Google's LocalBusiness documentation asks for the most specific one that fits.

What Google requires and recommends

Google requires name and address. The recommended properties that matter most for local service businesses:

  • telephone, with country and area code
  • url for this location
  • geo, to at least five decimal places
  • openingHoursSpecification
  • priceRange, under 100 characters

The generator also adds valid schema.org extras: logo, image, email, areaServed, hasOfferCatalog and sameAs. For 24-hour days it writes 00:00 to 23:59, and for closed days 00:00 to 00:00.

Where to paste it

Put the script tag in the page about the business, usually the home page, in the head or the body:

  • WordPress: a header code plugin or a Custom HTML block.
  • Webflow: the page's head or before body code field.
  • Squarespace and Wix: code injection or custom code settings.

Use one block per location. Then test the live URL in the Rich Results Test and the Schema Markup Validator.

What it can and cannot do

Valid markup can make a page eligible for richer results, but Google decides whether to show them.

  • Not a ranking shortcut: content, the Google Business Profile and reviews carry more weight.
  • No review stars: under the review snippet guidelines, a business's own reviews are self-serving.
  • Not a Business Profile replacement: the map pack is built mainly from the profile.
  • It must match the page: keep name, address and phone identical everywhere, down to the suite number.

A quick checklist before handover

  1. The type is the most specific one that fits the trade.
  2. Name, address and phone match the Google Business Profile exactly.
  3. The phone number starts with the country code.
  4. The coordinates point at the premises, not the middle of town.
  5. The hours match what the owner publishes, including closed days.

When the owner changes their hours or moves, update the page and the code together.

Frequently asked questions